Configure the new TinyMCE to have almost the same buttons as the old one.
Configure the new TinyMCE to have almost the same buttons as the old one.

File last commit:

3cf3f8fd35f8
3cf3f8fd35f8
Show More
mce_config.js
17 lines | 570 B | application/javascript | JavascriptLexer
/ include / mce_config.js
Start setting up the new editor in relevant pages.
r38 var mce_config = {
Configure the new TinyMCE to have almost the same buttons as the old one.
r39 menubar: false,
plugins: 'charmap code image link lists paste preview',
style_formats: [
{title: 'Headings', items: [
{title: 'Heading 3', format: 'h3'},
{title: 'Heading 4', format: 'h4'},
{title: 'Heading 5', format: 'h5'},
{title: 'Heading 6', format: 'h6'},
]},
{title: 'Inline', items: [
{title: 'Code', icon: 'code', format: 'code'},
{title: 'Spoiler', inline: 'span', classes: 'spoiler'}
]}
],
toolbar: 'undo redo | bold italic underline strikethrough | styleselect | bullist numlist | link unlink image code'
Start setting up the new editor in relevant pages.
r38 };