2
window.blur功能燒成我有一個window.blur
功能如下TinyMCE的 - 在編輯焦點
$(window).blur(function(){
_doing_something_wrong.resume();
$('#_put_an_eye_on_users_activity_modal').modal({show : true, keyboard: false,backdrop: 'static'});
});
和TinyMCE
init
如下
tinymce.init({
selector:'._editor_statement_question',
setup: function (_editor) {
_editor.on("focus", function() {
$(this.contentAreaContainer.parentElement).find("div.mce-toolbar-grp").show();
});
}
});
,但每當我試圖鍵入editor
一些內容(_editor.on('focus',function(){}
)的window.blur
功能被解僱,我指的是modal
被顯示出來, 我怎樣才能避免這種情況只爲編輯焦點,
我試圖unbinding
殘影功能,但需要一個簡單而乾淨的解決方案,一些提示請
TinyMCE vesrion - 4.x
感謝