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

Styles/colors don't paste in IE/Edge #1164

Open
flarnie opened this issue Apr 23, 2017 · 1 comment
Open

Styles/colors don't paste in IE/Edge #1164

flarnie opened this issue Apr 23, 2017 · 1 comment
Labels

Comments

@flarnie
Copy link
Contributor

flarnie commented Apr 23, 2017

Do you want to request a feature or report a bug?
bug

What is the current behavior?

Steps to reproduce:

  1. Open either 'color' or 'rich' example in IE or Edge browser.
  2. Write some text and use rich styles and/or colors
  3. copy and paste the text.

Current behavior:
IE 11.567 - newlines and styles are dropped completely
Edge - only styles that are enabled for the place you paste into are applied, and newlines are preserved. See attached screenshots.

Expected behavior:
Styles and newlines should both be preserved, like in Chrome.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/.

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?

I'm not sure when this snuck into Draft. I don't think it came up in previous versions but seems to be present both on master and in v0.10.0. I don't think it was present before v0.10.0.

IE:
color_paste_ie

Edge:
colors_copypaste_edge

IE:
rte_paste_ie

Edge:
rte_example_copypaste_in_edge

@flarnie flarnie added the ie label Apr 23, 2017
@flarnie flarnie mentioned this issue Apr 23, 2017
19 tasks
@cpwinn
Copy link

cpwinn commented Jun 14, 2017

@flarnie is this issue still being targeted for an upcoming release? I noticed it didn't make the cut for v0.10.1 and was hoping to avoid implementing the changes from the various forks mentioned in #986.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants