Browse Source

Set flash_flvPlayer as rel path see BT#11419

jmontoyaa 8 years ago
parent
commit
78dc19ba40
1 changed files with 27 additions and 26 deletions
  1. 27 26
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php

+ 27 - 26
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php

@@ -17,7 +17,7 @@ class Basic extends Toolbar
      * @var array
      */
     public $defaultPlugins = array(
-       'adobeair',
+        'adobeair',
         'ajax',
         'audio',
         'bidi',
@@ -35,30 +35,30 @@ class Basic extends Toolbar
         'iframe',
         'iframedialog',
         'indentblock',
-       'justify',
-       'language',
-       'lineutils',
-       'liststyle',
-       'newpage',
-       'oembed',
-       'pagebreak',
-       'preview',
-       'print',
-       'save',
-       'selectall',
-       'sharedspace',
-       'showblocks',
-       'smiley',
-       'sourcedialog',
-       'stylesheetparser',
-       'tableresize',
-       'templates',
-       'uicolor',
-       'video',
-       'widget',
-       'wikilink',
-       'wordcount',
-       'xml'
+        'justify',
+        'language',
+        'lineutils',
+        'liststyle',
+        'newpage',
+        'oembed',
+        'pagebreak',
+        'preview',
+        'print',
+        'save',
+        'selectall',
+        'sharedspace',
+        'showblocks',
+        'smiley',
+        'sourcedialog',
+        'stylesheetparser',
+        'tableresize',
+        'templates',
+        'uicolor',
+        'video',
+        'widget',
+        'wikilink',
+        'wordcount',
+        'xml',
     );
 
     /**
@@ -139,13 +139,14 @@ class Basic extends Toolbar
     public function getConfig()
     {
         $config = array();
-        if (api_get_setting('more_buttons_maximized_mode') == 'true') {
+        if (api_get_setting('more_buttons_maximized_mode') === 'true') {
             $config['toolbar_minToolbar'] = $this->getMinimizedToolbar();
 
             $config['toolbar_maxToolbar'] = $this->getMaximizedToolbar();
         }
 
         $config['customConfig'] = api_get_path(WEB_LIBRARY_PATH).'javascript/ckeditor/config_js.php';
+        $config['flash_flvPlayer'] = api_get_path(REL_PATH).'web/assets/ckeditor/plugins/flash/swf/player.swf';
 
         /*filebrowserFlashBrowseUrl
         filebrowserFlashUploadUrl