Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Cannot paste HTML in IE #986

@robbertbrak

Description

@robbertbrak

When pasting HTML in IE, only plain text is preserved.

To reproduce:

  • Copy some HTML with formatting (such as this line) to the clipboard.
  • Go to http://facebook.github.io/draft-js/ in IE.
  • Paste the clipboard contents into the editor.
  • Expected result: the formatting is preserved.
  • Actual result: The formatting is lost.

IE does not expose text/html on the clipboardData, so this may be difficult to fix. There are working workarounds, though, such as the one described on http://stackoverflow.com/a/6804718/815176. This workaround involves:

  • temporarily stashing the current editor contents
  • allowing the browser to natively paste into the contenteditable area
  • reading the contents of the contenteditable area

Would such a workaround be considered for inclusion in the framework?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions