editor.setHTMLCode()
This method is used for setting the content of RichTextEditor.
Syntax
editor.setHTMLCode(strHTMLCode)
Parameter
Type: String
The string that will overwrite the content of editor.
Example usage
var editor1 = new RichTextEditor("#div_editor1");
editor1.setHTMLCode("<p><b>Hello</b> World</p>"); Related
- editor.getHTMLCode()— read the content back out.
- Save and load demo— a full round trip, with server examples.
- Editor in a form— content set with this method is not copied to the form field until the user edits, so the submit handler copies it.