3 [% #Enable tinymce for system preferences %]
4 [% Asset.js("lib/tiny_mce/tinymce.min.js") | $raw %]
5 [% INCLUDE 'str/tinymce_i18n.inc' %]
6 <!-- wysiwyg-systempreferences.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 relative_urls : false,
18 content_css : "[% interface | html %]/[% theme | html %]/css/tinymce.css",
19 editor_selector : "mce",
20 menubar : "file edit view insert format tools table",
21 mode : "specific_textareas",
22 plugins : "autoresize table hr link image charmap lists code emoticons",
24 "formatselect | bold italic | cut copy paste | alignleft aligncenter alignright | outdent indent | image link unlink anchor cleanup hr",
25 "table | bullist numlist | undo redo | removeformat | emoticons charmap | forecolor backcolor | code visualaid help"
27 init_instance_callback: function (editor) {
28 editor.on('Dirty', function (e) {
29 // When a change has been made to the contents of an editor,
30 // enable the corresponding preference Save button
31 wysiwyg_change( editor );
36 <!-- / wysiwyg-systempreferences.inc -->