Changeset 13068

Show
Ignore:
Timestamp:
03/13/08 07:11:39 (10 months ago)
Author:
peller
Message:

Normalize commands, and only quote fonts. Safari seems to handle formatBlock now. Fixes #6193.

Location:
dijit/trunk/_editor
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/_editor/plugins/FontChoice.js

    r13061 r13068  
    7777                                        dijit.focus(this._focusHandle); 
    7878                                } 
    79                                 this.editor.execCommand(this.command, "'" + choice + "'"); 
     79                                if(this.command == "fontName"){ choice = "'" + choice + "'"; } 
     80                                this.editor.execCommand(this.editor._normalizeCommand(this.command), choice); 
    8081                        }); 
    8182                }, 
  • dijit/trunk/_editor/RichText.js

    r13054 r13068  
    670670                        // Firefox throws an exception if the editor is initially hidden 
    671671                        // so, if this fails, try again onClick by adding "once" advice 
     672//TODO: try mousedown instead 
    672673                        var handle = dojo.connect(this, "onClick", this, function(){ 
    673674                                this.setDisabled(false); 
     
    896897 
    897898                var command = cmd.toLowerCase(); 
    898                 if(command == "formatblock"){ 
    899                         if(dojo.isSafari){ command = "heading"; } 
    900                 }else if(command == "hilitecolor" && !dojo.isMoz){ 
     899                if(command == "hilitecolor" && !dojo.isMoz){ 
    901900                        command = "backcolor"; 
    902901                }