|
|||||||||
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 | |
Boolean
|
deletion(<Integer> direction)
Mozile Editor - Delete - Deletes the current selection. |
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. |
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 |
Boolean deletion(<Integer> direction)
direction
- See the special constants in InsertionPoint. 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.
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 |