Opened 7 years ago

Last modified 7 years ago

#16849 confirmed Bug

Cannot use Paste From Word on numbered lists with parens around number/letter

Reported by: mike_chq Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version: 4.6.0
Keywords: Cc:

Description

Steps to reproduce

  1. Go to http://ckeditor.com/features and click on Accessibility Checker demo
  2. Click on the Paste From Word button
  3. Paste in the following from Word (formatted in Word as a numbered list with the parens) and press OK:

(a). This will not work.

Expected result

Same output as copied from Word (formatted as a numbered list)

Actual result

Nothing gets pasted. Error in console:

Uncaught TypeError: f.getSubsectionSymbol(...).match is not a function
    at Object.setListSymbol (default.js?t=H0CI:23)
    at Object.createLists (default.js?t=H0CI:29)
    at root (default.js?t=H0CI:6)
    at a.exec (ckeditor.js?oksklt:284)
    at $.onRoot (ckeditor.js?oksklt:282)
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.htmlParser.fragment.filter (ckeditor.js?oksklt:278)
    at $.applyTo (ckeditor.js?oksklt:281)
    at Object.CKEDITOR.cleanWord (default.js?t=H0CI:14)
    at ckeditor.js?oksklt:1093
    at a (ckeditor.js?oksklt:1091)

Same result if I try (1). or (A). etc.

Other details (browser, OS, CKEditor version, installed plugins)

Note that this appears to be a regression from version 4.5.11 to 4.6

OS: macOS Sierra Version 10.12.2

Browser: Chrome Version 56.0.2924.87 (64-bit)

Word: Word for Mac Version 15.30

CKEDITOR: 4.6.2 (standard)

Attachments (2)

2017-02-10_1347.swf (2.1 MB) - added by Jakub Ś 7 years ago.
2017-04-25_1337.swf (2.9 MB) - added by Jakub Ś 7 years ago.

Change History (6)

Changed 7 years ago by Jakub Ś

Attachment: 2017-02-10_1347.swf added

comment:1 Changed 7 years ago by Jakub Ś

Status: newpending
Version: 4.6.2

Could you check out my recoded attempt of reproducing the problem and tell me where did I make a mistake?

Basically I have created text (a) test, changed it into list and pasted it into CKEditor. I had to use context menus because Jing was blocking shortcuts on my VM but results are the same when using keyboard.

comment:2 Changed 7 years ago by Jakub Ś

We have checked this issue on two different computers and didn't get error in any of them?

Could you tell me if by any chance you have some third-party Chrome plugins installed and if so, could you disable all of them, clear browser's cache according to http://www.wikihow.com/Clear-Your-Browser's-Cache and recheck this problem?

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

comment:3 Changed 7 years ago by mike_chq

Hi,

Thank you for your response. When I try your specific test, everything is functioning normally (without having to turn off plugins or clear the cache).

After a little bit of testing, I realized that the problem is actually when there are parens AND a period surrounding the list number/letter (which happened to be the case in the document I was testing out).

For clarification, the following work fine for me:

(a) I work.
a. I work, too.

But I am still seeing an error with:

(a). I am not working.

Happy to provide any additional information - just let me know!

comment:4 Changed 7 years ago by Jakub Ś

Status: pendingconfirmed
Version: 4.6.0

I have managed to reproduce this problem but I needed to "Define New Format Number". Once I have created (a). and (a). (enter one of these values in first field and press OK), I could create such list paste it into editor and get this problem.

I'm setting version 4.6 since this is where new PFW has been introduced.

Changed 7 years ago by Jakub Ś

Attachment: 2017-04-25_1337.swf added
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