Use this one-liner:
if(!tinyMCE.activeEditor)jQuery(‘.wp-editor-wrap
.switch-tmce’).trigger(‘click’);
//Now you can use “tinyMCE.activeEditor” safely
console.log(tinyMCE.activeEditor.settings);
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
- How to get WP editors tinyMCE instances
- TinyMCE strips line breaks on mceAddControl
- Count Words using tinymce in the front-end
- 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
- Adding Custom Text Patterns in the WP 4.5 Visual Editor
- How to use tinyMCE for user “biographical info”?
- TinyMCE in customizer
- When switching from html to visual editor the tag gets corrupted
- Markup of oEmbed codes in the editor?
- Add Shortcode inline inside Gutenberg block
- WP_Editor – Remove TinyMCE Toolbars
- How to make WordPress and TinyMCE accept tags wrapping block-level elements as allowed in HTML5?
- Visual Editor freezing on text highlight since 4.3
- Remove ‘Visual’ tab from TinyMCE editor
- What is this: data-wplink-url-error=”true” and why is it added to my links?
- Customising the WordPress TinyMce editor and it’s buttons
- Adding image to visual editor popup for shortcode with wp.media and wp.mce: changing image duplicates shortcode
- Add Wrapper with Class to WYSIWYG Editor
- How to add button in TinyMCE TEENY mode?
- Can’t remove generated by editor from database
- Custom TinyMCE style formats disabled
- Editor stripping out data attribute when saving
- TinyMCE custom plugin, how to make a word automatically selected based on current cursor position?
- Post content not showing in the edit post textarea
- How to add custom font to TinyMCE FontSelect in WP Admin or filter the fonts available
- Disable TinyMCE Table formatting width/height
- Use schema.org HTML in TinyMCE Editor
- Theme option not saved if in wp_editor() and html decoded
- wp_editor in thickbox
- Customer Support: TinyMCE stopped working (on some computers)
- TinyMCE buttons that launch Ajax-generated forms
- Adding custom block formats to TinyMCE. Everything works until JavaScript error when applying the format
- Adding CSS to admin TinyMCE editor for custom button
- How to disable TinyMce’s Paste plugin from turning image URLs into embedded ?
- How can a TinyMCE modal return formatted/visual text?
- Blank spaces show as a question mark
- Can i set css class for table via TinyMCE [closed]
- Where’s the explanation of the TinyMCE’s vars in the WP core?
- How to edit blockquote image
- Customizing tinyMCE 4 Styles and Format dropdowns
- WordPress (TinyMCE) not removing script tags
- Why Editor reformats my code
- How can I remove using built in wordpress filters
- TinyMCE Visual editor removes href containing Javascript with ‘allow_script_urls’ set to true
- TinyMCE is inactive after installation
- How to set custom TinyMCE format style as default?
- Did Gutenberg block editor change the html in post content during import?
- How to load WP_Editor JS files manually (with AJAX)?
- Prevent Black Studio TinyMCE from adding tags when switching from Visual to HTML mode
- What is zinging my HTML commands? I don’t think I can blame TinyMCE this time…
- wp-editor-area textarea disapear on cancel-comment-reply-link click
- wp_editor() in content that was loaded with ajax [duplicate]
- Is there an alternative way to upload html without using TinyMCE?
- Add new MCE button for toggle specific cell background color
- Is there a way to get wp_editor (tinymce) content?