Changeset 1077


Ignore:
Timestamp:
10/10/08 18:39:45 (11 years ago)
Author:
douglas
Message:

FIXED Ticket #1219 Add an option for autofocus to config that isn't hackish

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r1076 r1077  
    23842384      } 
    23852385    ); 
    2386  
    23872386}; 
    23882387 
     
    30213020  } 
    30223021  this.setEditorEvents(); 
     3022 
     3023 
     3024  // If this IFRAME had been configured for autofocus, we'll focus it now, 
     3025  // since everything needed to do so is now fully loaded. 
     3026  if ((typeof editor.config.autofocus != "undefined") && 
     3027      ((editor.config.autofocus == editor._textArea.id) || editor.config.autofocus)) 
     3028  { 
     3029    editor.activateEditor(); 
     3030    editor.focusEditor(); 
     3031  } 
    30233032}; 
    30243033   
Note: See TracChangeset for help on using the changeset viewer.