Home   Pricing

editor.insertText(text)

This method is used for inserting the specified plain text into editor document.

Syntax

editor.insertText(text)

Parameter

Type: String

Required. The specified plain text to insert.

Example:

  1. var editor1 = new RichTextEditor("#div_editor1");      
  2. editor1.insertText("hello world");      
  3. editor1.collapse(false)