plugin updates

This commit is contained in:
Tony Volpe
2024-07-16 13:57:46 +00:00
parent 41f50eacc4
commit 8f93917880
1529 changed files with 259452 additions and 25451 deletions

View File

@@ -0,0 +1,12 @@
tinymce.PluginManager.add('wpmf_mce', function (editor) {
editor.on('init', function () {
editor.on('mousedown mouseup click touchend', function (event) {
/* remove element in editor */
jQuery('.mce-ico.mce-i-dashicon.dashicons-no').on('click', function () {
if (event.target.nodeName !== "IMG" && jQuery(event.target).hasClass('wpmf_mce-single-child')) {
editor.dom.remove(jQuery(event.target).closest('.wpmf_mce-wrap'));
}
});
});
});
});