Cursor position in Editor

Originally Posted 2 April 2014, 9:07 am EST

  • Originally Posted 2 April 2014, 9:07 am EST

    Hi

    I want to add C1RibbonDropDownListButton to C1Editor where selection of an item will insert a tag to the html.
    In commandButtonClick event I get the selected item but I want to insert the tag according to the selection of the text in the editor: in the current cursor position or replace the current selected text.
    I checked the e parameter but did not find any clue for this information there.

    How can I do that?

    Regards
    Guy
  • Marked as Answer

    Reply

    Hello Guy,

    You may refer to a similar implementation with WijEditor which is explained in our blog:
    http://wijmo.com/insert-text-at-cursor-postion-in-wijmo-editor/

    Let me know if this helps.

    Thanks,
    Richa
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels