Opened 4 years ago

Last modified 4 years ago

#12940 confirmed Bug

Unable to paste text on new line after line with <o:p> MSWord formatting

Reported by: Ehman Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 4.0 Beta
Keywords: Cc:

Description

Reproduced the following in latest Chrome, IE10, and FF30.

CKEditor 4.4.6 full version instance with following configuration:

"removePlugins" : 'elementspath,magicline', "allowedContent" : true, "pasteFromWordRemoveFontStyles" : false, "pasteFromWordRemoveStyles" : false, "defaultLanguage" : 'en', "disableNativeSpellChecker" : false, "browserContextMenuOnCtrl" : true, "enterMode" : CKEDITOR.ENTER_DIV, "resize_enabled" : false, "removeDialogTabs": 'link:upload',

Paste the following text in the "Source":

<div style="font-size:10pt;font-family:Tahoma">&nbsp;</div>

<div class="MsoNormal"><i>Suggested Tabs<o:p></o:p></i></div>

<div class="MsoNormal">- Activity*<o:p></o:p></div>

<div class="MsoNormal">- Details*</div>

In WYSIWYG mode place your cursor at the end of "-Activty* and hit the "Enter" or "Return" key.

Attempt to paste text of any kind on that line, whether using the right click paste dialog or CTRL + V. In Chrome there will be a brief flash of text but nothing will be pasted. In FF30 and IE10 nothing will happen at all.

Hitting enter a second time allows the user to paste text.

Attempting to reproduce this in the CKEditor demo failed, because after pasting the above code in the Source and returning to the WYSIWYG view the <o:p> tags are removed.

Change History (1)

comment:1 Changed 4 years ago by Jakub Ś

Keywords: paste msword <o:p> removed
Status: newconfirmed
Version: 4.4.64.0 Beta

Problem can be reproduced in all browsers from CKEditor 4.0 beta. There is JS error thrown:

Message: Uncaught TypeError: Cannot read property 'pre' of undefined
Line: 1730
URI: /ckeditor-dev/core/editable.js

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy