Bug 29271: Fix cash register report results
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / wysiwyg-systempreferences.inc
1 [% USE raw %]
2 [% USE Asset %]
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 -->
7 <script>
8     // Save TinyMCE content and trigger an event on the original element
9     function wysiwyg_change (ed){
10         ed.save();
11         var original_textarea = ed.getElement();
12         $(original_textarea).trigger("input");
13     }
14
15     tinyMCE.init({
16         verify_html: false,
17         force_br_newlines : false,
18         force_p_newlines : false,
19         forced_root_block : '',
20         extended_valid_elements:"style,link[href|rel]",
21         custom_elements:"style,link,~link",
22         branding : false,
23         relative_urls : false,
24         content_css : "[% interface | html %]/[% theme | html %]/css/tinymce.css",
25         editor_selector : "mce",
26         menubar : "file edit view insert format tools table",
27         mode : "specific_textareas",
28         plugins : "autoresize table hr link image charmap lists code emoticons",
29         toolbar : [
30             "formatselect | bold italic | cut copy paste | alignleft aligncenter alignright | outdent indent | image link unlink anchor cleanup hr",
31             "table | bullist numlist | undo redo | removeformat | emoticons charmap | forecolor backcolor | code"
32         ],
33         init_instance_callback: function (editor) {
34             editor.on('Dirty', function (e) {
35                 // When a change has been made to the contents of an editor,
36                 // enable the corresponding preference Save button
37                 wysiwyg_change( editor );
38             });
39         }
40     });
41 </script>
42 <!-- / wysiwyg-systempreferences.inc -->