3.6.2.2 EWEBEDITOR.Append Method
Functional Description:
Insert an editor instance to the specified DIV.
Method Prototype:
EWEBEDITOR.Append(s_Id, o_Config, s_Html)
Parameters Description:
Parameters |
Types |
Required |
Explanation |
s_Id |
string |
Yes |
Need the id of the DIV that inserts in, this id will be used to the instantiated id. |
o_Config |
object |
No |
Editor instance configuration, if it doesn't set, you can take settings of EWBEDITOR.Config, structures please see the specific explanations in the[objects of EWEBEDITOR.Config]chapter. |
s_Html |
string |
No |
The initial value |
Return Value:
Back to the object of EWEBEDITOR.editor, which is a reference to the instantiated editor, after loading, you can use the interface methods of the editor objects.
Sample code:
<div id="div1"></div> <script type="text/javascript"> var editor = EWEBEDITOR.Append("div1", {style:"coolblue", width:"550", height:"350"}, "Initial Value"); // var editor = EWEBEDITOR.Instances["div1"]; </script> |