Home   Pricing

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:

  1. var editor1 = new RichTextEditor("#div_editor1");      
  2.       
  3. editor1.setHTMLCode("<p><b>Hello</b> World</p>");