Ignore:
Timestamp:
02/24/07 02:18:05 (13 years ago)
Author:
ray
Message:

updated branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ray/examples/simple_example.html

    • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
    r534 r761  
    1212 *  eg: _editor_url = "/path/to/xinha/"; 
    1313 * You may try a relative URL if you wish] 
    14  *  eg: _editor_url = "../"; 
     14 *  eg: _editor_url = "../";   
    1515 * in this example we do a little regular expression to find the absolute path. 
    1616 ************************************************************************/ 
     
    2020</script> 
    2121<!-- Load up the actual editor core --> 
    22 <script type="text/javascript" src="../htmlarea.js"></script> 
     22<script type="text/javascript" src="../XinhaCore.js"></script> 
    2323<script type="text/javascript"> 
    2424/************************************************************************ 
     
    5555{ 
    5656  // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :) 
    57   if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return; 
     57  if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return; 
    5858  /************************************************************************* 
    5959   * We create a default configuration to be used by all the editors. 
     
    6464   * for the configuration parameters 
    6565   ************************************************************************/ 
    66   var xinha_config = new HTMLArea.Config(); 
     66  var xinha_config = new Xinha.Config(); 
    6767  /************************************************************************ 
    6868   * We first create editors for the textareas. 
    6969   * You can do this in two ways, either 
    7070   * 
    71    *   xinha_editors   = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
     71   *   xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
    7272   * 
    7373   * if you want all the editor objects to use the same set of plugins, OR; 
    7474   * 
    75    *   xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config); 
     75   *   xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config); 
    7676   *   xinha_editors['myTextArea'].registerPlugins(['Stylist','FullScreen']); 
    7777   *   xinha_editors['anotherOne'].registerPlugins(['CSS','SuperClean']); 
     
    8080   * editors. 
    8181   ************************************************************************/ 
    82   xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
     82  xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
    8383  /************************************************************************ 
    8484   * If you want to change the configuration variables of any of the 
     
    9898   * Xinha editors. 
    9999   ************************************************************************/ 
    100   HTMLArea.startEditors(xinha_editors); 
     100  Xinha.startEditors(xinha_editors); 
    101101} 
    102102window.onload = xinha_init; 
Note: See TracChangeset for help on using the changeset viewer.