Changeset 13687

Show
Ignore:
Timestamp:
05/11/08 08:43:31 (5 days ago)
Author:
liucougar
Message:

fixes #6729

Files:
1 modified

Legend:

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

    r13315 r13687  
    130130                        if(!_e || !_e.isLoaded || !_c.length){ return; } 
    131131                        if(this.button){ 
    132                                 var value = _e.queryCommandValue(this.editor._normalizeCommand(_c)) || ""; 
     132                                var value; 
     133                                try{ 
     134                                        value = _e.queryCommandValue(_c) || ""; 
     135                                }catch(e){ 
     136                                        //Firefox may throw error above if the editor is just loaded, ignore it 
     137                                        value = ""; 
     138                                } 
    133139                                // strip off single quotes, if any 
    134140                                var quoted = dojo.isString(value) && value.match(/'([^']*)'/);