I've been trying to implement a richtext editor using an iframe.
I've got a little help from the following for the script that inserts html at the cursor/selection:
from Insert html at caret in a contenteditable div
All in fine on Chrome and FF, but IE (using IE10 at the mo - but same result in earlier verion modes) fails at:
range.insertNode(frag);
Giving the follwing error:
SCRIPT5022: WrongDocumentError
I found the following link detailing the error:
http://msdn.microsoft.com/en-us/library/windows/apps/hh453166.aspx
However I am at a loss to know how to work round the error.
Any help would but appriciated...