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

    • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
    r612 r761  
    44 
    55  <!-- --------------------------------------------------------------------- 
    6     --  $HeadURL: http://svn.xinha.python-hosting.com/trunk/examples/ext_example-body.html $ 
    7     --  $LastChangedDate: 2005-07-27 16:43:19 +0200 (Mi, 27 Jul 2005) $ 
    8     --  $LastChangedRevision: 287 $ 
    9     --  $LastChangedBy: gocher $ 
     6    --  $HeadURL$ 
     7    --  $LastChangedDate$ 
     8    --  $LastChangedRevision$ 
     9    --  $LastChangedBy$ 
    1010    ------------------------------------------------------------------------ --> 
    1111 
    1212  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    1313  <title>Example of Xinha</title> 
    14   <link rel="stylesheet" href="full_example.css" /> 
     14  <link rel="stylesheet" type="text/css" href="full_example.css" /> 
    1515 
    1616  <script type="text/javascript"> 
     
    2828    // in this example we do a little regular expression to find the absolute path. 
    2929    _editor_url  = document.location.href.replace(/examples\/ext_example-body\.html.*/, '') 
    30     //moved _editor_lang & _editor_skin to init function because of error thrown when frame document not ready   
     30    //moved _editor_lang & _editor_skin to init function because of error thrown when frame document not ready 
    3131  </script> 
    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; 
     
    153153      } 
    154154 
    155       if(typeof InsertPicture != 'undefined') { 
    156         // Path for InsertPicture plugin 
    157         InsertPicture.PicturePath = '/schmal/pictures/'; 
    158       } 
    159  
    160155      if(typeof Filter != 'undefined') { 
    161156        xinha_config.Filters = ["Word", "Paragraph"]; 
     
    164159// First create editors for the textareas. 
    165160// You can do this in two ways, either 
    166 //   xinha_editors   = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
     161//   xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
    167162// if you want all the editor objects to use the same set of plugins, OR; 
    168 //   xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config); 
     163//   xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config); 
    169164//   xinha_editors['myTextarea0'].registerPlugins(['Stylist','FullScreen']); 
    170165//   xinha_editors['myTextarea1'].registerPlugins(['CSS','SuperClean']); 
    171166// 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); 
     167      xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
    173168 
    174169// If you want to change the configuration variables of any of the editors, 
     
    179174 
    180175// Finally we "start" the editors, this turns the textareas into Xinha editors. 
    181       HTMLArea.startEditors(xinha_editors); 
     176      Xinha.startEditors(xinha_editors); 
    182177    } 
    183178 
     
    194189 
    195190    window.onload = xinha_init; 
    196 //    window.onunload = HTMLArea.collectGarbageForIE; 
     191//    window.onunload = Xinha.collectGarbageForIE; 
    197192  </script> 
    198193</head> 
Note: See TracChangeset for help on using the changeset viewer.