Ticket #5566 (closed Bug: fixed)
Smart tags not dealt with by pastefromword
|Reported by:||navnorth||Owned by:|
|Component:||Plugin : Paste from Word||Version:|
Smart tags are not dealt with in any way by the pastefromword plugin.
One of our users attempted to paste content from a Word Document into CKEditor. The content contained the following line.
In this case, the smart tag was inserted incorrectly in the Word Document, but that is true for many documents created with automatic smart tagging enabled.
Smart tags should be removed in the same way that other Word-specific tags are removed, while preserving any content between the tags. Leaving smart tags intact causes display issues if the content from a wysiwyg is later displayed as html.
For our system, I added the following lines to the default.js for the pastefromword plugin.
This removes all <st1> tags, while leaving contained content alone.