#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: | |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | |
Focuses: | Cc: |
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)
#4
@
9 years ago
- Resolution set to fixed
- Status changed from new to closed
This should be fixed with r32899. Feel free to reopen if the problem still exists.
#5
@
9 years ago
- Keywords needs-patch removed
- Milestone changed from Awaiting Review to 4.3
- Summary changed from <p> tags in Editor not working on editing with wp_editor, wenn disabling media_buttons or quicktags to <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.
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?