Ignore:
Timestamp:
01/12/07 12:58:32 (13 years ago)
Author:
ray
Message:

Ticket #11 Change HTMLArea objects/namespace to Xinha

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/testbed.html

    r277 r649  
    3636 
    3737  <!-- Load up the actual editor core --> 
    38   <script type="text/javascript" src="../htmlarea.js"></script> 
     38  <script type="text/javascript" src="../XinhaCore.js"></script> 
    3939 
    4040  <script type="text/javascript"> 
     
    5858      ]; 
    5959             // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :) 
    60              if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return; 
     60             if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return; 
    6161 
    6262      /** STEP 2 *************************************************************** 
     
    7777       * If you want to modify the default config you might do something like this. 
    7878       * 
    79        *   xinha_config = new HTMLArea.Config(); 
     79       *   xinha_config = new Xinha.Config(); 
    8080       *   xinha_config.width  = 640; 
    8181       *   xinha_config.height = 420; 
     
    8383       *************************************************************************/ 
    8484 
    85        xinha_config = xinha_config ? xinha_config : new HTMLArea.Config(); 
     85       xinha_config = xinha_config ? xinha_config : new Xinha.Config(); 
    8686/* 
    8787       // We can load an external stylesheet like this - NOTE : YOU MUST GIVE AN ABSOLUTE URL 
     
    101101       * You can do this in two ways, either 
    102102       * 
    103        *   xinha_editors   = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
     103       *   xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
    104104       * 
    105105       * if you want all the editor objects to use the same set of plugins, OR; 
    106106       * 
    107        *   xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config); 
     107       *   xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config); 
    108108       *   xinha_editors['myTextArea'].registerPlugins(['Stylist','FullScreen']); 
    109109       *   xinha_editors['anotherOne'].registerPlugins(['CSS','SuperClean']); 
     
    113113       ************************************************************************/ 
    114114 
    115       xinha_editors   = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
     115      xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
    116116 
    117117      /** STEP 4 *************************************************************** 
     
    131131       ************************************************************************/ 
    132132 
    133       HTMLArea.startEditors(xinha_editors); 
     133      Xinha.startEditors(xinha_editors); 
    134134      window.onload = null; 
    135135    } 
    136136 
    137137    window.onload   = xinha_init; 
    138     // window.onunload = HTMLArea.collectGarbageForIE; 
     138    // window.onunload = Xinha.collectGarbageForIE; 
    139139  </script> 
    140140</head> 
Note: See TracChangeset for help on using the changeset viewer.