Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.0
-
Component/s: WYSIWYG Editor
-
Labels:None
-
Environment:Internet Explorer 8, Microsoft Word
-
Difficulty:Easy
-
Similar issues:
XWIKI-314Copy/Paste from word transfers strange caracters and codes XWIKI-3994Office importer doesn't filter the meta and title tags from the pasted text XWIKI-273List text in Internet Explorer in WYSWIYG Editor XWIKI-2211Cannot log in using Internet Explorer XWIKI-3909Copy pasting from simple text editor does not create paragraphs XWIKI-4348CTRL+Z removes all pasted content from several actions, instead of the last pasted item XWIKI-4569Using "Import >Office Content" button in WYSIWYG, in IE7 it doesn't strip out XML tags XWIKI-3776Cannot add a link at the end of a list item in Internet Explorer XWIKI-2998Copy/Paste problem for styled text XWIKI-6596 AppServerTrustedKerberosAuthServiceImpl and REST with Internet Explorer 401 error
Description
Steps to reproduce:
- copy text from an Word document (Microsoft's Word application must be used; you don't get the same effect when using OpenOffice)
- click the Paste tool bar button
- paste the text in the rich text area -> the text is correctly displayed
- click the Insert button -> the dialog closes but the text is not inserted
Issue Links
- is related to
-
XWIKI-4161
XML tags are displayed after copy&paste word-doc in office importer
-
It seems that the wrong namespace declaration is serialized even by the native innerHTML call. This causes some problems when the pasted text is taken from the rich text area. The solution is to remove all non-HTML elements from the pasted text before sending the HTML to the server for cleaning.