| Name |
Description |
_createRange([selection])
|
Returns the Range object. This object's content depends on the browser.
Parameters:
selection - Selection object. If undefined, current selection is used.
|
_getSelection()
|
Returns the Selection object (current selection). This object's content depends on the browser.
|
_getTextNodeCollection([total])
|
Returns an array of Text Nodes in the selected(highlighted) area if total is undefined.
If total is defined, it returns an array of Text Nodes for the whole content.
|
_saveContent()
|
Saves content for 'Undo' operation.
|
_selectRng(range)
|
Forces selection(highlighting) on the Range object.
Parameters:
range - Range object.
|
_setToEnd()
|
Sets cursor to the end of the content.
|
focusEditor()
|
Ensures focus in design panel.
|
getSelectedHTML()
|
Returns HTML code of the selected(highlighted) area in the content.
|
insertHTML(html[,range])
|
Inserts HTML code into content.
Parameters:
html - HTML code to be inserted.
range - Range object where to insert. If undefined, range of the current selection is used.
|
isControl()
|
Returns true if some control (image, table, object etc.) is selected(highlighted),
otherwise (text selected or none) - false.
|
isPopup()
|
Returns true if any popup is currently opened,
otherwise - false.
|
moveToWord(number, mode)
|
Moves cursor to the specified plain text word in the content.
Parameters:
number - order number of the word, 0 starting.
mode - how to set cursor:
0 - set cursor to the start of the word;
1 - set cursor to the end of the word;
2 - select(highlight) the whole word.
See online example.
|
onContentChanged()
|
This fuction is called on every content change.
Call it if you change the content with your custom JavaScript code.
|
redo()
|
Perfoms 'Redo' operation.
|
RestoreContent()
|
Restores previously saved by SaveContent() content.
|
SaveContent()
|
Saves content for 'Undo' operation.
|
surroundHTML(lHtml,rHtml)
|
Surrounds selected content with HTML text.
Parameters:
lHtml - HTML code to be added from the left side of the selected content.
rHtml - HTML code to be added from the right side of the selected content.
Returns true on success,
otherwise (nothing selected) - false.
See online example.
|
TextSelected()
|
Returns true if some text is selected(highlighted),
otherwise (control selected or none) - false.
|
undo()
|
Perfoms 'Undo' operation.
|