|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--MozileComponent | +--MozileEditor
Defined in core.js
Constructor Summary | |
MozileEditor
(<String> configString)
Mozile Editor - Controls the manipulation of the document through the Selection object. |
Method Summary | |
Object
|
deletion(direction)
Mozile Editor - Delete - Deletes the current selection, or everything between the current and the previous insertion points. |
Integer
|
getLastKeyCode()
Get the keyCode of the last keypress. |
Node
|
getLastNode()
Get the last node edited. |
Integer
|
getLastOffset()
Get the offset from the last node edited. |
Object
|
insertFragment(fragment)
Mozile Editor - Insert Fragment - Inserts all the children of a document fragment or an element at the current selection index. |
Object
|
insertString(string)
Mozile Editor - Insert String - Inserts a string at the current selection index. |
Integer
|
replaceAnchors(<Element> element)
Replace all "a" nodes with copies named "mozileLinkReplacement". |
Integer
|
restoreAnchors(<Element> element)
Restore all "a" nodes that were replaced. |
Object
|
seekIP(direction, startNode, startOffset, firstNode)
Mozile Editor - Seek Insertion Point - Finds the next (or previous) insertion point, starting at a given text node and offset. |
Object
|
seekTextNode(direction, startNode)
Mozile Editor - Seek Text Node - Finds the next (or previous) text node which either has CSS white-space="pre" or contains some non-white-space characters. |
Integer
|
setLastKeyCode(<Integer> keyCode)
Set the last node edited. |
Node
|
setLastNode(<Node> node)
Set the last node edited. |
Integer
|
setLastOffset(<Integer> offset)
Set the last node edited. |
Object
|
splitBlock()
Mozile Editor - Split Block - Splits the current block in two, creating a new block after the old one in the process. |
Methods inherited from class MozileComponent |
toString, getName, getConfigString, getOptions, getOption, setOption, _cleanOption
|
Constructor Detail |
MozileEditor(<String> configString)
configString
- A properly formatted configuration string.
Method Detail |
Object deletion(direction)
direction
- A string indicating where to delete. Can be "next" or "previous".
Integer getLastKeyCode()
Node getLastNode()
Integer getLastOffset()
Object insertFragment(fragment)
fragment
- Either a document fragment, or an element with child nodes to be cloned and inserted.
Object insertString(string)
string
- The string to be inserted.
Integer replaceAnchors(<Element> element)
element
- Optional. The root element for the replacement. If none is given the mozile.currentEditor is used.
Integer restoreAnchors(<Element> element)
element
- Optional. The root element for the replacement. If none is given the mozile.currentEditor is used.
Object seekIP(direction, startNode, startOffset, firstNode)
direction
- A string indicating the direction of the search. Can be "next" or "previous".
startNode
- The text node to begin the search in.
startOffset
- Integer. The offset within the startNode to begin the search at.
firstNode
- Boolean. True if this is the first node being tested, and false otherwise.
Object seekTextNode(direction, startNode)
direction
- String. Can be "next" or "previous".
startNode
- The text node to begin the search in.
Integer setLastKeyCode(<Integer> keyCode)
keyCode
-
Node setLastNode(<Node> node)
node
-
Integer setLastOffset(<Integer> offset)
offset
-
Object splitBlock()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |