mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
UPD: TinyMCE valid_elements
This commit is contained in:
parent
3db84a415e
commit
dab4635488
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use SilverStripe\Forms\HTMLEditor\TinyMCEConfig;
|
||||||
use SilverStripe\Core\EnvironmentLoader;
|
use SilverStripe\Core\EnvironmentLoader;
|
||||||
|
|
||||||
$env = BASE_PATH . '/app/.env';
|
$env = BASE_PATH . '/app/.env';
|
||||||
@ -10,3 +11,20 @@ $loader->loadFile($env);
|
|||||||
'bcc_all_emails_to',//'cc_all_emails_to',
|
'bcc_all_emails_to',//'cc_all_emails_to',
|
||||||
'test@example.com'
|
'test@example.com'
|
||||||
);*/
|
);*/
|
||||||
|
|
||||||
|
|
||||||
|
$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]'
|
||||||
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user