Make WordPress Core

Opened 14 years ago

Closed 11 years ago

Last modified 11 years ago

#20609 closed defect (bug) (fixed)

<p> tags in Editor not working on editing with wp_editor when disabling media_buttons or quicktags

Reported by: julian42 Owned by:
Priority: normal Milestone: 4.3
Component: Editor Version:
Severity: normal Keywords:
Cc: Focuses:

Description

When disabling the media_buttons or quicktags via the third argument in wp_editor via a settings array, <p> tags are not displayed any more, so there are no line breaks any more in the editor. Only " " is in the source code. The Problem also occurs, when changing 'quicktags' or 'media_buttons' in class-wp-editor.php in the core to false. wpautop is still true.

Change History (5)

#1 @Bueltge
14 years ago

  • Cc frank@… added

#2 @azaozz
14 years ago

This is caused by not running the content for the editor through wp_richedit_pre(). That's done when both editors are used but not when only TinyMCE or only Quicktags is used.

Not sure what would be the best way to handle this. Seems logical to always run these filters, however the content is escaped beforehand in all places in core that only use Quicktags. Perhaps another option in wp_editor()'s $settings array that would turn default filters on or off?

#3 @chriscct7
11 years ago

  • Keywords needs-patch added

#4 @azaozz
11 years ago

  • Resolutionfixed
  • Status newclosed

This should be fixed with r32899. Feel free to reopen if the problem still exists.

#5 @SergeyBiryukov
11 years ago

  • Keywords needs-patch removed
  • Milestone Awaiting Review4.3
  • Summary <p> tags in Editor not working on editing with wp_editor, wenn disabling media_buttons or quicktags<p> tags in Editor not working on editing with wp_editor when disabling media_buttons or quicktags
Note: See TracTickets for help on using tickets.