silverstripe-webpack/app/_config.php

23 lines
568 B
PHP
Raw Normal View History

2018-03-24 11:45:31 +01:00
<?php
2018-05-13 17:32:50 +02:00
use SilverStripe\Forms\HTMLEditor\HtmlEditorConfig;
use SilverStripe\Core\Manifest\ModuleResourceLoader;
2018-05-28 14:42:05 +02:00
use SilverStripe\ORM\Search\FulltextSearchable;
2018-05-13 17:32:50 +02:00
HtmlEditorConfig::get('cms')->enablePlugins([
'template',
'fullscreen',
'hr',
'contextmenu',
'charmap',
'visualblocks',
'lists',
2018-09-15 00:55:42 +02:00
'anchor',
'charcount' => ModuleResourceLoader::resourceURL(
'drmartingonzo/ss-tinymce-charcount:client/dist/js/bundle.js'
),
2018-05-13 17:32:50 +02:00
]);
2018-05-28 14:42:05 +02:00
2018-09-15 00:55:42 +02:00
HtmlEditorConfig::get('cms')->insertButtonsAfter('sslink', 'anchor');
2018-05-28 14:42:05 +02:00
FulltextSearchable::enable();