typing/utils/getlasttextline
@ckeditor/ckeditor5-typing/src/utils/getlasttextline
module
Filtering
Type Definitions
-
The value returned by
getLastTextLine
.
Functions
-
getLastTextLine( range, model ) → LastTextLineData
protected
Returns the last text line from the given range.
"The last text line" is understood as text (from one or more text nodes) which is limited either by a parent block or by inline elements (e.g.
<softBreak>
).For model below, the returned
text
will be "Foo bar baz" andrange
will be set on whole<paragraph>
content:However, in below case,
text
will be set to "baz" andrange
will be set only on "baz".Parameters
Returns
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.