TinyMCE 4 insert link form fields disabled

后端 未结 3 1002
误落风尘
误落风尘 2021-01-27 02:42

I\'m using the tinymce-rails gem which uses TinyMCE 4 and I\'m loading the link plugin and all this is initiated after/in a colorbox popup.

TinyMCE editor i

3条回答
  •  感情败类
    2021-01-27 03:10

    Depending on the version of TinyMCE, the solution would be:

    $(document).on('focusin', function(e) {
        var target = $(e.target);
        if (target.closest(".mce-window").length || target.closest(".tox-dialog").length) {
            e.stopImmediatePropagation();
            target = null;
        }
    });
    

    And of course the answer from Sparkmasterflex

提交回复
热议问题