1

当在其中使用 TinyMCE 时,我有这个快速修复方法可以在引导对话框中覆盖内置块。

它曾经在 Chrome 和 Firefox 上工作。但现在它不再适用于 Chrome,

/**
* Prevent bootstrap dialog from blocking focusin
* http://www.tinymce.com/wiki.php/Tutorials:TinyMCE_in_a_boostrap_dialog
*/
$(document).on('focusin', function(e) {
    console.log(".mce-window length: " + $(e.target).closest(".mce-window").length);
    if ($(e.target).closest(".mce-window").length) {
        e.stopImmediatePropagation();
    }
});

有什么想法可以解决吗?

4

0 回答 0