Documentation

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>");