engine/view/filler
@ckeditor/ckeditor5-engine/src/view/filler
Filtering
Constants
-
INLINE_FILLER : string
module:engine/view/filler#INLINE_FILLER
Inline filler which is a sequence of the word joiners.
-
INLINE_FILLER_LENGTH : 7
module:engine/view/filler#INLINE_FILLER_LENGTH
Length of the INLINE_FILLER.
Functions
-
BR_FILLER( domDocument ) → HTMLBRElement
module: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
module: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
module: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
module: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
module: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 : View
View controller instance we should inject quirks handling on.
Returns
void
-
isInlineFiller( domText ) → boolean
module: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
module: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.
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.
With the release of version 42.0.0, we have rewritten much of our documentation to reflect the new import paths and features. We appreciate your feedback to help us ensure its accuracy and completeness.