Changeset 612 for trunk


Ignore:
Timestamp:
11/25/06 13:55:14 (13 years ago)
Author:
ray
Message:

ext_example-body.html: moved _editor_lang & _editor_skin to init function because of error thrown when menu-frame document not ready

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/ext_example-body.html

    r514 r612  
    2121      return false; 
    2222    } 
    23     var f = top.frames["menu"].document.forms["fsettings"]; 
    2423    // You must set _editor_url to the URL (including trailing slash) where 
    2524    // where xinha is installed, it's highly recommended to use an absolute URL 
     
    2928    // in this example we do a little regular expression to find the absolute path. 
    3029    _editor_url  = document.location.href.replace(/examples\/ext_example-body\.html.*/, '') 
    31     _editor_lang = f.lang[f.lang.selectedIndex].value; // the language we need to use in the editor. 
    32     _editor_skin = f.skin[f.skin.selectedIndex].value; // the skin we use in the editor 
     30    //moved _editor_lang & _editor_skin to init function because of error thrown when frame document not ready   
    3331  </script> 
    3432 
     
    4745 
    4846      var f = top.frames["menu"].document.forms["fsettings"]; 
     47      _editor_lang = f.lang[f.lang.selectedIndex].value; // the language we need to use in the editor. 
     48      _editor_skin = f.skin[f.skin.selectedIndex].value; // the skin we use in the editor 
    4949// What are the plugins you will be using in the editors on this page. 
    5050// List all the plugins you will need, even if not all the editors will use all the plugins. 
Note: See TracChangeset for help on using the changeset viewer.