3.6.5.4 Update Method
Functional Description:
Update the form item value associated with the editor value. For example <textarea>.value or <div>.innerHTML.
Method prototype:
editor.Update()
Parameters Description:
None
Return Value:
None
Sample Code:
<head> <script type="text/javascript"> function UpdateElement(){ var editor = EWEBEDITOR.Instances["textarea1"]; editor.Update(); //update the value of eWebEditor instance to link object } </script> </head> <body> <textarea name="textarea1"></textarea> <script type="text/javascript"> EWEBEDITOR.replace("textarea1"); </script>
<input type="button" value="Update" onclick="UpdateElement()"> </body> |