Changes between Version 20 and Version 21 of NewbieGuide


Ignore:
Timestamp:
01/12/07 13:57:15 (11 years ago)
Author:
ray
Comment:

changed reference to HTMLArea.Config and htmlarea.js

Legend:

Unmodified
Added
Removed
Modified
  • NewbieGuide

    v20 v21  
    2626    _editor_lang = "en";      // And the language we need to use in the editor. 
    2727  </script> 
    28   <script type="text/javascript" src="/xinha/htmlarea.js"></script> 
     28  <script type="text/javascript" src="/xinha/XinhaCore.js"></script> 
    2929}}} 
    3030 
    31 If you are using a different directory, make sure you change the location of htmlarea.js in the above code accordingly. 
     31If you are using a different directory, make sure you change the location of XinhaCore.js in the above code accordingly. 
    3232 
    3333You will also need some config code included in the page too - there are two ways of doing this: 
     
    7676      ]; 
    7777             // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :) 
    78              if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return; 
     78             if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return; 
    7979 
    8080      /** STEP 2 *************************************************************** 
     
    9696       * If you want to modify the default config you might do something like this. 
    9797       * 
    98        *   xinha_config = new HTMLArea.Config(); 
     98       *   xinha_config = new Xinha.Config(); 
    9999       *   xinha_config.width  = '640px'; 
    100100       *   xinha_config.height = '420px'; 
     
    102102       *************************************************************************/ 
    103103 
    104        xinha_config = xinha_config ? xinha_config() : new HTMLArea.Config(); 
     104       xinha_config = xinha_config ? xinha_config() : new Xinha.Config(); 
    105105 
    106106      /** STEP 4 *************************************************************** 
     
    109109       * You can do this in two ways, either 
    110110       * 
    111        *   xinha_editors   = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
     111       *   xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
    112112       * 
    113113       * if you want all the editor objects to use the same set of plugins, OR; 
    114114       * 
    115        *   xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config); 
     115       *   xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config); 
    116116       *   xinha_editors['myTextArea'].registerPlugins(['Stylist','FullScreen']); 
    117117       *   xinha_editors['anotherOne'].registerPlugins(['CSS','SuperClean']); 
     
    121121       ************************************************************************/ 
    122122 
    123       xinha_editors   = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
     123      xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
    124124 
    125125      /** STEP 5 *************************************************************** 
     
    139139       ************************************************************************/ 
    140140 
    141       HTMLArea.startEditors(xinha_editors); 
     141      Xinha.startEditors(xinha_editors); 
    142142    } 
    143143