Class Plugin.EditorBidi
- extends Base
Plugin for Editor to support BiDirectional (bidi) text operations.
Properties
The data key to store on the node.
BLOCKS
- static object
More elements may be needed. BODY *must* be in the list to take care of the special case.
blockParent could be changed to use inst.Selection.BLOCKS
instead, but that would make Y.Plugin.EditorBidi.blockParent
unusable in non-RTE contexts (it being usable is a nice
side-effect).
Template for creating a block element
EVENTS
- static object
The events to check for a direction change on
Tells us that an initial bidi check has already been performed
Place holder for the last direction when checking for a switch
Properties inherited from Base:
Methods
private
void
_afterMouseUp
(
)
Checks for a direction change after a mouseup occurs.
private
void
_afterNodeChange
(
)
Checked for a change after a specific nodeChange event has been fired.
private
void
_checkForChange
(
)
Method checks to see if the direction of the text has changed based on a nodeChange event.
static
void
addParents
(
)
Generates a list of all the block parents of the current NodeList
static
void
blockParent
(
)
Returns a block parent for a given element
Methods inherited from EventTarget:
_getType,
_monitor,
_parseType,
addTarget,
after,
before,
bubble,
detach,
detachAll,
fire,
getEvent,
getTargets,
on,
once,
publish,
removeTarget,
subscribe,
unsubscribe,
unsubscribeAll
Methods inherited from Attribute:
_addAttrs,
_addLazyAttr,
_defAttrChangeFn,
_fireAttrChange,
_getAttr,
_getAttrCfg,
_getAttrInitVal,
_getAttrs,
_getStateVal,
_isLazyAttr,
_normAttrVals,
_protectAttrs,
_set,
_setAttr,
_setAttrs,
_setAttrVal,
_setStateVal,
addAttr,
addAttrs,
attrAdded,
get,
getAttrs,
modifyAttr,
removeAttr,
reset,
set,
setAttrs
Methods inherited from Base:
_aggregateAttrs,
_defDestroyFn,
_defInitFn,
_destroyHierarchy,
_filterAttrCfs,
_getAttrCfgs,
_getClasses,
_initHierarchy,
_initHierarchyData,
_preInitEventCfg,
destroy,
init,
toString
Events inherited from Base:
Configuration attributes inherited from Base: