It would appear that something REALLY obvious hasn't been figured out yet. I've looked all through the documentation and the forum, and I don't see it. There's no way to get the HTML you've selected in the editor.
Lots of plug-ins would need this information. Apparently there is no way to do this, unless I'm missing something. The only definitive thing I've seen is:
But it only gets text. No HTML. And shockingly (well not really), it doesn't work at all in IE8.
Anyone have any ideas?
Lots of plug-ins would need this information. Apparently there is no way to do this, unless I'm missing something. The only definitive thing I've seen is:
if (CKEDITOR.env.ie) { var selection = currentSelection.getSelection().document.$.selection.createRange().text; } else { var selection = currentSelection.getSelection().getNative(); }
But it only gets text. No HTML. And shockingly (well not really), it doesn't work at all in IE8.
Anyone have any ideas?
Yeah, for IE8 or below, you
Yeah, for IE8 or below, you have to use:
getSelection().getNative().createRange().text;
Maybe <script type="text
Maybe <script type="text/javascript" src="editor/ckeditor.js"></script> between the <head> tags isn't pointing to the location where the ckeditor.js file is located?