If you wait for the SetupEditor event then you can access the editors:
add_action( 'admin_print_footer_scripts', function () {
?>
<script type="text/javascript">
jQuery(function ($) {
if (typeof tinymce !== 'undefined') {
tinymce.on('SetupEditor', function (editor) {
if (editor.id === 'contentLeft') {
// Could use new 'input' event instead.
editor.on('change keyup paste', function (event) {
console.log('content=%s', this.getContent());
});
}
});
}
});
</script>
<?php
} );
Related Posts:
- Creating a wp_editor instance with custom tinyMCE buttons
- Remove HTML editor and visual/HTML tabs from TinyMCE
- How to get the input of a TinyMCE editor when using on the front-end?
- Load wp_editor via ajax [duplicate]
- TinyMCE 4.x : How to customize toolbar on wp_editor()
- How to use the new Dashicons for custom TinyMCE buttons?
- Add unique class or ID information to tinyMCE
- TinyMCE Anchor Button not showing
- “wp_editor” not displaying TinyMCE correctly when square brackets used in name
- Secure Validation of wp_editor in Theme Options
- Tiny MCE not adding p tag when saving theme option
- TinyMCE Editor Set Default Tab
- Registering custom TinyMCE buttons, for admin area, to work with custom instances of wp_editor
- Remove quicktag buttons but not Visual / Text editor and tabs
- TinyMCE editor – new lines not rendered on front end
- TinyMCE strips line breaks on mceAddControl
- Count Words using tinymce in the front-end
- tinyMCE.activeEditor = null WP editor loaded in ‘Text’ mode?
- Add table controls with wp_editor minimal editor configuration (‘teeny’)
- Change Default Font Size and Remove Unwanted Font Sizes in TinyMCE
- TinyMCE Plugin Parameter
- wpeditor issue – shows both mode and not able to focus/edit during visual mode
- wp_editor on input changes content
- Limit Block format tags in WordPress wp_editor
- How to remove the statusbar from the default wordpress editor?
- wp.editor.initialize does not show the same default toolbar
- Stop WordPress Visual Editor converting backticks into code blocks
- TinyMCE Editor change underline button behavior – u tag instead of span text-decoration underline
- wordpress qtranslate editor text is not working [closed]
- 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
- Adding custom styles to elements, without creating new elements
- wp_editor not modify html tags of initial content
- allowing all HTML tags in tinymce editor
- How to apply a custom skin to WP_Editor / TinyMCE?
- Stop editor from adding “amp;” after every “&”
- TinyMCE 4 & wp_editor multiple editor issue
- How to remove buttons from tinyMCE in wp_editor added via AJAX
- Loading a self-hosted custom @font-face into TinyMCE dropdowns (Classic Editor) via ‘tiny_mce_before_init’ filter
- Load WordPress Editor .css on Front End
- “Formats” Select Menu in WP Editor doesn’t show up with correct colour
- WordPress Editor without buttons
- Adding a class to custom TinyMCE button using WPLinks dialog box
- How to remove “justifyfull” in TinyMCE
- wp_editor Too Tall when Content is Loaded
- Inline Editing with wp_editor and tinymce (problem with textarea)
- Adding New Row of Custom TinyMCE
- How to add placeholder in wp_editor?
- WordPress automatically adding ” “?
- WordPress 3.2 has broken my TinyMCE code
- wp_editor disable after reaching character count limit
- 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
- Apply custom style to single word in WordPress
- TinyMCE style_select – Append Classes
- Adding TinyMCE custom buttons when using teeny_mce_before_init
- TinyMCE – Add class to OL – selector doesn’t seem to get parent OL,UL, just LI’s (4.6.3)
- TinyMCE Keyup Function
- 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
- WordPress editor strips out anchor tags when they appear on their own line
- Sortable WYSIWYG editor
- How do I add a TinyMCE row that all users can see, instead of just admins?
- How to disable formatting
- Add table button in editor without Plugin
- Convert textarea with wp_editor
- TinyMCE as comment editor – encoding issues
- Localize variables with TinyMCE script
- Prevent the Editor From Moving My
- TInyMCE object Tag stripped
- How to reference TinyMCE body in my script
- Removing tags around tags
- TinyMCE not loading in IE8
- Sanitizing textarea for wp_insert_post with TinyMCE enabled or disabled
- Getting shortcode attribute values and shortcode content with JavaScript regex
- 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
- clasic editor – article categories customization?
- Replace text by icon in TinyMCE toolbar
- How to use wp_editor and save its data in wp_posts table
- TinyMCE Advanced Link Class List on the main editor
- Changing code with ( ) when author updates their post (TinyMCE)
- Still desperate about multiple TinyMCEs in widgets – is there any good solution to this yet?
- How do I externalize JQuery from my Tinymce Modal Dialog’s html and Enqueue the JS File to see JQuery
- How to modify VisualComposer’s TinyMCE editor only for a specific shortcode
- `tinyMCE is not defined` after migrating site to server
- Tinymce doesnt appear
- how to enable tinymce custom buttons in meta box?
- tinymce modal and I18n strings methods
- WordPress WYSIWYG editor on demand, responsive
- 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 :(
- WordPress Started Executing Code Inside PRE Tags Even They Are Properly Escaped