silverstripe-webpack/app/_config.php

31 lines
952 B
PHP
Raw Normal View History

2018-03-24 11:45:31 +01:00
<?php
2021-09-05 21:46:32 +02:00
2024-05-30 18:16:13 +02:00
use SilverStripe\Forms\HTMLEditor\TinyMCEConfig;
2024-04-22 15:02:31 +02:00
use SilverStripe\Core\EnvironmentLoader;
$env = BASE_PATH . '/app/.env';
$loader = new EnvironmentLoader();
$loader->loadFile($env);
2021-09-05 21:46:32 +02:00
/*\SilverStripe\Core\Config\Config::modify()->set(
\SilverStripe\Control\Email\Email::class,
'bcc_all_emails_to',//'cc_all_emails_to',
'test@example.com'
);*/
2024-05-30 18:16:13 +02:00
$cfg = TinyMCEConfig::get('cms');
$cfg->setOption('forced_root_block', 'p');
$cfg->setOption(
'valid_elements',
'strong/b,em/i,a[href|target=_blank],p/div,br,' .
'blockquote,' .
'img[class|src|alt|title|hspace|vspace|width|height|align|name|usemap|data*],' .
'iframe[src|name|width|height|align|frameborder|marginwidth|marginheight|scrolling],' .
'object[width|height|data|type],' .
'embed[src|type|pluginspage|width|height|autoplay],' .
'param[name|value],' .
'map[class|name|id],' .
'area[shape|coords|href|target|alt],' .
'ol[start|type]'
);