* update kindeditor to support transfer events from iframe to parent document.

This commit is contained in:
Catouse
2020-12-11 16:04:34 +08:00
parent 1eeb88a723
commit 894da720a3
2 changed files with 9 additions and 2 deletions
+7
View File
@@ -10124,6 +10124,13 @@ KindEditor.plugin('zui', function(K) {
if (spellcheck !== undefined) {
self.edit.doc.documentElement.setAttribute('spellcheck', spellcheck);
}
var transferEvents = options.transferEvents;
if (transferEvents !== false) {
$(self.edit.doc).on(typeof transferEvents === 'string' ? transferEvents : 'click mousedown', function(event) {
$(self.edit.srcElement[0]).trigger(event.type);
});
}
});
if (options.transferTab !== false) {
File diff suppressed because one or more lines are too long