5514 Posts in 1733 Topics by 1219 members
|Go to End|
14 April 2014 at 5:23pm
Hi I have an out-of-the-box Silverstripe installation and I want to display subscript and superscript buttons on the tinyMCE control.
Unfortunately I can't get the buttons to display not matter what I try. They are definitely supported in tinyMCE but for some reason these buttons have been remove from the default installation and are not showing up on the Silverstripe tinyMCE instance.
Can any body tell me why these are not there and what I can do to display these controls.
19 June 2014 at 5:07pm
In order to add the buttons to the TinyMCE bar, add this code to your _config.php:
HtmlEditorConfig::get('cms')->addButtonsToLine(2, 'sub', 'sup', 'separator');
This results in the Subscript and Superscript html elements ('sub' and 'script' arguments relatively) being added to the second line of the bar, and then adds a separator. I'm not 100% as to whether this works with SS < 3.1.x, as I've only used it on that.
|Go to Top|