Changeset 144


Ignore:
Timestamp:
05/10/05 11:06:09 (15 years ago)
Author:
gocher
Message:

two new functions for IE
insert/overwrite
saveas

Location:
trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r140 r144  
    237237    ["insertorderedlist","insertunorderedlist","outdent","indent","separator"], 
    238238    ["inserthorizontalrule","createlink","insertimage","inserttable","separator"], 
    239     ["undo","redo"], (HTMLArea.is_gecko ? [] : ["cut","copy","paste"]),["selectall"],["separator"], 
     239    ["undo","redo"], (HTMLArea.is_gecko ? [] : ["cut","copy","paste","overwrite","saveas"]),["selectall"],["separator"], 
    240240    ["killword","removeformat","toggleborders","lefttoright", "righttoleft", "separator","htmlmode","about"] 
    241241  ]; 
     
    364364    toggleborders: [ "Toggle Borders", ["ed_buttons_main.gif",7,2], false, function(e) { e._toggleBorders() } ], 
    365365    print:         [ "Print document", ["ed_buttons_main.gif",8,1], false, function(e) {e._iframe.contentWindow.print();} ], 
     366    saveas: [ "Save as", "ed_saveas.gif", false, function(e) {e.execCommand("saveas",false,"noname.htm");} ], 
    366367    popupeditor: [ "Enlarge Editor", ["ed_buttons_main.gif",8,0], true, 
    367368      function(e, objname, obj) 
     
    384385    lefttoright: [ "Direction left to right", ["ed_buttons_main.gif",0,4], false, function(e) {e.execCommand("lefttoright");} ], 
    385386    righttoleft: [ "Direction right to left", ["ed_buttons_main.gif",1,4], false, function(e) {e.execCommand("righttoleft");} ], 
     387    overwrite: [ "Insert/Overwrite", "ed_overwrite.gif", false, function(e) {e.execCommand("overwrite");} ], 
    386388 
    387389    wordclean:     [ "MS Word Cleaner", ["ed_buttons_main.gif",5,3], false, function(e) {e._wordClean();} ], 
Note: See TracChangeset for help on using the changeset viewer.