J
John Wallace
Hi,
I'm having a problem using "pasteHTML" in an MSHTML control. It's fine
if plain text is selected and I use:
var objRange = editor.document.selection.createRange()
objRange.pasteHTML("my new html");
However, if I select an <img> control in the existing HMTL, then
"createRange" returns a "controlRange" object instead of a "textRange"
object. This doesn't support "pasteHTML" and I can't find a way of
deriving a "textRange" from my "controlRange" object.
Is that possible?
Thanks,
John
I'm having a problem using "pasteHTML" in an MSHTML control. It's fine
if plain text is selected and I use:
var objRange = editor.document.selection.createRange()
objRange.pasteHTML("my new html");
However, if I select an <img> control in the existing HMTL, then
"createRange" returns a "controlRange" object instead of a "textRange"
object. This doesn't support "pasteHTML" and I can't find a way of
deriving a "textRange" from my "controlRange" object.
Is that possible?
Thanks,
John