IMPR: TinyMCE fixtures

This commit is contained in:
Tony Air 2024-06-11 01:47:29 +02:00
parent dab4635488
commit 0d686d28ea

View File

@ -12,19 +12,22 @@ $loader->loadFile($env);
'test@example.com' 'test@example.com'
);*/ );*/
$cfg = TinyMCEConfig::get('cms'); $cfg = TinyMCEConfig::get('cms');
$cfg->setOption('forced_root_block', 'p'); $cfg->setOption('forced_root_block', 'p');
$cfg->setOption( $cfg->setOption(
'valid_elements', 'valid_elements',
'strong/b,em/i,a[href|target=_blank],p/div,br,' . 'strong[class|style]/b,em[class|style]/i,a[href|target=_blank|style],p[class|style]/div,br,span[class|style],' .
'blockquote,' . 'blockquote[class|style],' .
'img[class|src|alt|title|hspace|vspace|width|height|align|name|usemap|data*],' . 'h2[class|style],h3[class|style],h4[class|style],h5[class|style],h6[class|style],'.
'iframe[src|name|width|height|align|frameborder|marginwidth|marginheight|scrolling],' . 'address[class|style],pre[class|style],hr,'.
'object[width|height|data|type],' . 'a[href|rel|title|target|class|style],'.
'embed[src|type|pluginspage|width|height|autoplay],' . 'table[class|style],ul[class|style],ol[start|type|class|style],li[class|style],'.
'param[name|value],' . 'img[class|style|src|alt|title|hspace|vspace|width|height|align|name|usemap|data*],' .
'map[class|name|id],' . 'iframe[class|style|src|name|width|height|align|frameborder|marginwidth|marginheight|scrolling],' .
'area[shape|coords|href|target|alt],' . 'object[class|style|width|height|data|type],' .
'ol[start|type]' 'embed[class|style|src|type|pluginspage|width|height|autoplay],' .
'param[class|style|name|value],' .
'map[class|style|name|id],' .
'area[class|style|shape|coords|href|target|alt]'
); );