[wp-trac] [WordPress Trac] #2414: Ampersand Bug in WYSIWYG Interface
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 9 10:06:44 GMT 2006
#2414: Ampersand Bug in WYSIWYG Interface
-----------------------+----------------------------------------------------
Id: 2414 | Status: new
Component: General | Modified: Thu Feb 9 10:06:44 2006
Severity: normal | Milestone: 2.0.1
Priority: low | Version: 2.0.1
Owner: anonymous | Reporter: rajkp
-----------------------+----------------------------------------------------
There is a bug in the WordPress plugin for TinyMCE (the one that provides
the more and next page tags). If you attempt to use an ampersand, greater
than, or less than, each attempt to edit the source OR to save the file
results in an endless string of &'s which grows with each such
attempt.
The plugin filters out the ampersand character, but TinyMCE already does
this, so the WordPress filtering just messes things up.
There is an easy fix:
Delete every line in the wp-
includes/js/tinymce/plugins/wordpress/editor_plugin.js file that refers to
the ampersand character:
content = content.replace(new RegExp('&', 'g'), '&');
content = content.replace(new RegExp(' ', 'g'), ' ');
I was unable to commit this change using Subversion, so I hope someone
else can do this for me.
--
Ticket URL: <http://trac.wordpress.org/ticket/2414>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list