Changeset 400


Ignore:
Timestamp:
10/24/05 12:53:51 (14 years ago)
Author:
gocher
Message:

now the print button works with Mozilla and IE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r398 r400  
    436436    htmlmode: [ "Toggle HTML Source", ["ed_buttons_main.gif",7,0], true, function(e) {e.execCommand("htmlmode");} ], 
    437437    toggleborders: [ "Toggle Borders", ["ed_buttons_main.gif",7,2], false, function(e) { e._toggleBorders() } ], 
    438     print:         [ "Print document", ["ed_buttons_main.gif",8,1], false, function(e) {e._iframe.contentWindow.print();} ], 
     438    print: [ "Print document", ["ed_buttons_main.gif",8,1], false, function(e) {if (HTMLArea.is_gecko) {e._iframe.contentWindow.print();} else {e.focusEditor(); print();}} ], 
    439439    saveas: [ "Save as", "ed_saveas.gif", false, function(e) {e.execCommand("saveas",false,"noname.htm");} ], 
    440440    about: [ "About this editor", ["ed_buttons_main.gif",8,2], true, function(e) {e.execCommand("about");} ], 
Note: See TracChangeset for help on using the changeset viewer.