Changes between Version 16 and Version 17 of Documentation/OldNewbieGuide


Ignore:
Timestamp:
05/20/05 16:29:01 (14 years ago)
Author:
gogo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/OldNewbieGuide

    v16 v17  
    8585       * We create a default configuration to be used by all the editors. 
    8686       * If you wish to configure some of the editors differently this will be 
    87        * done in step 4. 
     87       * done in step 5. 
    8888       * 
    8989       * If you want to modify the default config you might do something like this. 
    9090       * 
    9191       *   xinha_config = new HTMLArea.Config(); 
    92        *   xinha_config.width  = 640; 
    93        *   xinha_config.height = 420; 
     92       *   xinha_config.width  = '640px'; 
     93       *   xinha_config.height = '420px'; 
    9494       * 
    9595       *************************************************************************/ 
    9696 
    97        xinha_config = xinha_config ? xinha_config : new HTMLArea.Config(); 
     97       xinha_config = xinha_config ? xinha_config() : new HTMLArea.Config(); 
    9898 
    99       /** STEP 3 *************************************************************** 
     99      /** STEP 4 *************************************************************** 
    100100       * We first create editors for the textareas. 
    101101       * 
     
    116116      xinha_editors   = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
    117117 
    118       /** STEP 4 *************************************************************** 
     118      /** STEP 5 *************************************************************** 
    119119       * If you want to change the configuration variables of any of the 
    120120       * editors,  this is the place to do that, for example you might want to 
    121121       * change the width and height of one of the editors, like this... 
    122122       * 
    123        *   xinha_editors.myTextArea.config.width  = 640; 
    124        *   xinha_editors.myTextArea.config.height = 480; 
     123       *   xinha_editors.myTextArea.config.width  = '640px'; 
     124       *   xinha_editors.myTextArea.config.height = '480px'; 
    125125       * 
    126126       ************************************************************************/ 
    127127 
    128128 
    129       /** STEP 5 *************************************************************** 
     129      /** STEP 6 *************************************************************** 
    130130       * Finally we "start" the editors, this turns the textareas into 
    131131       * Xinha editors.