Functions
-
internal
autoParagraphEmptyRoots( writer ) → boolean
module:engine/model/utils/autoparagraphing~autoParagraphEmptyRoots
Fixes all empty roots.
Parameters
writer
:
Writer
The model writer.
Returns
boolean
true
if any change has been applied, false
otherwise.
-
internal
isParagraphable( position, nodeOrType, schema ) → boolean
module:engine/model/utils/autoparagraphing~isParagraphable
Checks if the given node wrapped with a paragraph would be accepted by the schema in the given position.
Parameters
position
:
Position
The position at which to check.
nodeOrType
:
string | Node
The child node or child type to check.
schema
:
Schema
A schema instance used for element validation.
Returns
boolean
-
-
Inserts a new paragraph at the given position and returns a position inside that paragraph.
Parameters
position
:
Position
The position where a paragraph should be inserted.
writer
:
Writer
The model writer.
Returns
Position
Position inside the created paragraph.
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.