WordPress injects its own external script files in the TinyMCE editor iframe
, see for example the wp-includes/js/tinymce/plugins/wpembed/plugin.js
file:
(function ( tinymce ) {
'use strict';
tinymce.PluginManager.add( 'wpembed', function ( editor, url ) {
editor.on( 'init', function () {
var scriptId = editor.dom.uniqueId();
var scriptElm = editor.dom.create( 'script', {
id: scriptId,
type: 'text/javascript',
src: url + '/../../../wp-embed.js'
} );
editor.getDoc().getElementsByTagName( 'head' )[ 0 ].appendChild( scriptElm );
} );
} );
})( window.tinymce );
The plugin.js
file is loaded in TinyMCE using the tiny_mce_plugins
filter.
Related Posts:
- When switching from html to visual editor the tag gets corrupted
- How do i disable/disallow and tags in TinyMCE?
- Access tinymce from thickbox
- How to add “Insert/Edit link” button in custom popup tinymce window?
- How to disable TinyMCE from removing span tags
- WordPress automatically adding ” “?
- How to get the input of a TinyMCE editor when using on the front-end?
- Enqueue Script After TinyMCE initialized
- Unable to add “code” button to TinyMCE toolbar
- WordPress 3.2 has broken my TinyMCE code
- wp_editor disable after reaching character count limit
- Is it possible to re-use the image details popup?
- Visual Tab Missing From Editor
- How to use the new Dashicons for custom TinyMCE buttons?
- Is it possible to create nested lists in the WYSIWYG editor?
- Add a button to tinyMCE editor on Custom Post Type
- HTML5, WordPress and Tiny MCE issue – wrapping anchor tag around div results in funky output
- How to disable TinyMCE 4 keyboard shortcuts
- Tiny MCE not adding p tag when saving theme option
- How to add TinyMCE keyboard shortcut
- WordPress MultiSite Paste from Word Tool Does not work
- data-accordion removed in Visual Editor
- 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
- Remove quicktag buttons but not Visual / Text editor and tabs
- TinyMCE removes iframe attributes width and height
- WordPress tinymce prints empty P tag and break html format
- Append Font Family in TinyMCE
- Disabling TinyMCE keyboard shortcuts altogether
- TinyMCE strips line breaks on mceAddControl
- tinyMCE duplicates previous block element when pressing return (visual editor)
- Count Words using tinymce in the front-end
- 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 Keyup Function
- TinyMCE Editor removing and and putting instead
- Using main style.css with add_editor_style
- Hide TinyMCE controls in TinyMCE 4 (WordPress 3.9)
- 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
- WordPress editor strips out anchor tags when they appear on their own line
- Sortable WYSIWYG editor
- Limit Block format tags in WordPress wp_editor
- How to disable formatting
- Add table button in editor without Plugin
- Custom settings page TinyMce: no formatting when echoing value of editor
- How to reset ‘Advance’ tab on table property?
- Add drop down in wordpress tiny mce editor pop up
- Localize variables with TinyMCE script
- Prevent the Editor From Moving My
- TinyMCE Advanced list type drop-down
- editor text cut off when using 2 spaces (after periods)
- Advanced tinyMCE insert link error [closed]
- Is it possible to disable the image alignment options in the post editor?
- Adding custom styles to elements, without creating new elements
- Keyup events in tinymce editor not working
- Tiny MCE doesn’t look anything like my blog
- Removing tags around tags
- TinyMCE – no auto formatting using the_editor()?
- How to force insertion in editor
- TinyMCE not loading in IE8
- Sanitizing textarea for wp_insert_post with TinyMCE enabled or disabled
- Visual Editor is blank – 404 for plugin js
- Getting shortcode attribute values and shortcode content with JavaScript regex
- Allowing style tag in TinyMCE editor
- remove WYSIWYG editor but keep media button
- Best Browser for Editing Posts
- WordPress Tiny MCE won’t accept line breaks
- wp_tiny_mce function not found
- TinyMCE strips off the href tag inside span, if i change from text to visual
- Wordpres Tinymce custom button (Gavick guide)
- Loading a self-hosted custom @font-face into TinyMCE dropdowns (Classic Editor) via ‘tiny_mce_before_init’ filter
- clasic editor – article categories customization?
- Replace text by icon in TinyMCE toolbar
- TinyMCE Advanced Link Class List on the main editor
- Client on iPad accidentally adding tag to posts while writing
- TinyMCE function causes issue in AVADA theme
- Changing code with ( ) when author updates their post (TinyMCE)
- WordPress Editor without buttons
- How do I externalize JQuery from my Tinymce Modal Dialog’s html and Enqueue the JS File to see JQuery
- Adding microdata using Structured Data Markup Helper HTML
- How to modify VisualComposer’s TinyMCE editor only for a specific shortcode
- `tinyMCE is not defined` after migrating site to server
- Issue with iframe in TinyMCE
- WordPress adding extra html coding to my data on saving
- Tinymce doesnt appear
- mce_external_languages: how does it really work?
- tinymce modal and I18n strings methods
- Edit body image after insertion in 3.9.1
- WordPress WYSIWYG editor on demand, responsive
- WYSIWYG with HTML source?
- Multiple TinyMCEs breaking Distraction Free Writing
- prevent caching during tinymce custom button development
- How do I separate my theme’s styles from editor styles?
- WordPress removes paragraphs. How to disable this behavior?
- WPAlchemy – Multiple TinyMCE editor blank (can’t add text)
- Add custom classes to TinyMCE generated markup
- wp_insert_post() dont post content like i need it :(
- How to create custom toggle button in tinymce?