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:

  1. Add problem.css to the samples folder
  2. In the replacebycode.html sample change the JS to CKEDITOR.replace( 'editor1', { contentsCss: 'problem.css' } );
  3. 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 of config.forcePasteAsPlainText but that would remove links, as well as styles.

Attachments (1)

problem.css (18 bytes) - added by Matthew Leffler 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by Matthew Leffler

Attachment: problem.css added

comment:1 Changed 12 years ago by Jakub Ś

Keywords: Chrome added; Webkit removed
Status: newconfirmed
Version: 4.0 Beta

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).

Last edited 12 years ago by Jakub Ś (previous) (diff)

comment:2 Changed 12 years ago by Matthew Leffler

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 Jakub Ś

@mattleff thanks for the hint. I will recheck this on Mac and update comment if necessary.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy