Opened 12 years ago
Last modified 12 years ago
#10156 confirmed Bug
[Webkit] Cut&pasting text adds inline wrappers
Reported by: | Matthew Leffler | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Pasting | Version: | 4.0 Beta |
Keywords: | Chrome | Cc: |
Description
This is basically the same as #9754 except that it requires config.contentsCss
.
Steps:
- Add problem.css to the samples folder
- In the
replacebycode.html
sample change the JS toCKEDITOR.replace( 'editor1', { contentsCss: 'problem.css' } );
- Viewing the sample page, cut a word from the now red colored text and paste it back into the text.
Expected result: The source should be unchanged.
Actual result: The pasted text is now wrapped by <span style="color: rgb(255, 0, 0);">...</span>
.
Notes:
- Pasting using the Paste from Word command has the desired effect. (Removes styles but doesn't remove a link for example.)
- Is it possible to make
Cmd+V
,Ctrl+V
paste as if Paste from Word? I know ofconfig.forcePasteAsPlainText
but that would remove links, as well as styles.
Attachments (1)
Change History (4)
Changed 12 years ago by
Attachment: | problem.css added |
---|
comment:1 Changed 12 years ago by
Keywords: | Chrome added; Webkit removed |
---|---|
Status: | new → confirmed |
Version: | → 4.0 Beta |
comment:2 Changed 12 years ago by
Unlike #9754 I was able to reproduce this problem from CKEditor 4.0 beta in Chrome only.
@j.swiderski I'm able to repro this on Safari 6.0.2 on Mac OS X ML.
comment:3 Changed 12 years ago by
@mattleff thanks for the hint. I will recheck this on Mac and update comment if necessary.
Unlike #9754 I was able to reproduce this problem from CKEditor 4.0 beta in Chrome and Safari 6 Mac (Safari 5 Win seems to work fine).