Copy/Paste From Word Editor Plugin

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Copy/Paste From Word Editor Plugin

George Sexton

I'm running into an issue with the copy/paste from word editor plugin using dojo 1.11-1 when copying some content from MS Outlook. After using the copy/paste from word plugin, the content contains:

<span style="mso-fareast-font-family: &quot;Times New Roman&quot;;">
It looks like the original content was:

<span style="mso-fareast-font-family: &quot;Times New Roman&quot;;">

The regular expression from the PasteFromWord.js file is:
{regexp: /(style="[^"]*mso-[^;][^"]*")|(style="margin:\s*[^;"]*;")/gi, handler: ""},
My read of the expression is:

style="
followed by zero or more characters that are not double-quote.
followed by mso-
followed by one character that is not a ;
followed by zero or more characters that are not a quote
ending with a quote.

On Firefox 49.0.2 it works as expected. On IE 11, it does not work as expected.

--
George Sexton
MH Software, Inc.
Voice: 303 438 9585
http://www.connectdaily.com

--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Loading...