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 center an iframe horizontally?
- Brackets – Live Preview not working
- How to do auto-width with HTML IFrame
- Extra TinyMCE editor strips and tags?
- Creating a wp_editor instance with custom tinyMCE buttons
- Add popup window to TinyMCE buttons
- How to customize TinyMCE4 in WP 3.9 – the old way for styles and formats doesn’t work anymore
- Load wp_editor via ajax [duplicate]
- TinyMCE 4.x : How to customize toolbar on wp_editor()
- Wait for Gutenberg or built something in ACF?
- Replicating the_editor (Media Bar, TinyMCE, Visual/HTML Tabs) functionality without a huge rewrite
- “wp_editor” not displaying TinyMCE correctly when square brackets used in name
- Using a dashicon for a custom button in TinyMCE?
- Pasting code into pre-formatted text in Visual Editor not working in 3.3.1
- Why is WordPress WYSIWYMG and how do I make it WYSIWYG?
- WordPress visual editor broke due to non standard port?
- TinyMCE is broken
- Insert shortcode in post editor from javascript (Visual / HTML)
- in network setup super admin has the tinyMCE buttons and the regular admin has not
- Is there a way to remove the default css from TinyMCE?
- TinyMCE Visual Blocks plugin set Show blocks option for all users
- Selectively remove empty line after line change
- wordpress qtranslate editor text is not working [closed]
- create a front end post page template withTinyMCE,
- How to Disable auto id attributes in Heading tag?
- Visual editor issue by having multiple tiny mce editors in a CPT
- Open Insert/edit link popup
- How to add Listbox / Select dropdown for shortcodes in WP 3.9 beta2 using TinyMCE?
- Using spellchecker plugin in TinyMCE
- wp_editor not modify html tags of initial content
- Stop TinyMCE from deleting empty HTML tags
- Using custom HTML tags to WordPress [closed]
- Visual composer causing conflict with TinyMCE [closed]
- Overriding TinyMCE buttons – Justify button shortcodes not working
- WP Editor: Keep Bold, Underline, etc. but ignore color
- TinyMCE 4 & wp_editor multiple editor issue
- How to remove buttons from tinyMCE in wp_editor added via AJAX
- TinyMCE invalid nested list markup
- Unable to save Theme Options when TinyMCE is enabled for the text area
- Using wp_editor() when not logged stopped working
- How can I change TinyMCE’s default block format?
- Remove MS Word comments from pasted text
- How to have html in TinyMce “Text” tab properly indented and highlighted
- TinyMCE adds a after a HR
- How to remove “justifyfull” in TinyMCE
- Filter html of WordPress editor in visual mode only
- Localize tinymce in WordPress 3.9?
- How to integrate a different (JavaScript) editor in WordPress?
- Get the More QuickTag button back
- TinyMCE buttons broken
- Preventing tinyMCE from auto formatting selected blocks of content
- WordPress 4.5 Inline Link Toolbar not working on custom wp_editor instance
- How can I replace the built in WordPress editor?