I'm trying to allow the user to edit a contenteditable div, but am finding that I can't use pasteHTML unless there is some text selected.
I thought document.selection.createRange() would return a valid zero-length selection (i.e. a position), but alas no.
I've really struggled to find any solution to this that doesn't involve iframes (not an option at present).
Any suggestions/ideas/questions most welcome.