HTMLEditor insert text at current cursor position
New DiscussionHi, I’m using the jQuery ignite UI HTML Editor (v 2013.1)
I’m wishing to insert some text at the current cursor position.
The only references in the API I can find relates to invoking “getContent”/”setContent” like:
var currentContent = $(“#editor”).igHtmlEditor(“getContent”, “html”);
$(“#editor”).igHtmlEditor(“setContent”, currentContent + “{My Text}”, “html”);
But, this will only allow me to insert at the beginning or append the text, how can I insert text at the current cursor position?
Thanks
Steve
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
2 Created On
Nov 28, 2013 Last Post
12 years, 3 months ago