3.6.5.3 Remove Method
Functional Description:
Delete the created editor instance.
Method prototype:
editor.Remove( b_NoUpdate )
Parameters Description:
Parameters |
Types |
Required |
Explanation |
b_NoUpdate |
variant |
No |
1. Not set or set as false that may update the associated objects. It means that the editing content may return to the original object <textarea> or <div> 2. Set as true and will not update |
Return Value:
None
Sample Code:
<head> <script type="text/javascript"> function RemoveEditor(){ var editor = EWEBEDITOR.Instances["textarea1"]; editor.Remove(); //Remove editor instance editor = null; } </script> </head> <body> <textarea name="textarea1"></textarea> <script type="text/javascript"> EWEBEDITOR.replace("textarea1"); </script>
<input type="button" value="Remove Editor" onclick="RemoveEditor()"> </body> |