﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5566	Smart tags not dealt with by pastefromword	navnorth		"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.

{{{
<st1:stockticker w:st=""on""><u>JOB</u></st1:stockticker><u>TITLE</u>
}}}

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.

{{{
h=h.replace(/<st1[^>]*>/g,'');
h=h.replace(/<\/st1[^>]*>/g,'');
}}}

This removes all <st1> tags, while leaving contained content alone."	Bug	closed	Normal		Plugin : Paste from Word		fixed		
