Creates selection from start
to end
character
indexes. If end
is ommited, this method should place caret
and start
index
Optional
end: numbereditor.createSelection(10, 40);
//move caret to 15th character
editor.createSelection(15);
Returns character indexes of selected text: object with start
and end
properties. If there's no selection, should return
object with start
and end
properties referring
to current caret position
var selection = editor.getSelectionRange();
alert(selection.start + ', ' + selection.end);
Replace editor's content or it's part (from start
to
end
index). If value
contains
caret_placeholder
, the editor will put caret into
this position. If you skip start
and end
arguments, the whole target's content will be replaced with
value
.
If you pass start
argument only,
the value
will be placed at start
string
index of current content.
If you pass start
and end
arguments,
the corresponding substring of current target's content will be
replaced with value
.
Content you want to paste
Optional
start: numberStart index of editor's content
Optional
end: numberEnd index of editor's content
Optional
noIndent: booleanDo not auto indent value
Generated using TypeDoc
Implementation of IEmmetEditor interface for Ace