#13860 closed Bug (duplicate)
[Chrome] Text formatting like text color or background color are removed on copy&paste
Reported by: | Marc Nilius | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.5.0 Beta |
Keywords: | Blink Webkit | Cc: |
Description
Text formattings that are done with span elements like text color and background-color are removed, if one copies the text from one CKEditor to another. It worked in older versions of CKEditor, at least in 4.4.8. You can reproduce the issue also on the demo page of CKEditor.
Steps to reproduce
- Open the CKEditor full-featured demo in two tabs
- Add some text color and background color to a part of the text in the first tab.
- Copy that text into the clipboard
- Paste the text again in the editor on the second tab.
Expected result
Text color and background color formatting should still be there, like any other formatting like bold or italics.
Actual result
Text color and background color formattings are removed (because the span element for the style definition is removed), other formattings like bold and italics are still there. As I understand, the ACF is by default allowing these elements and styles and should not remove them.
I saw that Chrome sometimes adds the color in the style attribute as rgb(x,y,z) instead of #color, perhaps this is the problem for the ACF.
Other details (browser, OS, CKEditor version, installed plugins)
Reproduced in latest Chrome (46, Windows). I cannot reproduce this issue in Firefox (41, Windows).
Change History (6)
comment:1 Changed 9 years ago by
Keywords: | Blink Webkit added |
---|---|
Status: | new → confirmed |
Version: | 4.5.4 → 4.5.0 Beta |
comment:2 Changed 9 years ago by
Any news on this issue?
For us, this is a major issue, because our customers often use text and background color formattings and also often copy HTML content (that was created with CKEditor) in a new CKEditor instance.
Would be nice, if this could be fixed.
Thanks in advance, Marc
comment:3 Changed 9 years ago by
There are no plans to fix it in the nearest release but I will forward it to my colleagues asking if we could include it in one of future ones.
comment:4 Changed 9 years ago by
Cc: | chrisgui Irina added |
---|---|
Keywords: | IBM added |
#14593 was marked as duplicate.
comment:5 Changed 9 years ago by
It turns out we have quite a few issues with pasting and they all may be related:
Styles Stripping: #13860, #13926, #14250, #14358
The forcePasteAsPlainText not stripping styles: #13969, #14293
Weird event pasting relation (not sure): #13763
Problem with pasting in LibreOffice: #14622 (we do not support it but I have added this issue because general solution might also bring back old behaviour).
comment:6 Changed 9 years ago by
Cc: | chrisgui Irina removed |
---|---|
Keywords: | IBM removed |
Resolution: | → duplicate |
Status: | confirmed → closed |
Problem can be reproduced from CKEditor 4.5.0 in Blink and Webkit browsers.