# engine/view/filler

module

<a id="constants">

## Constants

<a id="constant-INLINE_FILLER">

### `INLINE_FILLER: string`

Inline filler which is a sequence of the word joiners.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/filler.ts#L93)

<a id="constant-INLINE_FILLER_LENGTH">

### `INLINE_FILLER_LENGTH: 7`

Length of the [INLINE\_FILLER](#constant-INLINE_FILLER).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/filler.ts#L86)

<a id="functions">

## Functions

<a id="function-BR_FILLER">

### `BR_FILLER( domDocument ) → HTMLBRElement` _(internal)_

`<br>` filler creator. This function creates the `<br data-cke-filler="true">` element. It defines how the filler is created.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/filler.ts#L74)

#### Parameters

* `domDocument: Document`

#### Returns

* `HTMLBRElement`

#### Related:

* NBSP\_FILLER
* MARKED\_NBSP\_FILLER

<a id="function-MARKED_NBSP_FILLER">

### `MARKED_NBSP_FILLER( domDocument ) → HTMLSpanElement` _(internal)_

Marked non-breaking space filler creator. This function creates the `<span data-cke-filler="true">&nbsp;</span>` element. It defines how the filler is created.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/filler.ts#L58)

#### Parameters

* `domDocument: Document`

#### Returns

* `HTMLSpanElement`

#### Related:

* NBSP\_FILLER
* BR\_FILLER

<a id="function-NBSP_FILLER">

### `NBSP_FILLER( domDocument ) → Text` _(internal)_

Non-breaking space filler creator. This function creates the `&nbsp;` text node. It defines how the filler is created.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/filler.ts#L48)

#### Parameters

* `domDocument: Document`

#### Returns

* `Text`

#### Related:

* MARKED\_NBSP\_FILLER
* BR\_FILLER

<a id="function-getDataWithoutFiller">

### `getDataWithoutFiller( domText ) → string` _(internal)_

Get string data from the text node, removing an [inline filler](#constant-INLINE_FILLER) from it, if text node contains it.

```typescript
getDataWithoutFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ) == 'foo' // true
getDataWithoutFiller( document.createTextNode( 'foo' ) ) == 'foo' // true
```

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/filler.ts#L146)

#### Parameters

* `domText: string | Text`

  DOM text node, possible with inline filler.

#### Returns

* `string`

  Data without filler.

<a id="function-injectQuirksHandling">

### `injectQuirksHandling( view ) → void` _(internal)_

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.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/filler.ts#L163)

#### Parameters

* `view: EditingView`

  View controller instance we should inject quirks handling on.

#### Returns

* `void`

<a id="function-isInlineFiller">

### `isInlineFiller( domText ) → boolean` _(internal)_

Checks if the text node contains only the [inline filler](#constant-INLINE_FILLER).

```typescript
isInlineFiller( document.createTextNode( INLINE_FILLER ) ); // true
isInlineFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ); // false
```

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/filler.ts#L129)

#### Parameters

* `domText: Text`

  DOM text node.

#### Returns

* `boolean`

  True if the text node contains only the [inline filler](#constant-INLINE_FILLER).

<a id="function-startsWithFiller">

### `startsWithFiller( domNode ) → boolean` _(internal)_

Checks if the node is a text node which starts with the [inline filler](#constant-INLINE_FILLER).

```typescript
startsWithFiller( document.createTextNode( INLINE_FILLER ) ); // true
startsWithFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ); // true
startsWithFiller( document.createTextNode( 'foo' ) ); // false
startsWithFiller( document.createElement( 'p' ) ); // false
```

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/filler.ts#L109)

#### Parameters

* `domNode: string | Node`

  DOM node.

#### Returns

* `boolean`

  True if the text node starts with the [inline filler](#constant-INLINE_FILLER).

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
