Recently, I have worked with wysihtml5 Editor but I am not able to get the selected text of the Editor. Using JQuery I have written this code snippet but it is not working.
var len = $("#ticketmessage").val().length;
var start = $("#ticketmessage")[0].selectionStart;
var end = $("#ticketmessage")[0].selectionEnd;
var sel = $("#ticketmessage").val().substring(start, end);
Thanks & Regards
Manisha Biswas