google-code-export / gwt-ckeditor

Automatically exported from code.google.com/p/gwt-ckeditor
2 stars 0 forks source link

Please add support for "getSelectedText()" #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm attempting to swap-in gwt-ckedtior in place of a pre-exisiting GWT 
TextArea, and discovered that the "getSelectedText()" method (or reasonable 
facsimile) is not available.

Using gwt-ckeditor version 0.5 On OS X 10.6.5

Thanks

Original issue reported on code.google.com by ade...@gmail.com on 10 Dec 2010 at 9:32

GoogleCodeExporter commented 9 years ago
I have added a getSelection() method that returns a JavaScriptObject 
representing this object : 
http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#getSelection

As you can see, getting the selected text is not quite simple with CKEditor 
because every DOM node can be selected, not only text nodes.

Original comment by picard.d...@gmail.com on 26 Dec 2010 at 7:26