#2414 closed defect (bug) (worksforme)
Ampersand Bug in RTE Interface
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | low | |
| Severity: | normal | Version: | 2.0.1 |
| Component: | TinyMCE | Keywords: | ampersand, wysiwyg, tinymce, bug, fix, rte |
| Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (4)
#1
@
19 years ago
- Keywords rte added
- Milestone 2.0.1 deleted
- Summary changed from Ampersand Bug in WYSIWYG Interface to Ampersand Bug in RTE Interface
Hi rajkp,
Thank you for reporting this issue. I am having trouble understanding how to reproduce the bug.
Using SVN head (r4198), I tried the following:
- Click the "Split Post with More tag" button
- Edit source, add '&' before "More" in the source.
- Click Update
- Edit source again.
There was no change.
Thank you,
Lloyd
PS. Please attach patches, not source files.
$ svn diff filename.php > filename.diff
#2
@
19 years ago
- Component changed from General to TinyMCE
- Resolution set to worksforme
- Status changed from new to closed
Closing as there has been no reponse from the reporter in over 6 months.
Please feel free to reopen if there is additional information.
Bug Fix for Ampersand Bug