3.6.5 Properties and Methods of EWEBEDITOR.editor
When using plain mode of JavaScript to create, replace, insert or create an editor instance by means of HTML code, it will generate an object of EWEBEDITOR.editor. When the editor has finished loading, you can use this object to access the corresponding interface method.
Get Object:
<script type="text/javascript"> var editor1 = EWEBEDITOR.Instances["content1"]; var editor2 = EWEBEDITOR.Create("content2"); var editor3 = EWEBEDITOR.Replace("content3"); var editor4 = EWEBEDITOR.Append("div1"); </script> |
The interface methods provided to access this object:
<script type="text/javascript"> var editor = EWEBEDITOR.Instances["content1"]; editor.<Method>; </script> |