View | Details | Raw Unified | Return to bug 21131
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/wysiwyg-systempreferences.inc (-7 / +2 lines)
Lines 31-47 tinyMCE.init({ Link Here
31
            -%]
31
            -%]
32
32
33
            tinyMCE.dom.Event.bind(editor.getBody(), 'input keyup dragend', function(e){
33
            tinyMCE.dom.Event.bind(editor.getBody(), 'input keyup dragend', function(e){
34
                if (ed.isDirty()){
34
                wysiwyg_change(ed);
35
                    wysiwyg_change(ed);
36
                }
37
            });
35
            });
38
        });
36
        });
39
37
40
        // Register change when TinyMCE command returns isDirty()
38
        // Register change when TinyMCE command returns isDirty()
41
        ed.onExecCommand.add(function(ed, cmd, ui, val) {
39
        ed.onExecCommand.add(function(ed, cmd, ui, val) {
42
            if (ed.isDirty()){
40
            wysiwyg_change(ed);
43
                wysiwyg_change(ed);
44
            }
45
        });
41
        });
46
42
47
    },
43
    },
48
- 

Return to bug 21131