Add Oembed button BT#17381

pull/3294/head
Julio Montoya 5 years ago
parent adbe2bbbf0
commit 6551899c33
  1. 4
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Documents.php
  2. 2
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestQuestionDescription.php

@ -1,12 +1,11 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar; namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
/** /**
* Documents toolbar configuration. * Documents toolbar configuration.
*
* @package Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar
*/ */
class Documents extends Basic class Documents extends Basic
{ {
@ -156,6 +155,7 @@ class Documents extends Basic
'Link', 'Link',
'Image', 'Image',
'Video', 'Video',
'Oembed',
'Flash', 'Flash',
'Youtube', 'Youtube',
'VimeoEmbed', 'VimeoEmbed',

@ -34,7 +34,7 @@ class TestQuestionDescription extends Basic
]; ];
$config['extraPlugins'] = $this->getPluginsToString(); $config['extraPlugins'] = $this->getPluginsToString();
if (api_get_setting('more_buttons_maximized_mode') != 'true') { if (api_get_setting('more_buttons_maximized_mode') !== 'true') {
$config['toolbar'] = $this->getNormalToolbar(); $config['toolbar'] = $this->getNormalToolbar();
} else { } else {
$config['toolbar_minToolbar'] = $this->getMinimizedToolbar(); $config['toolbar_minToolbar'] = $this->getMinimizedToolbar();

Loading…
Cancel
Save