"inserthtml" command support needed in document.execCommand() method

Won’t fix Issue #918522


Oct 6, 2014
This issue is public.
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce


Repro Steps:

document.execCommand("inserthtml", false, “hello”);
when the document has selection. Nothing would happen as opposed to what would happen in other browsers.

Expected Results:

When calling
document.execCommand("inserthtml", false, “hello”);
we expect that it would behave as if the text “hello” were pasted there at the place of selection.

Actual Results:

Dev Channel specific:



0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Tony S.”

      Changed Assigned To from “Tony S.” to “IE F.”

      Changed Status to “Won’t fix”

    • The “insertHTML” command would be very helpful for me in my current development task for a text editor that uses a CHtmlView. I’m really disappointed that Microsoft has no intention of supporting this useful feature.

    • Since my recent comment, I have discovered the JavaScript commands “ms-beginUndoUnit” and "ms-endUndoUnit". These appear to be a much better solution to my development task than “insertHTML” would have been, since they give much more granular control of the UNDO chain. Thanks for providing these very useful commands!

    You need to sign in to your Microsoft account to add a comment.

    Sign in