Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to get selected text from Ckeditor area?

    I have to integrate specific functions into CKeditor in Smartgwt. I prepared modal window for that which works well but I need to modify text in editor area. My thought is to call method like getSelectionRange which returns array of integers with start and end index of selected text but mentioned method isn't implemented. I use instance of RichTextEditor and text is inserted into usual Canvas instance which have option canSelectText set to true.

    I'm using SmartGWT version 2.4.


    Thank you for your help,

    Michal
    Last edited by michalci; 3 Jul 2011, 23:05.

    #2
    I had an issue like that, and i solved using JSNI. I added my JavaScript events listeners, so i could be notified in case of text selection.

    It works like a charm. (Im only aiming FF as browser so it was more easy).

    Comment

    Working...
    X