Make the code compatible with es5

This commit is contained in:
Hadi Nategh 2019-04-02 14:29:22 +02:00
parent 8d7ec84a80
commit 0312d67b67

View File

@ -336,7 +336,7 @@ var et2_htmlarea = (function(){ "use strict"; return et2_editableWidget.extend([
var toolbar_diff = et2_htmlarea.TOOLBAR_LIST.filter(function(i){return !(rte_toolbar.indexOf(i) > -1);});
settings.toolbar = et2_htmlarea.TOOLBAR_ADVANCED;
toolbar_diff.forEach(function(a){
let r = new RegExp(a);
var r = new RegExp(a);
settings.toolbar = settings.toolbar.replace(r, '');
});
}