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?
- How can I generate a rainbow circle using HTML5 canvas?
- What’s the difference between “{}” and “[]” while declaring a JavaScript array?
- What does “javascript:void(0)” mean?
- For-each over an array in JavaScript
- How to delete a cookie?
- What is TypeScript and why would I use it in place of JavaScript? [closed]
- How do you use the ? : (conditional) operator in JavaScript?
- Which equals operator (== vs ===) should be used in JavaScript comparisons?
- are there dictionaries in javascript like python?
- How to do associative array/hashing in JavaScript
- How to make a discord bot create an invite for every server it joins?
- ES6 Map in Typescript
- addEventListener vs onclick
- “Uncaught SyntaxError: Cannot use import statement outside a module” when importing ECMAScript 6
- How do I check if an array includes a value in JavaScript?
- JavaScript document.getElementById().value logs empty value
- How do I color a hexagonal grid such that it doesn’t have neighbors of the same color?
- How to format a JavaScript date
- What does href expression do?
- map function for objects (instead of arrays)
- Wait 5 seconds before executing next line
- Failed to load resource: the server responded with a status of 404 (Not Found)
- How to check whether a string contains a substring in JavaScript?
- Check if a string has a certain piece of text [duplicate]
- Kadane’s algorithm explained
- What is console.log?
- Dynamically creating charts of each row in an HTML table with chart.js
- Failed to load resource: the server responded with a status of 404 (Not Found)
- How to convert a string to an integer in JavaScript?
- Maximum call stack size exceeded error
- How to change CSS using jQuery?
- How to properly use jsPDF library
- How to reload a page using JavaScript
- How can I do string interpolation in JavaScript?
- Can I use complex HTML with Twitter Bootstrap’s Tooltip?
- Start script missing error when running npm start
- How do I redirect to another webpage?
- How to round to at most 2 decimal places, if necessary?
- What is VanillaJS?
- Invariant Violation: Objects are not valid as a React child
- How do I make the first letter of a string uppercase in JavaScript?
- How to handle Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause()
- window.location.href and window.open () methods in JavaScript
- Invariant Violation: Objects are not valid as a React child
- What’s the difference between using “let” and “var”?
- Angular: conditional class with *ngClass
- How do I make the first letter of a string uppercase in JavaScript?
- Loop through an array in JavaScript
- How to format a JavaScript date
- What does this symbol () => mean in Javascript? [duplicate]
- How do I redirect to another webpage?
- Google reCAPTCHA V3.0 not working. “ERROR for site owner: Invalid key type”
- How to round to at most 2 decimal places, if necessary?
- Google Chrome Uncaught (in promise) DOMException while playing AUDIO