* update kindeditor to support transfer events from iframe to parent document.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user