* Api: Fix mobile template not working with iOS < 10 anymore (iOS < 10 is not compatible with JS ES6)

This commit is contained in:
Hadi Nategh
2019-03-18 15:27:12 +01:00
parent fd662a266b
commit 2126fca1b4
5 changed files with 15 additions and 15 deletions

View File

@@ -186,7 +186,7 @@ var et2_htmlarea = (function(){ "use strict"; return et2_editableWidget.extend([
this.tinymce = tinymce.init(settings);
// make sure value gets set in case of widget gets loaded by delay like
// inside an inactive tabs
this.tinymce.then(()=> {
this.tinymce.then(function() {
self.set_value(self.htmlNode.val());
if (self.editor && self.editor.editorContainer)
{
@@ -332,9 +332,9 @@ var et2_htmlarea = (function(){ "use strict"; return et2_editableWidget.extend([
// take rte_toolbar into account if no mode restrictly set from template
if (rte_toolbar && !this.mode)
{
var toolbar_diff = et2_htmlarea.TOOLBAR_LIST.filter((i) => {return !(rte_toolbar.indexOf(i) > -1);});
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((a) => {
toolbar_diff.forEach(function(a){
let r = new RegExp(a);
settings.toolbar = settings.toolbar.replace(r, '');
});