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
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