3 [% #Enable tinymce for system preferences %]
4 [% Asset.js("lib/tiny_mce/tinymce.min.js") | $raw %]
5 [% INCLUDE 'str/tinymce_i18n.inc' %]
8 // Save TinyMCE content and trigger an event on the original element
9 function wysiwyg_change (ed){
11 var original_textarea = ed.getElement();
12 $(original_textarea).trigger("input");
17 content_css : "[% interface | html %]/[% theme | html %]/css/tinymce.css",
18 editor_selector : "mce",
19 menubar : "file edit view insert format tools table",
20 mode : "specific_textareas",
21 plugins : "autoresize table hr link image charmap lists code emoticons",
23 "formatselect | bold italic | cut copy paste | alignleft aligncenter alignright | outdent indent | image link unlink anchor cleanup hr",
24 "table | bullist numlist | undo redo | removeformat | emoticons charmap | forecolor backcolor | code visualaid help"
26 init_instance_callback: function (editor) {
27 editor.on('Dirty', function (e) {
28 // When a change has been made to the contents of an editor,
29 // enable the corresponding preference Save button
30 wysiwyg_change( editor );