I’m currently having the same problem. Here’s my work-around.
add_filter( 'tiny_mce_before_init', 'workaround' );
public function workaround( $in ) {
$in['force_br_newlines'] = true;
$in['force_p_newlines'] = false;
$in['forced_root_block'] = '';
return $in;
}
tiny_mce_before_init gives you access to the TinyMCE settings that WordPress’ editor uses. See also: TinyMCEConfiguration
The downside to this is instead of “return” resulting in a p it instead gives you a br. I’ve tried reversing the force_br_newlines and force_p_newlines but it results in the original problem. Hope this is of some help.
Related Posts:
- Added custom styles to Visual Editor. Classes are appended and not replaced as intended
- Change syntax styling of TinyMCE HTML Text Editor
- Add popup window to TinyMCE buttons
- TinyMCE editor is breaking my beautiful HTML
- How to replace the content of tinyMCE editor in both text and visual mode using jQuery?
- wp_editor disable after reaching character count limit
- Is it possible to create nested lists in the WYSIWYG editor?
- TinyMCE Anchor Button not showing
- How to keep non-breaking spaces in the visual editor?
- Is there a way to prevent the Editor from modifying my HTML
- How to disable TinyMCE 4 keyboard shortcuts
- How to customize the symbols that appear in the Visual Editor insert custom character
- Pasting code into pre-formatted text in Visual Editor not working in 3.3.1
- Add Shortcode inline inside Gutenberg block
- WordPress MultiSite Paste from Word Tool Does not work
- How to make WordPress and TinyMCE accept tags wrapping block-level elements as allowed in HTML5?
- onClick inside post_content does not appear in post tinymce editor
- Visual Editor freezing on text highlight since 4.3
- WordPress visual editor broke due to non standard port?
- Customising the WordPress TinyMce editor and it’s buttons
- Enable Visual Editor In Comments On CPT Edit Page
- Should the WP post editor B (bold) button be inserting a tag instead of in HTML5?
- Text cut off after the character 𪇆 in TinyMCE
- Adding image to visual editor popup for shortcode with wp.media and wp.mce: changing image duplicates shortcode
- Change Default Font Size and Remove Unwanted Font Sizes in TinyMCE
- TinyMce in WordPress – Getting the “fullscreen” button to stay on the right when customising button layout
- Preserving tabs and line breaks in when switching from HTML to Visual Editor
- Limiting allowed html elements/strip harmful scripts from editor
- How to disable formatting
- Add table button in editor without Plugin
- Make Textarea a TinyMCE (editor box)
- How to get line breaks to translate to paragraphs?
- TinyMCE Visual Blocks plugin set Show blocks option for all users
- Custom TinyMCE style formats disabled
- How does WordPress remember which editor is being used?
- Visual editor not showing all table rows
- Is it possible to disable the image alignment options in the post editor?
- Open Insert/edit link popup
- More than one TinyMCE (wp_editor) with different $settings[‘drag_drop_upload’] values breaks
- Customer Support: TinyMCE stopped working (on some computers)
- customize tiny MCE blockqute
- Keyup events in tinymce editor not working
- How to force insertion in editor
- Stop editor from adding “amp;” after every “&”
- Visual Editor is blank – 404 for plugin js
- Visual composer causing conflict with TinyMCE [closed]
- TinyMCE: Move buttons from 2nd row to top row
- enable TinyMCE for comment forms
- Best Browser for Editing Posts
- TinyMCE strips off the href tag inside span, if i change from text to visual
- Adding a Media Button to the WordPress Content Editor
- clasic editor – article categories customization?
- How can I change TinyMCE’s default block format?
- Load WordPress Editor .css on Front End
- “Formats” Select Menu in WP Editor doesn’t show up with correct colour
- How to force wp excerpt to use br tag?
- Adding microdata using Structured Data Markup Helper HTML
- How to modify VisualComposer’s TinyMCE editor only for a specific shortcode
- Extending the “Add Media”-Dialog … how do I finally insert something to the Post?
- prevent caching during tinymce custom button development
- Preventing tinyMCE from auto formatting selected blocks of content
- Problem with Line spacing in wysiwyg editor in WP 3.5.1
- wp_insert_post() dont post content like i need it :(
- WordPress Started Executing Code Inside PRE Tags Even They Are Properly Escaped
- Adding Custom Text Patterns in the WP 4.5 Visual Editor
- How to use tinyMCE for user “biographical info”?
- TinyMCE Autoresize
- Remove ‘Visual’ tab from TinyMCE editor
- What is this: data-wplink-url-error=”true” and why is it added to my links?
- Add Item to Custom TinyMCE Menu
- 2nd button row from WP Super Edit or TinyMCE Advanced doesn’t show to 2nd admin
- Hide content editor for posts after approriate date
- TinyMCE Plugin Parameter
- wpeditor issue – shows both mode and not able to focus/edit during visual mode
- wp.editor.initialize does not show the same default toolbar
- How to add button in TinyMCE TEENY mode?
- TinyMCE Editor change underline button behavior – u tag instead of span text-decoration underline
- Can’t remove generated by editor from database
- Post content not showing in the edit post textarea
- Disable TinyMCE Table formatting width/height
- Use schema.org HTML in TinyMCE Editor
- Adding custom block formats to TinyMCE. Everything works until JavaScript error when applying the format
- Adding CSS to admin TinyMCE editor for custom button
- How can a TinyMCE modal return formatted/visual text?
- How to apply a custom skin to WP_Editor / TinyMCE?
- Blank spaces show as a question mark
- Can i set css class for table via TinyMCE [closed]
- Where’s the explanation of the TinyMCE’s vars in the WP core?
- How to edit blockquote image
- Customizing tinyMCE 4 Styles and Format dropdowns
- WordPress (TinyMCE) not removing script tags
- Why Editor reformats my code
- How can I remove using built in wordpress filters
- Equation input with preview in classic editor
- TinyMCE is inactive after installation
- How to set custom TinyMCE format style as default?
- Did Gutenberg block editor change the html in post content during import?
- Prevent Black Studio TinyMCE from adding tags when switching from Visual to HTML mode
- Inline Editing with wp_editor and tinymce (problem with textarea)
- Is there an alternative way to upload html without using TinyMCE?