There are some things to try in this stackoverflow thread. The one I’m trying:
add_filter('tiny_mce_before_init', 'vsl2014_filter_tiny_mce_before_init');
function vsl2014_filter_tiny_mce_before_init( $options ) {
if ( ! isset( $options['extended_valid_elements'] ) ) {
$options['extended_valid_elements'] = 'style';
} else {
$options['extended_valid_elements'] .= ',style';
}
if ( ! isset( $options['valid_children'] ) ) {
$options['valid_children'] = '+body[style]';
} else {
$options['valid_children'] .= ',+body[style]';
}
if ( ! isset( $options['custom_elements'] ) ) {
$options['custom_elements'] = 'style';
} else {
$options['custom_elements'] .= ',style';
}
return $options;
}
Related Posts:
- Why did multiple line breaks stop working in text editor?
- When switching from html to visual editor the tag gets corrupted
- Markup of oEmbed codes in the editor?
- How can I stop TinyMCE from converting my HTML entities to characters?
- Add Shortcode inline inside Gutenberg block
- TinyMCE editor – new lines not rendered on front end
- WordPress tinymce prints empty P tag and break html format
- WP 3.3 my rich text category editor toolbar is gone!
- Add table controls with wp_editor minimal editor configuration (‘teeny’)
- TinyMCE Plugin Parameter
- Add table button in editor without Plugin
- Our shortcode dropdown box in Tinymce is not working in WordPress 3.9?
- Custom TinyMCE style formats disabled
- Add buttons to the new TinyMCE WP Editor. Javascript API
- Is it possible to disable the image alignment options in the post editor?
- How to dynamically generate wordpress editor on frontend?
- Change syntax styling of TinyMCE HTML Text Editor
- More than one TinyMCE (wp_editor) with different $settings[‘drag_drop_upload’] values breaks
- Why is the media upload button not in the main toolbar & can it be placed there instead?
- Adding CSS to admin TinyMCE editor for custom button
- How can a TinyMCE modal return formatted/visual text?
- TinyMCE Advances is removing blanks (” “)
- Why Editor reformats my code
- 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
- Wordpres Tinymce custom button (Gavick guide)
- Error in backend: Failed to load plugin: tabfocus from url
- Preserve indentation, HTML5 shorthand in editor
- `tinyMCE is not defined` after migrating site to server
- Custom shortcode editor [BackboneJS & TinyMCE)
- How do I separate my theme’s styles from editor styles?
- Problem with Line spacing in wysiwyg editor in WP 3.5.1
- How to add placeholder in wp_editor?
- WordPress automatically adding ” “?
- Initialize TinyMCE editor / visual editor after AJAX insert
- No filter of code on switch from html to visual editor, how?
- How set defaults on wpLink()
- How to modify image editor dialog options on WordPress?
- How to add multiple buttons to TinyMCE?
- Stop certain classes showing up in TinyMCE Advanced Style dropdown
- Possible to stop WordPress from adding p1, p2… classes to p tags in TinyMCE?
- Custom Tiny MCE button to bring up a custom php popup
- WordPress 3.2 has broken my TinyMCE code
- wp_editor disable after reaching character count limit
- How to add a class to ul tags created by the WordPress editor Tinymce?
- Is it possible to create nested lists in the WYSIWYG editor?
- Add a button to tinyMCE editor on Custom Post Type
- Is there a way to prevent the Editor from modifying my HTML
- HTML5, WordPress and Tiny MCE issue – wrapping anchor tag around div results in funky output
- Apply custom style to single word in WordPress
- How to keep a textarea and stop tinymce?
- Registering custom TinyMCE buttons, for admin area, to work with custom instances of wp_editor
- Adding TinyMCE custom buttons when using teeny_mce_before_init
- TinyMCE – Show Advanced Options (2nd Row) By Default
- Disabling TinyMCE keyboard shortcuts altogether
- TinyMCE strips line breaks on mceAddControl
- TinyMCE – Add class to OL – selector doesn’t seem to get parent OL,UL, just LI’s (4.6.3)
- Should the WP post editor B (bold) button be inserting a tag instead of in HTML5?
- TinyMCE Editor removing and and putting instead
- TinyMce in WordPress – Getting the “fullscreen” button to stay on the right when customising button layout
- Add TinyMCE editor to windowManager textbox
- unwanted and tags in text editor
- Sortable WYSIWYG editor
- How can I enable a TINYMCE rich text editor in the admin interface?
- Limit Block format tags in WordPress wp_editor
- Custom settings page TinyMce: no formatting when echoing value of editor
- the_editor() function
- How to reset ‘Advance’ tab on table property?
- Add drop down in wordpress tiny mce editor pop up
- Prevent the Editor From Moving My
- TinyMCE Advanced list type drop-down
- Multiple TinyMCE Editors in one Admin Page
- editor text cut off when using 2 spaces (after periods)
- Advanced tinyMCE insert link error [closed]
- wp_editor not modify html tags of initial content
- Stop TinyMCE from deleting empty HTML tags
- Editor html formatting is different from view source
- HTML formatting issues when switching between editor tabs
- Stop editor from adding “amp;” after every “&”
- Visual composer causing conflict with TinyMCE [closed]
- Overriding TinyMCE buttons – Justify button shortcodes not working
- TinyMCE – Insert media at the beginning of post
- Keyboard shortcut for headings on safari
- Changing code with ( ) when author updates their post (TinyMCE)
- Adding a class to custom TinyMCE button using WPLinks dialog box
- Add WordPress Core CSS into editor-style.css
- How do I externalize JQuery from my Tinymce Modal Dialog’s html and Enqueue the JS File to see JQuery
- How to force wp excerpt to use br tag?
- How to modify VisualComposer’s TinyMCE editor only for a specific shortcode
- TinyMCE errors after 3.7.1 to 3.9.1 upgrade
- tinymce modal and I18n strings methods
- WordPress WYSIWYG editor on demand, responsive
- Make videos output as iframes not links
- How to insert image from link in TinyMCE
- Tinymce broken after update
- get backend to front end
- Why did my get mangled, and how can I keep from happening again?
- WordPress Started Executing Code Inside PRE Tags Even They Are Properly Escaped