Changeset 1406


Ignore:
Timestamp:
02/19/18 09:14:05 (6 months ago)
Author:
gogo
Message:

A little quick tidy up of examples.

Location:
trunk/examples
Files:
3 added
1 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples

    • Property svn:ignore set to
      password.php
  • trunk/examples/Newbie.html

    r1151 r1406  
    1919</div> 
    2020</form> 
     21 
    2122</body> 
    2223</html> 
  • trunk/examples/XinhaConfig.js

    r1228 r1406  
    3939   'CharacterMap', 
    4040   'ContextMenu', 
     41   'FancySelects', 
    4142   'SmartReplace', 
    4243   'Stylist', 
    43    'ExtendedFileManager', 
    4444   'Linker', 
    4545   'SuperClean', 
    46    'TableOperations' 
     46   'TableOperations', 
     47   'ListOperations', 
     48   'WebKitResize' 
    4749  ]; 
    4850   
  • trunk/examples/files/Extended.html

    r993 r1406  
    102102  } 
    103103  if (!document.all) { 
     104   if(window.sizeToContent) 
     105   { 
    104106    window.sizeToContent(); 
    105107    window.sizeToContent();  // for reasons beyond understanding, 
    106108          // only if we call it twice we get the 
    107109          // correct size. 
     110    } 
    108111    window.addEventListener("unload", __dlg_onclose, true); 
    109112    window.innerWidth = body.offsetWidth + 5; 
  • trunk/examples/files/ext_example-menu.php

    r1084 r1406  
    101101    else if (document.body && document.body.offsetHeight) sHeight = document.body.offsetHeight; 
    102102    else return; 
    103     if (sHeight>270) { 
    104       sHeight = sHeight - 245; 
     103    if (sHeight>300) { 
     104      sHeight = sHeight - 285; 
    105105    } else { 
    106106      sHeight = 30 
     
    247247 
    248248<body> 
    249   <form action="ext_example-body.html" target="body" name="fsettings" id="fsettings"> 
     249  <form action="ext_example-body.php" target="body" name="fsettings" id="fsettings"> 
    250250  <h1>Xinha Example</h1> 
    251251    <fieldset> 
     
    258258          <select name="lang" id="lang"> 
    259259          <option value="en">English</option> 
    260           <option value="de">German</option> 
    261           <option value="fr">French</option> 
    262           <option value="it">Italian</option> 
    263           <option value="no">Norwegian</option> 
    264           <option value="pl">Polish</option> 
    265           <option value="ja">Japanese</option> 
     260          <option value="en">--- By Name ---</option> 
     261<option value="ch">Chinese (ch)</option> 
     262<option value="cz">Czech</option> 
     263<option value="da">Danish</option> 
     264<option value="de">German</option> 
     265<option value="ee">Ewe</option> 
     266<option value="el">Greek</option> 
     267<option value="es">Spanish</option> 
     268<option value="eu">Basque</option> 
     269<option value="fa">Persian (Farsi)</option> 
     270<option value="fi">Finnish</option> 
     271<option value="fr_ca">French (Canada)</option> 
     272<option value="fr">French</option> 
     273<option value="zn_ch">Chinese (zn_ch)</option> 
     274<option value="he">Hebrew</option> 
     275<option value="hu">Hungarian</option> 
     276<option value="it">Italian</option> 
     277<option value="ja">Japanese</option> 
     278<option value="lt">Lithuanian</option> 
     279<option value="lv">Latvian</option> 
     280<option value="nb">Norwegian</option> 
     281<option value="nl">Dutch</option> 
     282<option value="pl">Polish</option> 
     283<option value="pt_br">Portuguese (Brazil)</option> 
     284<option value="ro">Romanian</option> 
     285<option value="ru">Russian</option> 
     286<option value="sh">Serbo-Croatian</option> 
     287<option value="si">Slovenian</option> 
     288<option value="sr">Serbian</option> 
     289<option value="vn">Swedish</option> 
     290<option value="th">Thai</option> 
     291<option value="tr">Turkish</option> 
     292<option value="vn">Vietnamese</option> 
     293 
     294          <option value="en">--- By Code ---</option> 
     295<option value="ch">ch</option> 
     296<option value="cz">cz</option> 
     297<option value="da">da</option> 
     298<option value="de">de</option> 
     299<option value="ee">ee</option> 
     300<option value="el">el</option> 
     301<option value="es">es</option> 
     302<option value="eu">eu</option> 
     303<option value="fa">fa</option> 
     304<option value="fi">fi</option> 
     305<option value="fr_ca">fr_ca</option> 
     306<option value="fr">fr</option> 
     307<option value="zn_ch">zn_ch</option> 
     308<option value="he">he</option> 
     309<option value="hu">hu</option> 
     310<option value="it">it</option> 
     311<option value="ja">ja</option> 
     312<option value="lt">lt</option> 
     313<option value="lv">lv</option> 
     314<option value="nb">nb</option> 
     315<option value="nl">nl</option> 
     316<option value="pl">pl</option> 
     317<option value="pt_br">pt_br</option> 
     318<option value="ro">ro</option> 
     319<option value="ru">ru</option> 
     320<option value="sh">sh</option> 
     321<option value="si">si</option> 
     322<option value="sr">sr</option> 
     323<option value="sv">sv</option> 
     324<option value="th">th</option> 
     325<option value="tr">tr</option> 
     326<option value="vn">vn</option> 
    266327          </select> 
    267328        </label> 
     
    281342          </select> 
    282343        </label> 
     344        <label> 
     345          Mode: 
     346          <select name="DocType"> 
     347            <option value="standards">Standards</option> 
     348            <option value="almost">Almost Standards</option> 
     349            <option value="quirks">Quirks</option> 
     350             
     351          </select> 
     352        </label> 
     353        <label> 
     354          Icons: 
     355            <select name="icons"> 
     356              <option value="">Default/Skin</option> 
     357              <option value="Classic">Classic</option> 
     358              <option value="Crystal">Crystal</option> 
     359              <option value="Tango">Tango</option> 
     360            </select> 
     361        </label> 
    283362        <center><input type="button" value="extended Settings" onClick="fExtended();" /></center> 
    284363 
     
    313392          tellus. Morbi vel nibh. Cum sociis natoque penatibus et magnis dis 
    314393          parturient montes, nascetur ridiculus mus. Nam nec wisi. In wisi. 
    315           Curabitur pharetra bibendum lectus.</p> 
    316  
     394          Curabitur pharetra bibendum lectus. </p> 
     395<ul> 
     396  <li><a href="http://test.com/john%27s">test</a></li> 
     397  <li><a href="/absolute/test.html">test</a></li> 
     398  <li><a href="/test.html">test</a></li> 
     399  <li><a href="test.html">test</a></li> 
     400  <li><a href="../test.html">test</a></li> 
     401  <li></li> 
     402  <li><a href="/absolute/test.html">test</a></li> 
     403  <li><a href="/absolute/./test.html">test</a></li> 
     404  <li><a href="/absolute/./../test.html">test</a></li> 
     405  <li><a href="/absolute/.///./../test.html">test</a></li> 
     406  <li></li> 
     407  <li><a href="relative/test.html">test</a></li> 
     408  <li><a href="relative/./test.html">test</a></li> 
     409  <li><a href="relative/./../test.html">test</a></li> 
     410  <li><a href="relative/.///./../test.html">test</a></li> 
     411  <li></li> 
     412  <li><a href="../test.html">test</a></li> 
     413  <li><a href=".././test.html">test</a></li> 
     414  <li><a href=".././../test.html">test</a></li> 
     415  <li><a href=".././//./../test.html">test</a></li> 
     416  <li></li> 
     417  <li><a href="./relative/test.html">test</a></li> 
     418  <li><a href="./relative/./test.html">test</a></li> 
     419  <li><a href="./relative/./../test.html">test</a></li> 
     420  <li><a href="./relative/.///./../test.html">test</a></li> 
     421  <li></li> 
     422  <li><a href="./relative/test.html?.///./../../../abc/def">test</a></li> 
     423  <li><a href="./relative/./test.html#123/45/../../..///./ddd">test</a></li> 
     424  <li><a href="./relative/./../test.html?.///./../../../abc/def">test</a></li> 
     425  <li><a href="./relative/.///./../test.html#123/45/../../..///./ddd">test</a></li> 
     426  <li></li> 
     427  <li><a href="../../../../../../../../../../.././relative/test.html?.///./../../../abc/def">test</a></li> 
     428  <li><a href="../../.././relative/./test.html#123/45/../../..///./ddd">test</a></li> 
     429  <li><a href="../../../.././relative/./../test.html?.///./../../../abc/def">test</a></li> 
     430  <li><a href="../../../.././relative/.///./../test.html#123/45/../../..///./ddd">test</a></li> 
     431   
     432</ul> 
    317433          <ul> 
    318434            <li> Phasellus et massa sed diam viverra semper.  </li> 
     
    327443  </form> 
    328444  <script type="text/javascript"> 
    329     top.frames["body"].location.href = document.location.href.replace(/ext_example-menu\.php.*/, 'ext_example-body.html') 
     445    top.frames["body"].location.href = document.location.href.replace(/ext_example-menu\.php.*/, 'ext_example-body.php') 
    330446    var _oldSubmitHandler = null; 
    331447    if (document.forms[0].onsubmit != null) { 
  • trunk/examples/files/stylist.css

    r999 r1406  
    3030 
    3131img.polaroid { border:1px solid black; background-color:white; padding:10px; padding-bottom:30px; } 
     32 
     33li.light_blue_list_item { color:#97b0f4; } 
  • trunk/examples/images

    • Property svn:ignore set to
      *
  • trunk/examples/mootools-file-manager.php

    r1325 r1406  
    11<?php require_once('require-password.php'); ?> 
    2 <!DOCTYPE html 
    3      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    4     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
     2<?php  
     3  switch(@$_REQUEST['DocType']) 
     4  { 
     5     
     6    case 'quirks': 
     7      break; 
     8       
     9   case 'almost': 
     10      echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'; 
     11      break; 
     12     
     13    case 'standards': 
     14    default: 
     15      echo '<!DOCTYPE html>'; 
     16      break; 
     17       
     18  } 
     19?> 
    520<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
    621<head> 
     
    2843    // where xinha is installed, it's highly recommended to use an absolute URL 
    2944    //  eg: _editor_url = "/path/to/xinha/"; 
    30     // You may try a relative URL htmlif you wish] 
     45    // You may try a relative URL html if you wish 
    3146    //  eg: _editor_url = "../"; 
    3247    // in this example we do a little regular expression to find the absolute path. 
     
    3550    _editor_skin = 'blue-look'; 
    3651     
    37     <?php  
    38       if(@$_REQUEST['NoFlash']) 
    39       { 
    40         ?>__MFM_USE_FLASH__ = false;<?php 
    41       } 
    42       else 
    43       { 
    44         ?>__MFM_USE_FLASH__ = true;<?php 
    45       } 
    46     ?> 
    4752  </script> 
    4853 
     
    6772      xinha_plugins = xinha_plugins ? xinha_plugins : 
    6873      [ 
    69         'MootoolsFileManager','Linker' 
     74        'MootoolsFileManager','Linker', 'TableOperations', 'ListOperations', 'ContextMenu', 'WebKitResize', 'FancySelects' 
    7075      ]; 
    7176             // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :) 
     
    96101 
    97102       xinha_config = xinha_config ? xinha_config : new Xinha.Config(); 
    98       xinha_config.fullPage = true; 
     103      // xinha_config.fullPage = true; 
    99104       with (xinha_config.MootoolsFileManager) 
    100105        {  
     
    110115                'images_allow_delete' => true, 
    111116                'images_allow_download' => true, 
     117                'images_use_hspace_vspace' => false, 
    112118                 
    113119                'files_dir' => getcwd() . '/images', 
     
    182188  <p>  Highlight some text and click the insert file link button (folder with a link on it).</p> 
    183189  <p>  This demo also includes the Linker plugin (for creating normal links). </p> 
    184   <?php  
    185     if(!isset($_REQUEST['NoFlash']))  
    186     { 
    187       ?> 
    188       <p>You are using the Flash version of MFM, <a href="mootools-file-manager.php?NoFlash=1">switch to NoFlash.</a></p> 
    189       <?php 
    190     } 
    191     else 
    192     { 
    193       ?> 
    194       <p>You are using the NoFlash version of MFM, <a href="mootools-file-manager.php">switch to Flash.</a></p> 
    195       <?php 
    196     } 
    197   ?> 
     190   
    198191  <form action="javascript:void(0);" id="editors_here" onsubmit="alert(this.myTextArea.value);"> 
    199192     <div> 
    200      <textarea id="myTextArea" name="myTextArea" style="width:100%;height:320px;"> 
    201       &lt;html&gt; 
    202       &lt;head&gt; 
    203         &lt;title&gt;Hello&lt;/title&gt; 
    204         &lt;style type="text/css"&gt; 
    205           li { color:red; } 
    206         &lt;/style&gt; 
    207       &lt;/head&gt; 
    208       &lt;body&gt;&lt;span style="color:purple"&gt; 
    209  
    210       &lt;p&gt; 
    211         Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
    212         Aliquam et tellus vitae justo varius placerat. Suspendisse iaculis 
    213         velit semper dolor. Donec gravida tincidunt mi. Curabitur tristique 
    214         ante elementum turpis.  &lt;span style="color:green"&gt;Aliquam &lt;/span&gt; nisl. Nulla posuere neque non 
    215         tellus. Morbi vel nibh. &lt;font face="Arial"&gt;&lt;font color="#009933"&gt;Cum  sociis natoque&lt;/font&gt;&lt;/font&gt; penatibus et magnis dis 
    216         parturient montes, nascetur ridiculus mus. Nam nec wisi. In wisi. 
    217         Curabitur pharetra bibendum lectus. 
    218       &lt;/p&gt; 
    219  
    220       &lt;ul&gt; 
    221         &lt;li style="color:green"&gt; Phasellus et massa sed diam viverra semper.  &lt;/li&gt; 
    222         &lt;li&gt; Mauris tincidunt felis in odio.              &lt;/li&gt; 
    223         &lt;li&gt; Nulla placerat nunc ut pede.                 &lt;/li&gt; 
    224         &lt;li&gt; Vivamus ultrices mi sit amet urna.           &lt;/li&gt; 
    225         &lt;li&gt; Quisque sed augue quis nunc laoreet volutpat.&lt;/li&gt; 
    226         &lt;li&gt; Nunc sit amet metus in tortor semper mattis. &lt;/li&gt; 
    227       &lt;/ul&gt; 
    228       &lt;/span&gt;&lt;/body&gt; 
    229       &lt;/html&gt; 
    230     </textarea> 
    231  
     193    <textarea id="myTextArea" name="myTextArea" style="width:100%;height:320px;"> 
     194&lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
     195Aliquam et tellus vitae justo varius placerat. Suspendisse iaculis 
     196velit semper dolor. Donec gravida tincidunt mi. Curabitur tristique 
     197ante elementum turpis. Aliquam nisl. Nulla posuere neque non 
     198tellus. Morbi vel nibh. Cum sociis natoque penatibus et magnis dis 
     199parturient montes, nascetur ridiculus mus. Nam nec wisi. In wisi. 
     200Curabitur pharetra bibendum lectus.&lt;/p&gt; 
     201</textarea> 
    232202    <input type="submit" /> <input type="reset" /> 
    233203    </div> 
    234204  </form> 
    235205 
    236   <p> 
    237     <script type="text/javascript"> 
    238       document.write('Browser Compatability Mode: ' + document.compatMode); 
    239     </script> 
    240   </p> 
     206  <ul> 
     207    <li><a href="<?php echo basename(__FILE__) ?>?DocType=standards">Test Standards Mode</a></li> 
     208    <li><a href="<?php echo basename(__FILE__) ?>?DocType=almost">Test Almost Standards Mode</a></li> 
     209    <li><a href="<?php echo basename(__FILE__) ?>?DocType=quirks">Test Quirks Mode</a></li> 
     210  </ul> 
     211   
     212  <!-- This script is used to show the rendering mode (Quirks, Standards, Almost Standards) -->  
     213  <script type="text/javascript" src="render-mode-developer-help.js"></script> 
    241214</body> 
    242215</html> 
  • trunk/examples/simple_example.html

    r987 r1406  
    1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
     1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 
    22<html> 
    33<head> 
     
    55<title>Simple example of Xinha</title> 
    66<script type="text/javascript"> 
    7 var _editor_url  = document.location.href.replace(/examples\/simple_example\.html.*/, '') 
    8  
    9 var _editor_lang = "en"; 
     7  var _editor_url  = document.location.href.replace(/examples\/simple_example\.html.*/, '') 
     8  var _editor_lang = "en"; 
    109</script> 
    1110<!-- Load up the actual editor core --> 
     
    1514var xinha_plugins = 
    1615[ 
    17  'Linker' 
     16 'Linker', 'ContextMenu', 'FancySelects', 'TableOperations', 'ListOperations', 'PreserveSelection', 'PreserveScripts', 'WebKitResize' 
    1817]; 
     18 
    1919var xinha_editors = 
    2020[ 
    21   'myTextArea', 
    22   'anotherOne' 
     21  'myTextArea' 
    2322]; 
    2423 
     
    2827 
    2928  var xinha_config = new Xinha.Config(); 
    30  
     29   
    3130  xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); 
    3231 
     
    3938 
    4039<body> 
     40<div> 
     41<form onsubmit="alert(this.myTextArea.value); return false;" style=""> 
    4142 
    42 <form onsubmit="alert(this.myTextArea.value); return false;"> 
    4343<textarea id="myTextArea" name="myTextArea" rows="25" cols="80"> 
    4444&lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
     
    4949parturient montes, nascetur ridiculus mus. Nam nec wisi. In wisi. 
    5050Curabitur pharetra bibendum lectus.&lt;/p&gt; 
     51 
    5152</textarea> 
     53<input type="submit" value="SUBMIT" /> 
    5254</form> 
     55</div> 
     56 
     57  <!-- This script is used to show the rendering mode (Quirks, Standards, Almost Standards) -->  
     58  <script type="text/javascript" src="render-mode-developer-help.js"></script> 
     59       
    5360</body> 
    5461</html> 
  • trunk/examples/testbed.html

    r1197 r1406  
    5555      xinha_plugins = xinha_plugins ? xinha_plugins : 
    5656      [ 
    57         'CharacterMap', 'SpellChecker', 'Linker', 'ContextMenu' 
     57        'CharacterMap', 'ContextMenu', 'InsertAnchor', 'Linker', 'ListOperations', 'TableOperations', 'FancySelects', 'PreserveScripts', 'PreserveSelection', 'Stylist', 'SuperClean', 'WebKitResize' 
    5858      ]; 
    5959             // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :) 
     
    185185</div> 
    186186  </form> 
    187   <script type="text/javascript"> 
    188     document.write(document.compatMode); 
    189   </script> 
     187 
    190188<div> 
    191189  <a href="#" onclick="xinha_editors.myTextArea.hidePanels();">Hide</a> 
     
    193191</div> 
    194192 
     193  <!-- This script is used to show the rendering mode (Quirks, Standards, Almost Standards) -->  
     194  <script type="text/javascript" src="render-mode-developer-help.js"></script> 
    195195</body> 
    196196</html> 
Note: See TracChangeset for help on using the changeset viewer.