#2037 closed defect (bug) (invalid)
RegEx(TinyMCE Javascript) that should remove whitespace paragraphs (<p> </p>) does not work in Internet Explorer
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | low | |
| Severity: | trivial | Version: | 2.0 |
| Component: | Administration | Keywords: | tinymce regex, default blank code |
| Focuses: | Cc: |
Description
When a blank post page loads, WP adds a <p> </p> as a textarea default value, FireFox ignores that and displays a blank HTML code(in HTML View) but Internet Explorer show that up in HTML view!
Andy figured out the problem :
For reasons not yet understood, the JS RegEx that should remove whitespace paragraphs (<p> </p>) does not work in MSIE. This is a back-burner bug for me. Anyone else can jump all over it. The regex is in wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js in the "get_from_editor" section.
Change History (4)
#1
@
20 years ago
- Milestone set to 2.0
- Summary changed from RegEx(TinyMCE Javascript) that should remove whitespace paragraphs (<p> </p>) does not in Internet Explorer to RegEx(TinyMCE Javascript) that should remove whitespace paragraphs (<p> </p>) does not work in Internet Explorer
Note: See
TracTickets for help on using
tickets.
The empty paragraphs are no longer inserted by default.