ckeditor / ckeditor4-releases

Official distribution releases of CKEditor 4.
Other
522 stars 412 forks source link

way to get the html and text enclosed by range #63

Closed minaseem closed 7 years ago

minaseem commented 7 years ago

There should be way to get the html and text enclosed by the range. This feature will be very useful. extractContent() removes the enclosed content from the DOM.

mlewand commented 7 years ago

You're looking for http://docs.ckeditor.com/#!/api/CKEDITOR.dom.selection-method-getSelectedText.

Still, please do not report issues in CKEditor. The correct location of CKEditor issue tracker is: http://dev.ckeditor.com.