Source of file _config.php
Size: 0,674 Bytes - Last Modified: 2021-12-24T06:19:16+00:00
/var/www/docs.ssmods.com/process/src/app/_config.php
12345678910111213141516171819202122232425262728293031 | <?php use SilverStripe\Forms\HTMLEditor\TinyMCEConfig; $formats = [ [ 'title' => 'Lead text (bigger)', 'selector' => 'p', 'classes' => 'lead', ], [ 'title' => '“Quote”', 'selector' => 'p', 'classes' => 'quote', ], [ 'title' => 'Button', 'selector' => 'a', 'classes' => 'btn btn-primary', ], ]; TinyMCEConfig::get('cms') ->setOptions([ 'body_class' => '', 'importcss_append' => true, 'style_formats' => $formats, 'importcss_selector_filter' => ' ', // hide all selectors ]) ->insertButtonsAfter('formatselect', 'styleselect'); |