engine/view/filler
Constants
INLINE_FILLER : stringmodule:engine/view/filler~INLINE_FILLERInline filler which is a sequence of the word joiners.
module:engine/view/filler~INLINE_FILLER_LENGTHLength of the INLINE_FILLER.
Functions
BR_FILLER( domDocument ) → HTMLBRElementinternalmodule: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 ) → HTMLSpanElementinternalmodule:engine/view/filler~MARKED_NBSP_FILLERMarked 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 ) → Textinternalmodule:engine/view/filler~NBSP_FILLERNon-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 ) → stringinternalmodule:engine/view/filler~getDataWithoutFillerGet 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' // trueCopy codeParameters
domText : string | TextDOM text node, possible with inline filler.
Returns
stringData without filler.
injectQuirksHandling( view ) → voidinternalmodule:engine/view/filler~injectQuirksHandlingAssign 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 : EditingViewView controller instance we should inject quirks handling on.
Returns
void
isInlineFiller( domText ) → booleaninternalmodule:engine/view/filler~isInlineFillerChecks if the text node contains only the inline filler.
isInlineFiller( document.createTextNode( INLINE_FILLER ) ); // true isInlineFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ); // falseCopy codeParameters
domText : TextDOM text node.
Returns
booleanTrue if the text node contains only the inline filler.
startsWithFiller( domNode ) → booleaninternalmodule:engine/view/filler~startsWithFillerChecks 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' ) ); // falseCopy codeParameters
domNode : string | NodeDOM node.
Returns
booleanTrue if the text node starts with the inline filler.