eWebEditor Manual V11.2 : Developer Guide : Object Reference of EWEBEDITOR : Properties and Methods of EWEBEDITOR.editor : Update Method
eWebEditor Home >> eWebEditor Manual V11.2 >> Developer Guide >> Object Reference of EWEBEDITOR >> Properties and Methods of EWEBEDITOR.editor

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>