diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php index 09af9b2f4d..a18baed7fa 100644 --- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php +++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php @@ -113,6 +113,11 @@ class Basic extends Toolbar } if (api_get_setting('enabled_wiris') == 'true') { + // New version of wiris needs this plugins before it's loaded + $plugins[] = 'mapping'; + $plugins[] = 'widgetselection'; + $plugins[] = 'panelbutton'; + // Commercial plugin $plugins[] = 'ckeditor_wiris'; } @@ -133,7 +138,8 @@ class Basic extends Toolbar $plugins[] = 'scayt'; } - $this->defaultPlugins = array_merge($this->defaultPlugins, $plugins); + $this->defaultPlugins = array_unique(array_merge($this->defaultPlugins, $plugins)); + parent::__construct($toolbar, $config, $prefix); }