I am attempting to paste multiple paragraphs from Word that have some hightlights and margin. However, whenever I paste more than one paragraph, I receive the following error:
Uncaught TypeError: Object function Object() { [native code] } has no method 'exec'
I can not seem to replicate within the CKEditor contained on this site. However, if I paste just one paragraph, I do not receive this error. I can also paste other source material and it will work as expected.
I have documented this using multiple attachments, so hopefully the attachments will help get to the bottom of the issue.
Additional Attachments
Additional Attachments
Attachments:
Anctually, even plain text
Not a clue what's throwing this exception, but have noticed that even pasting plain text from an ASCII editor breaks the styling of the parent container. Which, is weird since plaintext paste is basically a system function which 'just works' in most programs, you don't typically have to code anything to make it work. It should be exactly as if you were pressing keys.
I'm wondering if the issue is with CK, or with the way the browser itself (Firefox 23 in my case) handles pasting into an editable div. I guess that would be easy enough to check by creating a contenteditable div without CK loaded.
Since manual typing into existing text doesn't suffer this issue, a quick fix might be to write a small AutoIt routine that pokes the bytes from the paste buffer, directly into the page. That might solve your issue too.
They have fixed a problem
They have fixed a problem related to paste as plain text: http://dev.ckeditor.com/ticket/11307#comment:12
You should check if it applies to your site as it's an easy patch to use.
Any idea when this fix will
Any idea when this fix will be rolled into the production download available online at http://ckeditor.com/download?
This ticket is part of the 4
This ticket is part of the 4.3.2 release, due in 7 days. See the roadmap here: http://dev.ckeditor.com/roadmap
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Thanks @Anna. The nightly
Thanks @Anna. The nightly build that included the stated fix above did resolve my problem. I will update to the new release once it is available.
Thanks everyone for the great information!