3.6.2.3 EWEBEDITOR.Create Method
Functional Description:
Create an editor instance on its current location.
Method Prototype:
EWEBEDITOR.Create(s_Id, o_Config, s_Html)
Parameters Description:
Parameters |
Types |
Required |
Explanation |
s_Id |
string |
Yes |
The instantiated id. the id is also used in the name of the associated form item <textarea> |
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:
<script type="text/javascript"> var editor = EWEBEDITOR.Create("textarea1", {style:"coolblue", width:"550", height:"350"}, "Initial Value"); // var editor = EWEBEDITOR.Instances["textarea1"]; </script> |