I have made a plugin for CKEditor, but it relies on the currently selected text.
In FF and Chrome I can use:
var selectedText = editor.getSelection().getNative();
but this doesn't work in IE and I only get [object Object]
Any suggestions?
I have made a plugin for CKEditor, but it relies on the currently selected text.
In FF and Chrome I can use:
var selectedText = editor.getSelection().getNative();
but this doesn't work in IE and I only get [object Object]
Any suggestions?
Use:
Or:
"txtTexto" = ID of textarea tag
This is what I use:
@TheApprentice
You put it like this:
with a call like this:
To those who want to prefill fields with a selection, just do it like that and safe yourself a long journey.
Have a nice day!
In the newer versions of CKEDITOR, there seems to be a way easier method: