Skip to content

Commit b3443c7

Browse files
Nazar65sivaschenko
authored andcommitted
remove duplicated events on wisiwyg initialization
1 parent a5fffe3 commit b3443c7

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lib/internal/Magento/Framework/Data/Form/Element/Editor.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -533,10 +533,6 @@ protected function getInlineJs($jsSetupObject, $forceLoad)
533533
$jsSetupObject .
534534
'));
535535
varienGlobalEvents.attachEventHandler("formSubmit", editorFormValidationHandler);
536-
varienGlobalEvents.clearEventHandlers("open_browser_callback");
537-
varienGlobalEvents.attachEventHandler("open_browser_callback", ' .
538-
$jsSetupObject .
539-
'.openFileBrowser);
540536
//]]>
541537
});
542538
</script>';

lib/web/mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ define([
373373
/**
374374
* @param {Object} o
375375
*/
376-
openFileBrowser: _.debounce(function (o) {
376+
openFileBrowser: function (o) {
377377
var typeTitle = this.translate('Select Images'),
378378
storeId = this.config['store_id'] ? this.config['store_id'] : 0,
379379
frameDialog = jQuery('div.mce-container[role="dialog"]'),
@@ -406,7 +406,7 @@ define([
406406
}
407407
);
408408
});
409-
}, 250),
409+
},
410410

411411
/**
412412
* @param {String} string

0 commit comments

Comments
 (0)