wysiwygEditorInsertText(start) Since: 1.3.0
Inserts text into WYSIWYG editor.
If end
is not null and there is some selected text, the selected text will be placed between the start
and end
strings.
If there is no selection and end
is set, it will just be appended to the end of start
before inserting.
Info: Using the insert() method is the prefered way of inserting HTML into the editor. It will check if the editor is in WYSIWYG or source mode and insert into the correct editor.
Syntax
instance.wysiwygEditorInsertText(start[, end]);
Parameters
start
Type: String
The text to insert
end
Type: String
Default: null
If this is not null and there is some text selected, the selected text will be wrappend in the start
and end
strings. If there is no selected text, this will just be appended to the end of start