sourceEditorInsertText(value) Since: 1.3.5
Inserts text into the source editor at the position of the cursor.
end is not null and there is some selected text, the selected text will be placed between the
If there is no selection and
end is set, it will just be appended to the end of
start before inserting.
Info: Using the insertText() method is the prefered way of inserting text into the editor. It will check if the editor is in WYSIWYG or source mode and insert into the correct one.
The text to insert
If not null and there is some text selected, the selected text will be placed between the
If there is no selected text, this will just be appended to the end of
var textarea = ...; var instance = sceditor.instance(textarea); instance.sourceEditorInsertText('Hello World!');