ckeditor5-elements / findBlock
Function: findBlock()
ts
function findBlock(model, position):
| ModelElement
| null;Returns the block of a position: its parent, or the closest ancestor of it that is not inline, e.g. the paragraph of the text in an inline element. null in the root.
Parameters
| Parameter | Type |
|---|---|
model | Model |
position | | ModelPosition | null |
Returns
| ModelElement | null