Changeset 753 for trunk


Ignore:
Timestamp:
02/17/07 11:48:40 (12 years ago)
Author:
ray
Message:

Ticket #957 If item in in xinha_editors is not a textarea: skip gracefully

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r739 r753  
    53515351  for ( var x = 0; x < editor_names.length; x++ ) 
    53525352  { 
    5353     var editor = new Xinha(editor_names[x], Xinha.cloneObject(default_config)); 
     5353    if ( typeof editor_names[x] != 'object' ) 
     5354    { 
     5355      var textarea = Xinha.getElementById('textarea', editor_names[x] ); 
     5356      if ( !textarea ) continue; 
     5357    } 
     5358    var editor = new Xinha(textarea, Xinha.cloneObject(default_config)); 
    53545359    editor.registerPlugins(plugin_names); 
    53555360    editors[editor_names[x]] = editor; 
Note: See TracChangeset for help on using the changeset viewer.