engine/view/filler
Constants
-
INLINE_FILLER : string
module:engine/view/filler~INLINE_FILLER
Inline filler which is a sequence of the word joiners.
-
module:engine/view/filler~INLINE_FILLER_LENGTH
Length of the INLINE_FILLER.
Functions
-
BR_FILLER( domDocument ) → HTMLBRElement
internalmodule:engine/view/filler~BR_FILLER
<br>
filler creator. This function creates the<br data-cke-filler="true">
element. It defines how the filler is created.Parameters
domDocument : Document
Returns
HTMLBRElement
Related:
- NBSP_FILLER
- MARKED_NBSP_FILLER
-
MARKED_NBSP_FILLER( domDocument ) → HTMLSpanElement
internalmodule:engine/view/filler~MARKED_NBSP_FILLER
Marked non-breaking space filler creator. This function creates the
<span data-cke-filler="true"> </span>
element. It defines how the filler is created.Parameters
domDocument : Document
Returns
HTMLSpanElement
Related:
- NBSP_FILLER
- BR_FILLER
-
NBSP_FILLER( domDocument ) → Text
internalmodule:engine/view/filler~NBSP_FILLER
Non-breaking space filler creator. This function creates the
text node. It defines how the filler is created.Parameters
domDocument : Document
Returns
Text
Related:
- MARKED_NBSP_FILLER
- BR_FILLER
-
getDataWithoutFiller( domText ) → string
internalmodule:engine/view/filler~getDataWithoutFiller
Get string data from the text node, removing an inline filler from it, if text node contains it.
getDataWithoutFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ) == 'foo' // true getDataWithoutFiller( document.createTextNode( 'foo' ) ) == 'foo' // true
Parameters
domText : string | Text
DOM text node, possible with inline filler.
Returns
string
Data without filler.
-
injectQuirksHandling( view ) → void
internalmodule:engine/view/filler~injectQuirksHandling
Assign key observer which move cursor from the end of the inline filler to the beginning of it when the left arrow is pressed, so the filler does not break navigation.
Parameters
view : EditingView
View controller instance we should inject quirks handling on.
Returns
void
-
isInlineFiller( domText ) → boolean
internalmodule:engine/view/filler~isInlineFiller
Checks if the text node contains only the inline filler.
isInlineFiller( document.createTextNode( INLINE_FILLER ) ); // true isInlineFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ); // false
Parameters
domText : Text
DOM text node.
Returns
boolean
True if the text node contains only the inline filler.
-
startsWithFiller( domNode ) → boolean
internalmodule:engine/view/filler~startsWithFiller
Checks if the node is a text node which starts with the inline filler.
startsWithFiller( document.createTextNode( INLINE_FILLER ) ); // true startsWithFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ); // true startsWithFiller( document.createTextNode( 'foo' ) ); // false startsWithFiller( document.createElement( 'p' ) ); // false
Parameters
domNode : string | Node
DOM node.
Returns
boolean
True if the text node starts with the inline filler.