As far as I remember cleanup you are talking about is performed by JavaScript so it isn’t easy to mashup with PHP.
It would probably be easier to make list of changes you want performed and do it with PHP (there are cleanup-related function available in it as well).
Related Posts:
- 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
- How to make WordPress and TinyMCE accept tags wrapping block-level elements as allowed in HTML5?
- Visual Editor freezing on text highlight since 4.3
- tinyMCE duplicates previous block element when pressing return (visual editor)
- 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
- 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
- Added custom styles to Visual Editor. Classes are appended and not replaced as intended
- Preserving tabs and line breaks in when switching from HTML to Visual 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
- 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
- Change syntax styling of TinyMCE HTML Text Editor
- 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
- Preventing tinyMCE from auto formatting selected blocks of content
- 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”?
- When switching from html to visual editor the tag gets corrupted
- Secure Validation of wp_editor in Theme Options
- Restrict file uploads by extension?
- TinyMCE editor – new lines not rendered on front end
- onClick inside post_content does not appear in post tinymce editor
- Remove ‘Visual’ tab from TinyMCE editor
- How do i disable/disallow and tags in TinyMCE?
- How can I control the HTML output of my post?
- wpeditor issue – shows both mode and not able to focus/edit during visual mode
- Set tinymce direction to rtl
- Add a select a class dropdown in tinymce
- WordPress & TinyMCE: Failed to load
- Limiting allowed html elements/strip harmful scripts from editor
- Our shortcode dropdown box in Tinymce is not working in WordPress 3.9?
- Tiny MCE-modifications (plugins) stopped working in WordPress 5.6
- How to add button in TinyMCE TEENY mode?
- Adding TinyMCE buttons without removing plugin buttons?
- WordPress Tinymce editor broken and nothing seems to fix it :(
- Disable TinyMCE Table formatting width/height
- Placing tags on wordpress visual editor using shortcodes
- Adding custom block formats to TinyMCE. Everything works until JavaScript error when applying the format
- tiny_mce_before_init is not trigger
- How can a TinyMCE modal return formatted/visual text?
- How to apply a custom skin to WP_Editor / TinyMCE?
- Why exactly does WordPress use p tags, not divs?
- How to edit blockquote image
- When I write posts I usually have to use non breaking space element in order to keep margins in between the sentences. why?
- Add custom value for link_class_list for the classic editor
- How to apply padding to TinyMCE editor?
- Equation input with preview in classic editor
- TinyMCE is inactive after installation
- WordPress, tinymce, how get the link text from dialog?
- How to set custom TinyMCE format style as default?
- Did Gutenberg block editor change the html in post content during import?
- Add custom TinyMCE 4 Button: Is it mandatory to have one JS per button?
- Nested ordered list in tinymce
- Visual Editor not working properly
- Inline Editing with wp_editor and tinymce (problem with textarea)
- TinyMCE 4.0: specifying buttons to display [duplicate]
- Adding to he format dropdown menu tinyMCE in WordPress
- Is there an alternative way to upload html without using TinyMCE?
- add button to tinymce