On default is the iframe tag a not allowed tag in the editor. You must change the filter for allowed this html tag. Copy the follow source in a plugin and allow iframe for the editor TinyMCE.
add_filter( 'tiny_mce_before_init', 'fb_change_mce_options' );
function fb_change_mce_options( $tags ) {
// Comma separated string od extendes tags
// Command separated string of extended elements
$ext="iframe[align|longdesc|name|width|height|frameborder|scrolling|marginheight|marginwidth|src|id|class|title|style]";
if ( isset( $tags['extended_valid_elements'] ) )
$tags['extended_valid_elements'] .= ',' . $ext;
else
$tags['extended_valid_elements'] = $ext;
return $tags;
}
Related Posts:
- Why did multiple line breaks stop working in text editor?
- Markup of oEmbed codes in the editor?
- How can I stop TinyMCE from converting my HTML entities to characters?
- Cite-Tag for blockquotes
- 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
- Easy way to inject js in tinymce iframe?
- WP 3.3 my rich text category editor toolbar is gone!
- Add table controls with wp_editor minimal editor configuration (‘teeny’)
- How do i disable/disallow and tags in TinyMCE?
- How can I control the HTML output of my post?
- TinyMCE Plugin Parameter
- Access tinymce from thickbox
- 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
- Editor stripping out data attribute when saving
- 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
- Editor html formatting is different from view source
- How can a TinyMCE modal return formatted/visual text?
- Why exactly does WordPress use p tags, not divs?
- Allowing style tag in TinyMCE editor
- 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
- Adding microdata using Structured Data Markup Helper HTML
- `tinyMCE is not defined` after migrating site to server
- how to see P and BR tags in tinymce?
- Remove heading tags on line break
- Custom shortcode editor [BackboneJS & TinyMCE)
- WYSIWYG with HTML source?
- How do I separate my theme’s styles from editor styles?
- Add custom classes to TinyMCE generated markup
- Problem with Line spacing in wysiwyg editor in WP 3.5.1
- How to add placeholder in wp_editor?
- How to align iframe always in the center
- Alternative to iFrames with HTML5
- How to disable auto-play for local video in iframe
- How to embed an autoplaying YouTube video in an iframe?
- Initialize TinyMCE editor / visual editor after AJAX insert
- No filter of code on switch from html to visual editor, how?
- How to include own css on wordpress tinymce editor?
- Stop editor from removing tags and replacing them with nbsp
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- 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
- How can I publish Word files to a WordPress blog without losing the footnotes?
- How to keep non-breaking spaces in the visual editor?
- Is there a hook to put stylesheet and/or JS inside iframes (thickbox or tinyMCE) in admin area
- Remove “Are You Sure” dialogue when leaving editor
- Creating a custom MCE view for your shortcodes [closed]
- How to customize the symbols that appear in the Visual Editor insert custom character
- Disable TinyMCE autoformatting
- tinyMCE.activeEditor = null WP editor loaded in ‘Text’ mode?
- Keep pasted pre formatted code as it is -with tabs- in visual editor
- Insert text a cursor position in to TinyMCE text editor
- Using main style.css with add_editor_style
- How can I troubleshoot why TinyMCE won’t load custom plugins in the visual editor?
- Remove html markup by wordpress
- TinyMCE Editor as component in Gutenberg Block
- wp_editor on input changes content
- How do I add a TinyMCE row that all users can see, instead of just admins?
- How to disable formatting
- Removing unneccessary p-tags (Not every p)
- How to get line breaks to translate to paragraphs?
- Localize variables with TinyMCE script
- Shift-Enter in tinyMCE (wp 3.3.1) not working
- TInyMCE object Tag stripped
- Add Attribute to p Tag of Post Content
- Adding custom styles to elements, without creating new elements
- Custom TinyMCE Editor Formats in Dropdown
- Can I disable `wp-tinymce.php` load as script?
- wp_editor – Media uploader button to tinymce
- WordPress no longer holding post formatting
- HTML formatting issues when switching between editor tabs
- Stop editor from adding “amp;” after every “&”
- TinyMCE – Insert media at the beginning of post
- Prevent markup being altered when switching between Visual and HTML editors
- Adding a class to custom TinyMCE button using WPLinks dialog box
- How to force wp excerpt to use br tag?
- TinyMCE errors after 3.7.1 to 3.9.1 upgrade
- Make videos output as iframes not links
- How to insert image from link in TinyMCE
- Tinymce broken after update
- get backend to front end
- How to create custom toggle button in tinymce?
- How to load TinyMce cloud editor in WordPress with wp_editor()?