[opencms-dev] Add Formats button to tinyMCE editor
Paoletti Corrado
c.paoletti at fineco.it
Thu Sep 24 12:02:38 CEST 2015
Hi,
I use OpenCms 9.5.0. What I would like to do is to add the Formats button to tinyMCE editor (4.1.3 version).
Into tinyMCE site I have found:
http://www.tinymce.com/wiki.php/Configuration:style_formats
so I edited the
/system/workplace/editors/editor.jsp
Adding
style_formats: [
{title: 'Bold text', inline: 'b'},
{title: 'Red text', inline: 'span', styles: {color: '#ff0000'}},
{title: 'Red header', block: 'h1', styles: {color: '#ff0000'}},
{title: 'Example 1', inline: 'span', classes: 'example1'},
{title: 'Example 2', inline: 'span', classes: 'example2'},
{title: 'Table styles'},
{title: 'Table row 1', selector: 'tr', classes: 'tablerow1'}
],
to tinyMCE.init() call.
Formats button doesn't appear. Could someone help me?
Cheers,
--
Corrado
More information about the opencms-dev
mailing list