Opened 14 years ago

Closed 11 years ago

#7805 closed Bug (fixed)

{cke_protected} inserted when pasting from Word in Chrome

Reported by: Wiktor Walc Owned by:
Priority: Normal Milestone: CKEditor 4.3.4
Component: General Version: 3.6
Keywords: Webkit Cc: jsolano@…

Description

Check the attached document and paste it into CKEditor using Google Chrome.

  • In config.js set:
    config.pasteFromWordPromptCleanup = true;
    
  • Click "Paste" button
  • Answer No when Chrome asks "Do you want to clean it before pasting?"
  • Result:
     ·       {cke_protected_1}List item
    

is displayed to the end user.

Note that when switching to source and back an extra {C} is added to the content.

Attachments (2)

List item - Chrome.docx (13.7 KB) - added by Wiktor Walc 14 years ago.
Chrome.png (32.6 KB) - added by Jakub Ś 13 years ago.
Visual presentation of the problem

Download all attachments as: .zip

Change History (9)

comment:1 Changed 14 years ago by Wiktor Walc

Status: newconfirmed

Changed 14 years ago by Wiktor Walc

Attachment: List item - Chrome.docx added

comment:2 Changed 14 years ago by Garry Yao

Status: confirmedpending

WFM Chrome 13.0

comment:3 Changed 14 years ago by Wiktor Walc

Cc: jsolano@… added

I can still reproduce it in Chrome 13.0.782.24 beta-m.

Make sure to set:

config.pasteFromWordPromptCleanup = true;

and hit "Cancel" when Chrome ask whether to clean text before pasting.

comment:4 Changed 13 years ago by Jakub Ś

Keywords: Webkit added
Status: pendingconfirmed
Version: 3.5.33.6
  1. set config.pasteFromWordPromptCleanup = true;
  2. open ajax sample
  3. copy contents from word file
  4. press Paste button, and CRTL+V to paste contents into dialog
  5. press OK and when Chrome asks you whether to clean text before pasting press "Cancel"
  6. Switch to Source and back to WYSIWYG you will get
    {cke_protected_1}List item
    

Switch to Source and back to WYSIWYG one more time. You will get

{C}{cke_protected_1}List item

I was able to reproduce it in Webkit (Chrome 12.07, Safari 5.1 (7534.50)) from CKEditor 3.6 rev [6904] (Before version 3.6 only anchor was pasted).

Changed 13 years ago by Jakub Ś

Attachment: Chrome.png added

Visual presentation of the problem

comment:5 Changed 13 years ago by Jakub Ś

#8216 - different issue but also concerns {C} being inserted.

comment:6 Changed 12 years ago by Jakub Ś

Patch from #9205 fixes this problem.

comment:7 Changed 11 years ago by Piotrek Koszuliński

Milestone: CKEditor 4.3.4
Resolution: fixed
Status: confirmedclosed

Fixed by #9205.

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