Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 2 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:
Priority: low Milestone:
Component: Administration Version: 2.0
Severity: trivial Keywords: tinymce regex, default blank code
Cc: Focuses:

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
21 years ago

  • Milestone2.0
  • Summary RegEx(TinyMCE Javascript) that should remove whitespace paragraphs (<p> </p>) does not in Internet ExplorerRegEx(TinyMCE Javascript) that should remove whitespace paragraphs (<p> </p>) does not work in Internet Explorer

#2 @skeltoac
21 years ago

  • Milestone 2.02.1
  • Priority highlow
  • Resolutioninvalid
  • Severity majortrivial
  • Status newclosed

The empty paragraphs are no longer inserted by default.

#3 @ryan
21 years ago

  • Milestone 2.12.0

#4 @(none)
20 years ago

  • Milestone 2.0

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.