-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path_config.php
More file actions
executable file
·24 lines (22 loc) · 779 Bytes
/
Copy path_config.php
File metadata and controls
executable file
·24 lines (22 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
* @package silverstripe-inlinehelp
*/
Object::add_extension('SiteTree', 'InlineHelpExtension');
/**
* Set up a simplified HTML editor config for use in help text.
*/
HtmlEditorConfig::get('simple')->setOptions(array(
'friendly_name' => 'Simple',
'language' => i18n::get_tinymce_lang(),
'document_base_url' => Director::absoluteBaseURL(),
'mode' => 'specific_textareas',
'valid_elements' => '*[*]'
));
HtmlEditorConfig::get('simple')->setButtonsForLine(1, array(
'bold', 'italic', 'underline', 'strikethrough', 'separator', 'undo',
'redo', 'separator', 'formatselect', 'cleanup', 'separator',
'bullist', 'numlist'
));
HtmlEditorConfig::get('simple')->setButtonsForLine(2);
HtmlEditorConfig::get('simple')->setButtonsForLine(3);