|
1
|
|
|
<?php |
|
2
|
|
|
/* For licensing terms, see /license.txt */ |
|
3
|
|
|
|
|
4
|
|
|
namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar; |
|
5
|
|
|
|
|
6
|
|
|
/** |
|
7
|
|
|
* Toolbar used to allow titles to have an HTML format. |
|
8
|
|
|
* |
|
9
|
|
|
* @package Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar |
|
10
|
|
|
*/ |
|
11
|
|
|
class TitleAsHtml extends Basic |
|
12
|
|
|
{ |
|
13
|
|
|
/** |
|
14
|
|
|
* @return mixed |
|
15
|
|
|
*/ |
|
16
|
|
|
public function getConfig() |
|
17
|
|
|
{ |
|
18
|
|
|
$config['toolbar'] = [ |
|
|
|
|
|
|
19
|
|
|
[ |
|
20
|
|
|
'name' => 'clipboard', |
|
21
|
|
|
'groups' => ['clipboard', 'undo'], |
|
22
|
|
|
'items' => ['Cut', 'Copy', 'Paste', '-', 'Undo', 'Redo'], |
|
23
|
|
|
], |
|
24
|
|
|
[ |
|
25
|
|
|
'name' => 'basicstyles', |
|
26
|
|
|
'groups' => ['basicstyles', 'cleanup'], |
|
27
|
|
|
'items' => ['Bold', 'Italic', 'Underline', 'Strike', 'TextColor', 'BGColor'], |
|
28
|
|
|
], |
|
29
|
|
|
// [ |
|
30
|
|
|
// 'name' => 'paragraph', |
|
31
|
|
|
// 'groups' => ['list', 'indent', 'blocks', 'align', 'bidi'], |
|
32
|
|
|
// 'items' => ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent'], |
|
33
|
|
|
// ], |
|
34
|
|
|
[ |
|
35
|
|
|
'name' => 'links', |
|
36
|
|
|
'items' => ['Link', 'Unlink', 'Source'], |
|
37
|
|
|
], |
|
38
|
|
|
]; |
|
39
|
|
|
|
|
40
|
|
|
$config['height'] = '100'; |
|
41
|
|
|
|
|
42
|
|
|
return $config; |
|
43
|
|
|
} |
|
44
|
|
|
} |
|
45
|
|
|
|