engine/model/utils/getselectedcontent
@ckeditor/ckeditor5-engine/src/model/utils/getselectedcontent
module
Filtering
Functions
-
getSelectedContent( model, selection ) → DocumentFragment
Gets a clone of the selected content.
For example, for the following selection:
It will return a document fragment with such a content:
Parameters
model : Model
The model in context of which the selection modification should be performed.
selection : Selection | DocumentSelection
The selection of which content will be returned.
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.