Examples
editor.insertRootParagraph(tagname)
This method is used for inserting a new paragraph at the bottom of editor.
Syntax
editor.insertRootParagraph(tagname)
Parameter
Type: String
Optional. The tag name (div, br, p). If not specified, the tag defined by config.enterKeyTag will be inserted.
Return Value
Type: HTMLElement
The HtmlElement that was just inserted. If insertion failed, this will return null.
Example:
var editor1 = new RichTextEditor("#div_editor1");
for(var i=1;i<10;i++)
{
editor1.selectDoc(false);
var p=editor1.insertRootParagraph("P");
p.innerText="paragraph "+i;
}