Opened 9 years ago

Last modified 8 years ago

#14257 confirmed Bug

[Blink] Pasting from MS Word leaves <![endif]-->

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version: 4.5.0
Keywords: Blink Cc:

Description

Steps to reproduce

  1. Set allowedContent : true in editor configuration.
  2. Open replacebycode.html sample and attched MS Word File.
  3. Copy content from MS Word and paste it into editor.
  4. Switch to source

Expected result

<p></p><table cellpadding="0" cellspacing="0" width="100%"><tr><td><div><p>textbox</span></p></div></td></tr></table><img width="165" height="119" src="file:///C:\Users\john\AppData\Local\Temp\OICE_4027FAD9-2B4E-4B07-94CA-B7B328B953E0.0\msohtmlclip1\01\clip_image001.png" alt="Text Box: textbox" /></span>Plain text</span> 

Actual result

<p></p><table cellpadding="0" cellspacing="0" width="100%"><tr><td><div><p>textbox</span></p></div></td></tr></table><![endif]--><img width="165" height="119" src="file:///C:\Users\john\AppData\Local\Temp\OICE_4027FAD9-2B4E-4B07-94CA-B7B328B953E0.0\msohtmlclip1\01\clip_image001.png" alt="Text Box: textbox" /></span>Plain text</span> </![endif]-->

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

Problem can be reproduced from CKEditor 4.5.0 in Blink browsers.

Attachments (1)

test2.docx (14.2 KB) - added by Jakub Ś 9 years ago.

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by Jakub Ś

Attachment: test2.docx added

comment:1 Changed 9 years ago by Jakub Ś

To workaround the problem, you can use the following code:

var editor = CKEDITOR.replace( 'editor1', {});
editor.on( 'pluginsLoaded', function( evt ) {	
	editor.on( 'paste', function( event ){ 					
		event.data.dataValue = event.data.dataValue.replace(/<\/?!\[endif\](-+)>/igm, '');	
	}, null, null, 900);
});

comment:2 Changed 9 years ago by Jakub Ś

Status: newconfirmed

comment:3 Changed 9 years ago by Marek Lewandowski

Component: GeneralPlugin : Paste from Word

comment:4 Changed 8 years ago by Tade0

Milestone: CKEditor 4.6.0

Getting an object doesn't support this property or method when pasting in IE8.

comment:5 Changed 8 years ago by Marek Lewandowski

Milestone: CKEditor 4.6.0

We're unable to put any more PFW related tickets in 4.6.0. We'll revisit it later.

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