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/ext_example-body.html

    r612 r649  
    3232 
    3333  <!-- Load up the actual editor core --> 
    34   <script type="text/javascript" src="../htmlarea.js"></script> 
     34  <script type="text/javascript" src="../XinhaCore.js"></script> 
    3535 
    3636  <script type="text/javascript"> 
     
    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// What are the names of the textareas you will be turning into editors? 
     
    8888// Create a default configuration to be used by all the editors. 
    8989      settings = top.frames["menu"].settings; 
    90       xinha_config = new HTMLArea.Config(); 
     90      xinha_config = new Xinha.Config(); 
    9191      xinha_config.width = settings.width; 
    9292      xinha_config.height = settings.height; 
     
    164164// First create editors for the textareas. 
    165165// You can do this in two ways, either 
    166 //   xinha_editors   = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
     166//   xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
    167167// if you want all the editor objects to use the same set of plugins, OR; 
    168 //   xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config); 
     168//   xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config); 
    169169//   xinha_editors['myTextarea0'].registerPlugins(['Stylist','FullScreen']); 
    170170//   xinha_editors['myTextarea1'].registerPlugins(['CSS','SuperClean']); 
    171171// if you want to use a different set of plugins for one or more of the editors. 
    172       xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
     172      xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
    173173 
    174174// If you want to change the configuration variables of any of the editors, 
     
    179179 
    180180// Finally we "start" the editors, this turns the textareas into Xinha editors. 
    181       HTMLArea.startEditors(xinha_editors); 
     181      Xinha.startEditors(xinha_editors); 
    182182    } 
    183183 
     
    194194 
    195195    window.onload = xinha_init; 
    196 //    window.onunload = HTMLArea.collectGarbageForIE; 
     196//    window.onunload = Xinha.collectGarbageForIE; 
    197197  </script> 
    198198</head> 
Note: See TracChangeset for help on using the changeset viewer.