|
AreaEdit | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--EnterParagraphs
Defined in EnterParagraphs/enter-paragraphs.js
Field Summary | |
Object |
_elemSolid
Elements which count as content, as distinct from whitespace or containers |
Object |
_pBreak
Elements which may not contain paragraphs, and would prefer a break to being split |
Object |
_pContainers
elements which may contain a paragraph |
Object |
_permEmpty
Elements which may not contain children |
Object |
_pExclusions
The pragmatic list of which elements a paragraph may not contain |
Object |
_pifyForced
|
Object |
_pifyParent
Elements which should get a new P, before or after a close parent, when enter is pressed at either end |
Object |
_pifySibling
Elements which should get a new P, before or after, when enter is pressed at either end |
Object |
_whiteSpace
Whitespace Regex |
Object |
name
name member for debugging |
<static> Object |
_pluginInfo
plugin Info |
Constructor Summary | |
EnterParagraphs
(editor)
EnterParagraphs Constructor |
Method Summary | |
Object
|
__onKeyPress(ev)
Called when a key is pressed in the editor |
Object
|
_fenCullIds( ep_ref, node, pong )
remove duplicate Id's. |
Object
|
_fenEmptySet( node, next_node, mode, last_flag)
Find a post-insertion node, only if all nodes are empty, or the first content |
Object
|
forEachNode(left_node, right_node, mode, direction, init)
perform a depth first descent in the direction requested. |
Object
|
forEachNodeUnder( root, mode, direction, init )
Passes a global parent node or document fragment to forEachNode |
Object
|
handleEnter(ev)
Handles the pressing of an unshifted enter for Gecko |
void
|
insertAdjacentElement(ref,pos,el)
Gecko's a bit lacking in some odd ways... |
Object
|
isNormalListItem(rng)
are we an |
Object
|
processRng(rng, search_direction, roam, neighbour, insertion, pWrap, preBr)
processRng - process Range. |
Object
|
processSide( rng, search_direction)
Grabs a range suitable for paragraph stuffing |
Field Detail |
Object _elemSolid
Object _pBreak
Object _pContainers
Object _permEmpty
Object _pExclusions
Object _pifyForced
Object _pifyParent
Object _pifySibling
Object _whiteSpace
Object name
<static> Object _pluginInfo
Constructor Detail |
EnterParagraphs(editor)
Method Detail |
Object __onKeyPress(ev)
Object _fenCullIds( ep_ref, node, pong )
ep_ref
- enterparagraphs reference to enterparagraphs object
Object _fenEmptySet( node, next_node, mode, last_flag)
node
- node current node beinge examined.
node
- string "find_fill" or "find_cursorpoint"
next_node
- node next node to be examined.
last_flag
- boolean is this the last node?
Object forEachNode(left_node, right_node, mode, direction, init)
left_node
- node "start node"
right_node
- node "end node"
mode
- string function to apply to each node. cullids or emptyset.
direction
- string traversal direction "ltr" (left to right) or "rtl" (right_to_left)
init
- boolean or object.
Object forEachNodeUnder( root, mode, direction, init )
root
- node root node to start search from.
mode
- string function to apply to each node.
direction
- string traversal direction "ltr" (left to right) or "rtl" (right_to_left)
init
- boolean
Object handleEnter(ev)
void insertAdjacentElement(ref,pos,el)
Object isNormalListItem(rng)
 
inserted before the list. The built-in behavior is to open up arng
- Range range.
Object processRng(rng, search_direction, roam, neighbour, insertion, pWrap, preBr)
search_direction
- string Direction to search in.
roam
- node
insertion
- string may be AfterBegin of BeforeEnd
rn
- Range original selected range
Object processSide( rng, search_direction)
rng
- Range
search_direction
- string "left" or "right"
|
AreaEdit | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |