WordPress.org

Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#2037 closed defect (bug) (invalid)

RegEx(TinyMCE Javascript) that should remove whitespace paragraphs (<p> </p>) does not work in Internet Explorer

Reported by: mani_monaj 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 @mani_monaj
16 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

#2 @skeltoac
16 years ago

  • Milestone changed from 2.0 to 2.1
  • Priority changed from high to low
  • Resolution set to invalid
  • Severity changed from major to trivial
  • Status changed from new to closed

The empty paragraphs are no longer inserted by default.

#3 @ryan
16 years ago

  • Milestone changed from 2.1 to 2.0

#4 @(none)
15 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.