[wp-trac] [WordPress Trac] #17068: Pasting text from Word does not have span tags cleaned anymore
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 6 21:44:51 UTC 2011
#17068: Pasting text from Word does not have span tags cleaned anymore
--------------------------+-----------------------------
Reporter: mjaning | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 3.1
Severity: normal | Keywords: needs-testing
--------------------------+-----------------------------
I usually paste text copied from Word doc using the visual editor in the
post page. After upgrading to WP v-3.1 the pasting process has stopped
cleaning the <span> tags which normally contains font and style attributes
coming from Word doc.
After several tests I concluded (I did not find indeed) that some issue
came bundled with WP-v3.1 in the \wp-
includes\js\tinymce\plugins\paste\editor_plugin.js which is responsible
for taking care of pasting process.
For confirming this theory I have replaced the files under \wp-
includes\js\tinymce\plugins\paste\ with the same files from a previous WP
version. After that, the pasting process started working again. The
cleaning process is now keeping the HTML code perfectly clean, and the
span tags were removed.
It does not matter if I am pasting straight to the text or if I am using
the Paste From Word button, the cleaning process is just working fine in
both ways.
Using WordPress 3.1, Customized Theme, W7 /CentOS release 5.5, FF4 / IE9 /
Chrome10 / Opera 11 browsers
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17068>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list