editor/js/content-editable.js:2
Creates a component to work with an elemment.
_defReadyFn
Defined in
editor/js/content-editable.js:166
Binds DOM events and fires the ready event
_DOMPaste
e
Defined in
editor/js/content-editable.js:117
Simple pass thru handler for the paste event so we can do content cleanup
_getDefaultBlock
Defined in
editor/js/content-editable.js:251
Retrieves defaultblock value from host attribute
_getDir
Defined in
editor/js/content-editable.js:261
Retrieves dir value from host attribute
_getExtraCSS
Defined in
editor/js/content-editable.js:271
Retrieves extracss value from host attribute
_getHostValue
The
Defined in
editor/js/content-editable.js:300
Retrieves a value from host attribute
The
Attr
attribute which value should be returned from the host
_getHTML
html
Defined in
editor/js/content-editable.js:281
Get the content from the container
html
String
The raw HTML from the container.
_instanceLoaded
inst
Defined in
editor/js/content-editable.js:427
Called from the first YUI instance that sets up the internal instance. This loads the content into the ContentEditable element and attaches the contentready event.
inst
YUI
The internal YUI instance bound to the ContentEditable element
_onContentReady
on the internal instance so that the modules are loaded properly.
Defined in
editor/js/content-editable.js:212
Called once the content is available in the ContentEditable element and calls the final use call
_onDomEvent
e
Defined in
editor/js/content-editable.js:86
Generic handler for all DOM events fired by the Editor container. This handler takes the current EventFacade and augments it to fire on the ContentEditable host. It adds two new properties to the EventFacade called frameX and frameY which adds the scroll and xy position of the ContentEditable element to the original pageX and pageY of the event so external nodes can be positioned over the element. In case of ContentEditable element these will be equal to pageX and pageY of the container.
_setDir
value
Defined in
editor/js/content-editable.js:354
Sets the dir (language direction) attribute on the container.
value
String
The language direction
_setExtraCSS
css
Defined in
editor/js/content-editable.js:376
Set's the extra CSS on the instance.
css
String
The CSS style to be set as extra css
_setHTML
html
Defined in
editor/js/content-editable.js:315
Set the content of the container
html
String
The raw HTML to set to the container.
_setLang
value
Defined in
editor/js/content-editable.js:405
Sets the language value on the instance.
value
String
The language to be set
_setLinkedCSS
css
Defined in
editor/js/content-editable.js:335
Sets the linked CSS on the instance.
css
String
The linkedcss value
_validateLinkedCSS
Defined in
editor/js/content-editable.js:451
Validates linkedcss property
delegate
type
fn
cont
sel
Defined in
editor/js/content-editable.js:489
A delegate method passed to the instance's delegate method
The Event handle returned from Y.delegate
focus
fn
Defined in
editor/js/content-editable.js:579
Set the focus to the container
fn
Function
Callback function to execute after focus happens
getInstance
Defined in
editor/js/content-editable.js:516
Get a reference to the internal YUI instance.
The internal YUI instance
hide
Defined in
editor/js/content-editable.js:605
Hide the iframe instance
initializer
Defined in
editor/js/content-editable.js:55
Initializes the ContentEditable instance
render
node
Defined in
editor/js/content-editable.js:525
node
String/HTMLElement/Node
The node to render to
show
Defined in
editor/js/content-editable.js:591
Show the iframe instance
use
Defined in
editor/js/content-editable.js:462
This is a scoped version of the normal YUI.use method & is bound to the ContentEditable element At setup, the inst.use method is mapped to this method.
_instance
Defined in
editor/js/content-editable.js:47
Internal reference to the YUI instance bound to the element
_rendered
Defined in
editor/js/content-editable.js:39
Internal reference set when render is called.
DOM_EVENTS
Defined in
editor/js/content-editable.js:627
The DomEvents that the frame automatically attaches and bubbles
HTML
Defined in
editor/js/content-editable.js:646
The template string used to create the ContentEditable element
NAME
Defined in
editor/js/content-editable.js:654
The name of the class (contentEditable)
NS
Defined in
editor/js/content-editable.js:662
The namespace on which ContentEditable plugin will reside.
Default: 'contentEditable'
THROTTLE_TIME
Defined in
editor/js/content-editable.js:618
The throttle time for key events in IE
Default: 100
container
Defined in
editor/js/content-editable.js:685
The container to set contentEditable=true or to create on render.
containerChange
Fires when the value for the configuration attribute container
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
e
EventFacade
content
Defined in
editor/js/content-editable.js:698
The string to inject as Editor content. Default '
'
contentChange
Fires when the value for the configuration attribute content
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
e
EventFacade
defaultblock
Defined in
editor/js/content-editable.js:711
The default tag to use for block level items, defaults to: p
defaultblockChange
Fires when the value for the configuration attribute defaultblock
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
e
EventFacade
dir
Defined in
editor/js/content-editable.js:673
The default text direction for this ContentEditable element. Default: ltr
dirChange
Fires when the value for the configuration attribute dir
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
e
EventFacade
extracss
Defined in
editor/js/content-editable.js:722
A string of CSS to add to the Head of the Editor
extracssChange
Fires when the value for the configuration attribute extracss
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
e
EventFacade
id
Defined in
editor/js/content-editable.js:734
Set the id of the new Node. (optional)
idChange
Fires when the value for the configuration attribute id
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
e
EventFacade
lang
Defined in
editor/js/content-editable.js:751
The default language. Default: en-US
langChange
Fires when the value for the configuration attribute lang
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
e
EventFacade
linkedcss
Defined in
editor/js/content-editable.js:763
An array of url's to external linked style sheets
linkedcssChange
Fires when the value for the configuration attribute linkedcss
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
e
EventFacade
node
Defined in
editor/js/content-editable.js:774
The Node instance of the container.
nodeChange
Fires when the value for the configuration attribute node
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
e
EventFacade
use
Defined in
editor/js/content-editable.js:787
Array of modules to include in the scoped YUI instance at render time. Default: ['node-base', 'editor-selection', 'stylesheet']
useChange
Fires when the value for the configuration attribute use
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
e
EventFacade