-
Notifications
You must be signed in to change notification settings - Fork 3
/
_config.php
38 lines (31 loc) · 1.04 KB
/
_config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
use SilverStripe\Forms\HTMLEditor\TinyMCEConfig;
use SilverStripe\Forms\HTMLEditor\HTMLEditorConfig;
TinyMCEConfig::get('cms')->setOption('height', 420);
TinyMCEConfig::get('cms')->setOption('min_height', 420);
TinyMCEConfig::get('cms')->setOption('max_height', 960);
TinyMCEConfig::get('cms')->removeButtons('underline', 'alignjustify');
TinyMCEConfig::get('cms')->enablePlugins(
'fullscreen',
'visualblocks',
'hr',
'anchor',
'wordcount',
'lists',
'advlist'
);
TinyMCEConfig::get('cms')->insertButtonsAfter(
'removeformat',
'|',
'superscript',
'subscript',
'blockquote',
'hr'
);
TinyMCEConfig::get('cms')->addButtonsToLine(1, '|', 'visualblocks');
TinyMCEConfig::get('cms')->addButtonsToLine(2, '|', 'fullscreen');
TinyMCEConfig::get('cms')->insertButtonsAfter('formatselect', 'styleselect');
TinyMCEConfig::get('cms')->setOptions([
'extended_valid_elements' => 'ol[start]',
]);
HTMLEditorConfig::get('cms')->setOption('theme_advanced_styles', 'highlight=highlight;no-border=no-border,break=break');