1

I'm using NiceEdit for a project. How to insert text at current cursor position?

The getContent() function reqturns whole text. If I add something like getContent()+someText someText always appear after getContent().

How to insert text in current cursor position?

Zils
  • 403
  • 2
  • 4
  • 19
  • The standard way, https://stackoverflow.com/questions/7745867/how-do-you-get-the-cursor-position-in-a-textarea - combining the javascript with a library like jquery might help a bit. – Joop Eggen Jan 01 '21 at 00:53
  • Pls give some details. jQuery can't read content on niceEdit textarea content. – Zils Jan 01 '21 at 01:10

0 Answers0