Ace Editor - Selected Text

0
0

Hi,

We’re using the Ace Editor to edit a lot of SQL (building queries on the fly) and we need the ability to insert fields from buttons on a RibbonBar. This means we need to insert text where the cursor currently is in the editor (if there’s text selected, it should be replaced).

Is there any way to do this? I’ve seen some responses on Stack Overflow but there’s some confusion there.

Thanks,

Neil.

Attachment
  • You must to post comments
0
0

Hi Neil,

please find a simple sample attached that does what you described.
For more information about the AceEditor please refer to their documentation.

Best regards
Frank

  • Neil Hoskins
    Gave it a try, works perfectly! Thank you.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.