When using the default installation of CKEditor (v4) a new problem appears, also on D7, that even when copy/paste content within the Editor unwanted "span"-tags with bad attributes are created.

e.g. a simple copy paste within editor creates unwanted "span"-tags like this:

editor copy paste problems

The default Copy & Paste-Behaviour should avoid these issues and create the best clean code possible or provide settings to choose from.

Please note that I am working on a Mac (OS X 10.9.6, Chrome & FIrefox latest checked.)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drupal a11y’s picture

drupal a11y’s picture

Title: WYSIWYG - Basic CKEditor Config » WYSIWYG - Basic CKEditor Config "Copy & Paste"-Issues
drupal a11y’s picture

After some research I figured out that this is maybe a Google Chrome related issue: http://docs.ckeditor.com/#!/guide/dev_acf

Remove "noise" and make your website faster
Apart from copying invisible elements and classes, some browsers (like Google Chrome) also copy HTML content with styles defined through CSS classes and paste them as inline styles.

drupal a11y’s picture

No it´s not. Firefox & Safari have the same issues on OS X 10.9.5 for me.

drupal a11y’s picture

Issue summary: View changes
drupal a11y’s picture

In my opinion the ACF Mode should be optimized. Please see here: http://sdk.ckeditor.com/samples/acf.html

Wim Leers’s picture

Component: editor.module » ckeditor.module
Status: Active » Postponed (maintainer needs more info)
Issue tags: -wysiwyg ckeditor
Related issues: +#2521820: Update CKEditor library to 4.5.3

We just upgraded to CKEditor 4.5.3 in #2521820: Update CKEditor library to 4.5.3. Can you please try the latest version of D8 HEAD?

Wim Leers’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
drupal a11y’s picture

Thanks for the update. I´ll try it with the latest D8 Head.

drupal a11y’s picture

Works great. Thanks!

drupal a11y’s picture

Status: Closed (cannot reproduce) » Closed (fixed)