#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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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?