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/testbed.html

    • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
    r277 r761  
    1414    --  use of the file as a boilerplate. 
    1515    -- 
    16     --  $HeadURL: svn://gogo@xinha.gogo.co.nz/repository/trunk/examples/full_example-body.html $ 
    17     --  $LastChangedDate: 2005-03-05 21:42:32 +1300 (Sat, 05 Mar 2005) $ 
    18     --  $LastChangedRevision: 35 $ 
    19     --  $LastChangedBy: gogo $ 
     16    --  $HeadURL$ 
     17    --  $LastChangedDate$ 
     18    --  $LastChangedRevision$ 
     19    --  $LastChangedBy$ 
    2020    ---------------------------------------------------------------------------> 
    2121 
     
    5555      xinha_plugins = xinha_plugins ? xinha_plugins : 
    5656      [ 
    57          
     57        'CharacterMap', 'SpellChecker', 'Linker' 
    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(); 
     86       xinha_config.fullPage = true; 
     87       xinha_config.CharacterMap.mode = 'panel'; 
    8688/* 
    8789       // We can load an external stylesheet like this - NOTE : YOU MUST GIVE AN ABSOLUTE URL 
     
    101103       * You can do this in two ways, either 
    102104       * 
    103        *   xinha_editors   = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
     105       *   xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
    104106       * 
    105107       * if you want all the editor objects to use the same set of plugins, OR; 
    106108       * 
    107        *   xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config); 
     109       *   xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config); 
    108110       *   xinha_editors['myTextArea'].registerPlugins(['Stylist','FullScreen']); 
    109111       *   xinha_editors['anotherOne'].registerPlugins(['CSS','SuperClean']); 
     
    113115       ************************************************************************/ 
    114116 
    115       xinha_editors   = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
     117      xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
    116118 
    117119      /** STEP 4 *************************************************************** 
     
    131133       ************************************************************************/ 
    132134 
    133       HTMLArea.startEditors(xinha_editors); 
     135      Xinha.startEditors(xinha_editors); 
    134136      window.onload = null; 
    135137    } 
    136138 
    137139    window.onload   = xinha_init; 
    138     // window.onunload = HTMLArea.collectGarbageForIE; 
     140    // window.onunload = Xinha.collectGarbageForIE; 
    139141  </script> 
    140142</head> 
     
    144146  <form action="javascript:var x = document.getElementById('editors_here');alert(x.myTextArea.value);" id="editors_here" onsubmit="alert(this.myTextArea.value);"> 
    145147    <textarea id="myTextArea" name="myTextArea" style="width:100%;height:320px;"> 
     148      &lt;html&gt; 
     149      &lt;head&gt; 
     150        &lt;title&gt;Hello&lt;/title&gt; 
     151        &lt;style type="text/css"&gt; 
     152          li { color:red; } 
     153        &lt;/style&gt; 
     154      &lt;/head&gt; 
     155      &lt;body&gt; 
     156      &lt;img src="http://xinha.python-hosting.com/trac/logo.jpg" usemap="#m1"&gt; 
     157      &lt;map name="m1"&gt; 
     158      &lt;area shape="rect" coords="137,101,255,124" href="http://www.mydomain.com"&gt; 
     159      &lt;/map&gt; 
     160 
    146161      &lt;p&gt; 
    147162        Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
     
    162177        &lt;li&gt; Nunc sit amet metus in tortor semper mattis. &lt;/li&gt; 
    163178      &lt;/ul&gt; 
     179      &lt;/body&gt; 
     180      &lt;/html&gt; 
    164181    </textarea> 
    165182 
Note: See TracChangeset for help on using the changeset viewer.