Hi All,
Has anyone had a look into customising TinyMCE4 for FormsPublisher via custom_config.js?
I'm trying to customise the available block formats and styles, which with TinyMCE3 would be done by:
IWTinyMCECustomConfig("custom", "theme_advanced_blockformats","p,h2,h3,h4");
IWTinyMCECustomConfig("custom", "theme_advanced_styles","Document meta=meta;Pull quote=pull-quote;Telephone=tel");
However, the TinyMCE4 bundled with TeamSite 7.5.0 only includes the modern theme, so those don't work anymore.
theme_advanced_blockformats is easily changed to:
IWTinyMCECustomConfig("custom", "block_formats","Paragraph=p;Heading 2=h2;Heading 3=h3;Heading 4=h4");
However style_formats is a little more difficult, I've not yet gotten it working.
Referring to the TinyMCE4 documentation (http://www.tinymce.com/wiki.php/Configuration:style_formats) you should pass an array of objects to the "style_formats" property, however, this doesn't appear to work using the IWTinyMCECustomConfig wrapper.
I'll keep looking into it myself, and will update here when I solveit, but if anyone already knows how to do it please let me know.