forked from axllent/silverstripe-cms-tweaks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.php
19 lines (15 loc) · 723 Bytes
/
_config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
if (!DEFINED('CMS_TWEAKS_BASE'))
DEFINE('CMS_TWEAKS_BASE', basename(dirname(__FILE__)));
/* Custom CMS tweaks */
Object::add_extension('LeftAndMain', 'LeftAndMainCMSTweaksExt');
Object::add_extension('SiteTree', 'CustomMetaTagsEXT');
/* Add "Remove formatting" button to TinyMCE to clean code */
HtmlEditorConfig::get('cms')->insertButtonsAfter('pasteword', 'removeformat');
HtmlEditorConfig::get('cms')->setOptions(array(
/* Strip out <div> tags */
'invalid_elements' => 'div',
/* The "span[!class]" is to address the issue where lists get inline css style.
See and http://martinsikora.com/how-to-make-tinymce-to-output-clean-html */
'extended_valid_elements' => 'span[!class|!style],p[class|style]'
));