creating Rich Text Editor using new InputFormTextBox() SharePoint 2007

时间:2015-07-28 15:59:29

标签: javascript sharepoint-2007 rte cewp

I know this probably an easy question to answer, or at least I'm hoping it is. I have a CEWP (Content Editor Web Part) that I'm trying to use custom code to create an input field for access to update a list. I would like the input to be a Rich Text Editor. I've tried writing the following in JavaScript:

$(document).ready(function() {
    user = getUserAccountInfo();
    username = user.PreferredName;

    InputFormTextBox textbox = new InputFormTextBox();
    textbox.ID = "inputFormTextBox1";
    textbox.TextMode = TextBoxTextMode.MultiLine;
    textbox.rows = 6;
    textbox.columns = 75;
});

I get an error message of needing a semicolon ';' at the line declaring the InputFormTextBox. It looks valid to me. I am then calling the text values from the box, and using SPServices UpdateListItems.

0 个答案:

没有答案
相关问题