Utility class for performing content insertion.
insertContent( model, content, [ selectable ] )
Inserts content into the editor (specified selection) as one would expect the paste functionality to work.
If an instance of
Selectionis passed as
selectableit will be modified to the insertion selection (equal to a range to be selected after insertion).
model : Model
The model in context of which the insertion should be performed.
content : DocumentFragment | Item
The content to insert.
[ selectable ] : Selection | DocumentSelection | Position | Element | Iterable.<Range> | Range | null
Selection into which the content should be inserted.