Silverstripe Version:
Question:
The HTML Editor has indent options but these don’t actually do anything, seem like these should work out of the box.
If I add the code below I can get them to work but only if I edit first edit the HTML and add the inline style (padding:10px;) to the element I want to indent. What do I need to do to make this work automatically?
$cmsEditor = TinyMCEConfig::get('cms');
$cmsEditor->setOption(
'extended_valid_elements',
'p[class|style]'
)->setOption(
'valid_styles',
'color, padding'
);