You asked the question a long ago but I was looking for something similar and found a solution.
Enqueue an admin side script on post edit screens(where we have tinyMCE). Then use the code below:
(function($) {
'use strict';
$(document).ready(function() {
$(document).on( 'click', '#mce-modal-block', function() {
tinyMCE.activeEditor.windowManager.close();
});
});
})(jQuery);
This way you can close any popup comes from tinyMCE by clicking outside of it.
Related Posts:
- Add Item to Custom TinyMCE Menu
- Using wp_editor in TinyMCE WindowManager dialog
- Popup box when Clicking on Insert into post button in wordpress
- wordpress 4.4 upgrade visual editor bullets select for not selected elements
- How to use WP switchEditors.switchto(this) JS function in your own script?
- Adding Custom Text Patterns in the WP 4.5 Visual Editor
- WordPress Visual Editor Stripping HTML Changes
- Any alternate TinyMCE4 themes / subthemes?
- Reset Undo on the tinymce editor
- Instantiate TinyMCE via JS ( rather than PHP/wp_editor )
- TinyMCE Anchor Button not showing
- TinyMCE Button to Insert Multiple Lines of Text?
- Add Shortcode inline inside Gutenberg block
- TinyMCE in a div / textarea on frontend?
- How to wrap the content of the main tinyMCE editor with extra tags
- Making a custom widget that includes a tinymce and works in Site Origin Page Builder
- Instantiate TinyMCE via JS ( rather than PHP/wp_editor )
- Customising the WordPress TinyMce editor and it’s buttons
- Insert shortcode in post editor from javascript (Visual / HTML)
- Add tinymce dynamically via Javascript
- Listbox return wrong value in WordPress 3.9
- TinyMce in WordPress – Getting the “fullscreen” button to stay on the right when customising button layout
- Strange gibberish JavaScript in Editor – site hacked?
- Trouble adding JavaScript in visual editor (Sharpspring embed code)
- Make TinyMCE checkbox that returns a value instead of true/false
- TypeError: window.tinyMCE.execInstanceCommand is not a function
- Where is the WP auto-save draft JavaScript?
- TinyMCE Visual Blocks plugin set Show blocks option for all users
- Custom wp.editor.initialize settings ignored
- JavaScript && operator in visual editor
- How to set callback to execute after all the tinyMCE editors have been initialized?
- Adding and removing hidden buttons from WordPress Customizer Tinymce widget editor using javascript API
- WP TinyMCE (Full + media ) – 4.8 JS Init Dynamicly
- Tinymce.js editor in Chrome?
- How to reference TinyMCE body in my script
- More than one TinyMCE (wp_editor) with different $settings[‘drag_drop_upload’] values breaks
- Customer Support: TinyMCE stopped working (on some computers)
- disable tags on wordpress text editor
- How to stop javascript code being broken when going into visual editor
- TinyMCE Javascript URL Question
- VisualComposer/WPBakery Page Editor: Is any JS event triggered after the Edition pop-in is shown?
- Dynamically write in editor with Javascript
- How to use value from modal tinymce windowManager?
- How to modify VisualComposer’s TinyMCE editor only for a specific shortcode
- WordPress 4.2 mce-views migration guide?
- How to integrate a different (JavaScript) editor in WordPress?
- What does “javascript:void(0)” mean?
- For-each over an array in JavaScript
- require is not defined? Node.js
- Encode URL in JavaScript?
- JavaScript null check
- Module not found can’t resolve
- How can I get file extensions with JavaScript?
- How to detect Safari, Chrome, IE, Firefox and Opera browser?
- What does on() in JavaScript do?
- How to hide a div with jQuery?v
- How do I pass variables and data from PHP to JavaScript?
- How do I set/unset a cookie with jQuery?
- Calling onclick on a radiobutton list using javascript
- How to properly export an ES6 class in Node 4?
- how to download file in react js
- TypeError: $(…).DataTable is not a function
- Trying to use fetch and pass in mode: no-cors
- Moment.js transform to date object
- jQuery explode string like PHP
- Call Javascript function from URL/address bar
- How to subtract days from a plain Date?
- Stopping a JavaScript function when a certain condition is met
- What’s the best way to reload / refresh an iframe?
- How do I check if a cookie exists?
- Get querystring from URL using jQuery [duplicate]
- Check if string contains only digits
- JS: iterating over result of getElementsByClassName using Array.forEach
- jQuery checkbox change and click event
- Error: listen EACCES 0.0.0.0:80 OSx Node.js
- jQuery selectors on custom data attributes using HTML5
- How to check if a value is not null and not empty string in JS
- How do I refresh a DIV content?
- TypeError: abc.getAttribute is not a function
- window.location() not working, not opening page
- How to clear the canvas for redrawing
- What’s a Good Javascript Time Picker?
- JavaScript event window.onload not triggered
- Add custom TinyMCE 4 Button, Usable since WordPress 3.9-beta1
- Pass custom fields values to Google Maps
- How can the tinyMCE dom be manipulated (offical API does not seem to work)?
- tinyMCE duplicates previous block element when pressing return (visual editor)
- What is “open()” in MediaUpload?
- Enable Visual Editor In Comments On CPT Edit Page
- update_option in javascript
- Dynamically insert values in a WordPress SelectControl Options field
- Vimeo froogaloop
- TinyMCE custom dialog with selectbox not working
- How to open the add media dialogue it in a certain state / tab?
- Drag-to-Scroll Landingpage
- Easiest way to find JS conflicts
- clasic editor – article categories customization?
- XMLHttpRequest of admin data to public
- PHP or JS for header image rotator?
- Astra Mobile Cart Drawer is blank on home page