Ignore:
Timestamp:
02/24/07 15:47:57 (13 years ago)
Author:
ray
Message:

updated branch

File:
1 edited

Legend:

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

    r761 r762  
    1 <?xml version="1.0" encoding="UTF-8"?> 
    21<!DOCTYPE html 
    32     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
     
    5554      xinha_plugins = xinha_plugins ? xinha_plugins : 
    5655      [ 
    57         'CharacterMap', 'SpellChecker', 'Linker' 
     56        'CharacterMap', 'SpellChecker', 'SmartReplace','PasteText','SuperClean' 
     57        //'Linker'//,'GetHtml' 
    5858      ]; 
    5959             // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :) 
     
    6767      xinha_editors = xinha_editors ? xinha_editors : 
    6868      [ 
    69         'myTextArea' 
     69      'HAllo',   
     70      'myTextArea' 
     71         
    7072      ]; 
    7173 
     
    8486 
    8587       xinha_config = xinha_config ? xinha_config : new Xinha.Config(); 
    86        xinha_config.fullPage = true; 
     88   xinha_config.width  = 300; 
     89   xinha_config.height = 300; 
     90       xinha_config.fullPage = false; 
    8791       xinha_config.CharacterMap.mode = 'panel'; 
     92       xinha_config.toolbar = 
     93  [ 
     94    ["popupeditor"], 
     95    ["separator","formatblock","fontname","fontsize","bold","italic","underline","strikethrough"], 
     96    ["separator","forecolor","hilitecolor","textindicator"], 
     97    ["separator","subscript","superscript"], 
     98    ["linebreak","separator","justifyleft","justifycenter","justifyright","justifyfull"], 
     99    ["separator","insertorderedlist","insertunorderedlist","outdent","indent"], 
     100    ["separator","inserthorizontalrule","createlink","insertimage","inserttable"], 
     101    ["linebreak","separator","undo","redo","selectall","print"], (Xinha.is_gecko ? [] : ["cut","copy","paste","overwrite","saveas"]), 
     102    ["separator","killword","clearfonts","removeformat","toggleborders","splitblock","lefttoright", "righttoleft"], 
     103    ["separator","htmlmode","showhelp","about"] 
     104  ]; 
    88105/* 
    89106       // We can load an external stylesheet like this - NOTE : YOU MUST GIVE AN ABSOLUTE URL 
     
    142159</head> 
    143160 
    144 <body> 
    145  
    146   <form action="javascript:var x = document.getElementById('editors_here');alert(x.myTextArea.value);" id="editors_here" onsubmit="alert(this.myTextArea.value);"> 
    147     <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  
    161       &lt;p&gt; 
    162         Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
    163         Aliquam et tellus vitae justo varius placerat. Suspendisse iaculis 
    164         velit semper dolor. Donec gravida tincidunt mi. Curabitur tristique 
    165         ante elementum turpis. Aliquam nisl. Nulla posuere neque non 
    166         tellus. Morbi vel nibh. Cum sociis natoque penatibus et magnis dis 
    167         parturient montes, nascetur ridiculus mus. Nam nec wisi. In wisi. 
    168         Curabitur pharetra bibendum lectus. 
    169       &lt;/p&gt; 
    170  
    171       &lt;ul&gt; 
    172         &lt;li&gt; Phasellus et massa sed diam viverra semper.  &lt;/li&gt; 
    173         &lt;li&gt; Mauris tincidunt felis in odio.              &lt;/li&gt; 
    174         &lt;li&gt; Nulla placerat nunc ut pede.                 &lt;/li&gt; 
    175         &lt;li&gt; Vivamus ultrices mi sit amet urna.           &lt;/li&gt; 
    176         &lt;li&gt; Quisque sed augue quis nunc laoreet volutpat.&lt;/li&gt; 
    177         &lt;li&gt; Nunc sit amet metus in tortor semper mattis. &lt;/li&gt; 
    178       &lt;/ul&gt; 
    179       &lt;/body&gt; 
    180       &lt;/html&gt; 
    181     </textarea> 
     161<body bgcolor="Aqua"> 
     162 
     163  <form action="test_dest.php" id="editors_here" onsubmit="alert(this.myTextArea.value);"> 
     164<input type="checkbox" name="hallo" /> 
     165<select> 
     166<option>Test</option> 
     167</select> 
     168  <textarea id="myTextArea" name="myTextArea" style="width:100%;height:320px;"> 
     169    <table cellspacing="1" cellpadding="1" border="1" style="width: 100%;"><tbody><tr><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td></tr><tr><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td></tr></tbody></table><br /></textarea> 
     170 
     171    <input type="submit" /> <input type="reset" /><input type="checkbox" name="hallo" /> 
     172<select> 
     173<option>Test</option> 
     174</select> 
     175  <textarea name="myTextArea" style="width:100%;height:320px;"> 
     176    <table cellspacing="1" cellpadding="1" border="1" style="width: 100%;"><tbody><tr><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td></tr><tr><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td></tr></tbody></table><br /></textarea> 
     177 
     178    <input type="submit" /> <input type="reset" /><input type="checkbox" name="hallo" /> 
     179<select> 
     180<option>Test</option> 
     181</select> 
     182  <textarea name="myTextArea" style="width:100%;height:320px;"> 
     183    <table cellspacing="1" cellpadding="1" border="1" style="width: 100%;"><tbody><tr><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td></tr><tr><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td></tr></tbody></table><br /></textarea> 
     184 
     185    <input type="submit" /> <input type="reset" /><input type="checkbox" name="hallo" /> 
     186<select> 
     187<option>Test</option> 
     188</select> 
     189  <textarea id="myTextArea" name="myTextArea" style="width:100%;height:320px;"> 
     190    <table cellspacing="1" cellpadding="1" border="1" style="width: 100%;"><tbody><tr><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td></tr><tr><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td></tr></tbody></table><br /></textarea> 
     191 
     192    <input type="submit" /> <input type="reset" /><input type="checkbox" name="hallo" /> 
     193<select> 
     194<option>Test</option> 
     195</select> 
     196  <textarea name="myTextArea" style="width:100%;height:320px;"> 
     197    <table cellspacing="1" cellpadding="1" border="1" style="width: 100%;"><tbody><tr><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td></tr><tr><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td><td style="width: 25%;">&nbsp;</td></tr></tbody></table><br /></textarea> 
    182198 
    183199    <input type="submit" /> <input type="reset" /> 
Note: See TracChangeset for help on using the changeset viewer.