Ticket #754: equation_use_editor_url.diff

File equation_use_editor_url.diff, 1.1 KB (added by jgillaux@…, 14 years ago)

patch: use _editor_url, works for me

  • plugins/Equation

    old new  
    6666 
    6767        switch (cur_operation) { 
    6868                case "less_equal": 
    69                         editor.insertHTML('<img src="../plugins/Equation/img/dsp_less_equal.gif" style="position:relative; top:4px;">'); 
     69                        editor.insertHTML('<img src="' + _editor_url + '/plugins/Equation/img/dsp_less_equal.gif" style="position:relative; top:4px;">'); 
    7070                break; 
    7171                case "greater_egual": 
    72                         editor.insertHTML('<img src="../plugins/Equation/img/dsp_greater_equal.gif" style="position:relative; top:4px;">'); 
     72                        editor.insertHTML('<img src="' + _editor_url + '/plugins/Equation/img/dsp_greater_equal.gif" style="position:relative; top:4px;">'); 
    7373                break; 
    7474                case "notequal": 
    75                         editor.insertHTML('<img src="../plugins/Equation/img/dsp_notequal.gif" style="position:relative; top:4px;">'); 
     75                        editor.insertHTML('<img src="' + _editor_url + '/plugins/Equation/img/dsp_notequal.gif" style="position:relative; top:4px;">'); 
    7676                break; 
    7777                case "mul": 
    7878                        editor.insertHTML('&nbsp;*&nbsp;');