svn commit: r578051 [4/31] - in /lenya/branches/revolution/1.3.x/src: java/org/apache/lenya/cms/content/flat/ webapp/lenya/modules/xinha/ webapp/lenya/modules/xinha/contrib/ webapp/lenya/modules/xinha/examples/ webapp/lenya/modules/xinha/images/ webapp...

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/contrib/php-xinha.php
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/contrib/php-xinha.php?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/contrib/php-xinha.php (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/contrib/php-xinha.php Fri Sep 21 03:36:30 2007
@@ -0,0 +1,202 @@
+<?php
+  /** Write the appropriate xinha_config directives to pass data to a PHP (Plugin) backend file.
+   *
+   *  ImageManager Example:
+   *  The following would be placed in step 3 of your configuration (see the NewbieGuide 
+   *  (http://xinha.python-hosting.com/wiki/NewbieGuide)
+   *
+   * <script language="javascript">
+   *  with (xinha_config.ImageManager)
+   *  { 
+   *    <?php 
+   *      xinha_pass_to_php_backend
+   *      (       
+   *        array
+   *        (
+   *         'images_dir' => '/home/your/directory',
+   *         'images_url' => '/directory'
+   *        )
+   *      )
+   *    ?>
+   *  }
+   *  </script>
+   * 
+   */
+      
+  function xinha_pass_to_php_backend($Data, $KeyLocation = 'Xinha:BackendKey')
+  {
+   
+    $bk = array();
+    $bk['data']       = serialize($Data);
+    
+    @session_start();
+    if(!isset($_SESSION[$KeyLocation]))
+    {
+      $_SESSION[$KeyLocation] = uniqid('Key_');
+    }
+    
+    $bk['session_name'] = session_name();      
+    $bk['key_location'] = $KeyLocation;      
+    $bk['hash']         = 
+      function_exists('sha1') ? 
+        sha1($_SESSION[$KeyLocation] . $bk['data']) 
+      : md5($_SESSION[$KeyLocation] . $bk['data']);
+      
+      
+    // The data will be passed via a postback to the 
+    // backend, we want to make sure these are going to come
+    // out from the PHP as an array like $bk above, so 
+    // we need to adjust the keys.
+    $backend_data = array();
+    foreach($bk as $k => $v)
+    {
+      $backend_data["backend_data[$k]"] = $v; 
+    }
+    
+    // The session_start() above may have been after data was sent, so cookies
+    // wouldn't have worked.
+    $backend_data[session_name()] = session_id();
+    
+    echo 'backend_data = ' . xinha_to_js($backend_data) . "; \n";
+    
+  }  
+   
+  /** Convert PHP data structure to Javascript */
+  
+  function xinha_to_js($var, $tabs = 0)
+  {
+    if(is_numeric($var))
+    {
+      return $var;
+    }
+  
+    if(is_string($var))
+    {
+      return "'" . xinha_js_encode($var) . "'";
+    }
+  
+    if(is_array($var))
+    {
+      $useObject = false;
+      foreach(array_keys($var) as $k) {
+          if(!is_numeric($k)) $useObject = true;
+      }
+      $js = array();
+      foreach($var as $k => $v)
+      {
+        $i = "";
+        if($useObject) {
+          if(preg_match('#^[a-zA-Z]+[a-zA-Z0-9]*$#', $k)) {
+            $i .= "$k: ";
+          } else {
+            $i .= "'$k': ";
+          }
+        }
+        $i .= xinha_to_js($v, $tabs + 1);
+        $js[] = $i;
+      }
+      if($useObject) {
+          $ret = "{\n" . xinha_tabify(implode(",\n", $js), $tabs) . "\n}";
+      } else {
+          $ret = "[\n" . xinha_tabify(implode(",\n", $js), $tabs) . "\n]";
+      }
+      return $ret;
+    }
+  
+    return 'null';
+  }
+    
+  /** Like htmlspecialchars() except for javascript strings. */
+  
+  function xinha_js_encode($string)
+  {
+    static $strings = "\\,\",',%,&,<,>,{,},@,\n,\r";
+  
+    if(!is_array($strings))
+    {
+      $tr = array();
+      foreach(explode(',', $strings) as $chr)
+      {
+        $tr[$chr] = sprintf('\x%02X', ord($chr));
+      }
+      $strings = $tr;
+    }
+  
+    return strtr($string, $strings);
+  }
+        
+   
+  /** Used by plugins to get the config passed via 
+  *   xinha_pass_to_backend()
+  *  returns either the structure given, or NULL
+  *  if none was passed or a security error was encountered.
+  */
+  
+  function xinha_read_passed_data()
+  {
+   if(isset($_REQUEST['backend_data']) && is_array($_REQUEST['backend_data']))
+   {
+     $bk = $_REQUEST['backend_data'];
+     session_name($bk['session_name']);
+     @session_start();
+     if(!isset($_SESSION[$bk['key_location']])) return NULL;
+     
+     if($bk['hash']         === 
+        function_exists('sha1') ? 
+          sha1($_SESSION[$bk['key_location']] . $bk['data']) 
+        : md5($_SESSION[$bk['key_location']] . $bk['data']))
+     {
+       return unserialize(ini_get('magic_quotes_gpc') ? stripslashes($bk['data']) : $bk['data']);
+     }
+   }
+   
+   return NULL;
+  }
+   
+  /** Used by plugins to get a query string that can be sent to the backend 
+  * (or another part of the backend) to send the same data.
+  */
+  
+  function xinha_passed_data_querystring()
+  {
+   $qs = array();
+   if(isset($_REQUEST['backend_data']) && is_array($_REQUEST['backend_data']))
+   {
+     foreach($_REQUEST['backend_data'] as $k => $v)
+     {
+       $v =  ini_get('magic_quotes_gpc') ? stripslashes($v) : $v;
+       $qs[] = "backend_data[" . rawurlencode($k) . "]=" . rawurlencode($v);
+     }       
+   }
+   
+   $qs[] = session_name() . '=' . session_id();
+   return implode('&', $qs);
+  }
+   
+    
+  /** Just space-tab indent some text */
+  function xinha_tabify($text, $tabs)
+  {
+    if($text)
+    {
+      return str_repeat("  ", $tabs) . preg_replace('/\n(.)/', "\n" . str_repeat("  ", $tabs) . "\$1", $text);
+    }
+  }       
+
+  /** Return upload_max_filesize value from php.ini in kilobytes (function adapted from php.net)**/
+  function upload_max_filesize_kb() 
+  {
+    $val = ini_get('upload_max_filesize');
+    $val = trim($val);
+    $last = strtolower($val{strlen($val)-1});
+    switch($last) 
+    {
+      // The 'G' modifier is available since PHP 5.1.0
+      case 'g':
+        $val *= 1024;
+      case 'm':
+        $val *= 1024;
+   }
+   return $val;
+}
+?>
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/Extended.html
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/Extended.html?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/Extended.html (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/Extended.html Fri Sep 21 03:36:30 2007
@@ -0,0 +1,299 @@
+<html>
+
+<head>
+  <title>Settings</title>
+  <link rel="stylesheet" type="text/css" href="../popups/popup.css" />
+  <script type="text/javascript">
+
+function getAbsolutePos(el) {
+	var r = { x: el.offsetLeft, y: el.offsetTop };
+	if (el.offsetParent) {
+		var tmp = getAbsolutePos(el.offsetParent);
+		r.x += tmp.x;
+		r.y += tmp.y;
+	}
+	return r;
+};
+
+function getSelectedValue(el) {
+  if(!el)
+    return "";
+  return el[el.selectedIndex].value;
+}
+
+function setSelectedValue(el, val) {
+  if(!el)
+    return "";
+  var ops = el.getElementsByTagName("option");
+  for (var i = ops.length; --i >= 0;) {
+    var op = ops[i];
+    op.selected = (op.value == val);
+  }
+  el.value = val;
+}
+
+function getCheckedValue(el) {
+  if(!el)
+    return "";
+  var radioLength = el.length;
+  if(radioLength == undefined)
+    if(el.checked)
+      return el.value;
+    else
+      return "false";
+  for(var i = 0; i < radioLength; i++) {
+    if(el[i].checked) {
+      return el[i].value;
+    }
+  }
+  return "";
+}
+
+function setCheckedValue(el, val) {
+  if(!el)
+    return;
+  var radioLength = el.length;
+  if(radioLength == undefined) {
+    el.checked = (el.value == val.toString());
+    return;
+  }
+  for(var i = 0; i < radioLength; i++) {
+    el[i].checked = false;
+    if(el[i].value == val.toString()) {
+      el[i].checked = true;
+    }
+  }
+}
+
+function __dlg_onclose() {
+	opener.Dialog._return(null);
+};
+
+// closes the dialog and passes the return info upper.
+function __dlg_close(val) {
+	opener.Dialog._return(val);
+	window.close();
+};
+
+function __dlg_close_on_esc(ev) {
+	ev || (ev = window.event);
+	if (ev.keyCode == 27) {
+		window.close();
+		return false;
+	}
+	return true;
+};
+
+function __dlg_init(bottom) {
+  var body = document.body;
+	var body_height = 0;
+	if (typeof bottom == "undefined") {
+		var div = document.createElement("div");
+		body.appendChild(div);
+		var pos = getAbsolutePos(div);
+		body_height = pos.y;
+	} else {
+		var pos = getAbsolutePos(bottom);
+		body_height = pos.y + bottom.offsetHeight;
+	}
+	window.dialogArguments = opener.Dialog._arguments;
+	if (!document.all) {
+		window.sizeToContent();
+		window.sizeToContent();	// for reasons beyond understanding,
+					// only if we call it twice we get the
+					// correct size.
+		window.addEventListener("unload", __dlg_onclose, true);
+		window.innerWidth = body.offsetWidth + 5;
+		window.innerHeight = body_height + 2;
+		// center on parent
+		var x = opener.screenX + (opener.outerWidth - window.outerWidth) / 2;
+		var y = opener.screenY + (opener.outerHeight - window.outerHeight) / 2;
+		window.moveTo(x, y);
+	} else {
+		// window.dialogHeight = body.offsetHeight + 50 + "px";
+		// window.dialogWidth = body.offsetWidth + "px";
+		window.resizeTo(body.offsetWidth, body_height);
+		var ch = body.clientHeight;
+		var cw = body.clientWidth;
+		window.resizeBy(body.offsetWidth - cw, body_height - ch);
+		var W = body.offsetWidth;
+		var H = 2 * body_height - ch;
+		var x = (screen.availWidth - W) / 2;
+		var y = (screen.availHeight - H) / 2;
+		window.moveTo(x, y);
+	}
+	document.body.onkeypress = __dlg_close_on_esc;
+};
+
+function placeFocus() {
+var bFound = false;
+  // for each form
+  for (f=0; f < document.forms.length; f++) {
+    // for each element in each form
+    for(i=0; i < document.forms[f].length; i++) {
+      // if it's not a hidden element
+      if (document.forms[f][i].type != "hidden") {
+        // and it's not disabled
+        if (document.forms[f][i].disabled != true) {
+            // set the focus to it
+            document.forms[f][i].focus();
+            var bFound = true;
+        }
+      }
+      // if found in this element, stop looking
+      if (bFound == true)
+        break;
+    }
+    // if found in this form, stop looking
+    if (bFound == true)
+      break;
+  }
+}
+
+function Init() {
+  __dlg_init();
+  var param = window.dialogArguments;
+  if(param) {
+    var el;
+    for (var field in param) {
+      //alert(field + '="' + param[field] + '"');
+      el = document.getElementById(field);
+      if (el.tagName.toLowerCase()=="input"){
+        if ((el.type.toLowerCase()=="radio") || (el.type.toLowerCase()=="checkbox")){
+          setCheckedValue(el, param[field]);
+        } else {
+          el.value = param[field];
+        }
+      } else if (el.tagName.toLowerCase()=="select"){
+        setSelectedValue(el, param[field]);
+      } else if (el.tagName.toLowerCase()=="textarea"){
+        el.value = param[field];
+      }
+    }
+  }
+  placeFocus();
+};
+
+// pass data back to the calling window
+function onOK() {
+  var param = new Object();
+  var el = document.getElementsByTagName('input');
+  for (var i=0; i<el.length;i++){
+    if ((el[i].type.toLowerCase()=="radio") || (el[i].type.toLowerCase()=="checkbox")){
+      if (getCheckedValue(el[i])!=''){
+        param[el[i].id] = getCheckedValue(el[i]);
+      }
+    } else {
+      param[el[i].id] = el[i].value;
+    }
+  }
+  el = document.getElementsByTagName('select');
+  for (var i=0; i<el.length;i++){
+    param[el[i].id] = getSelectedValue(el[i]);
+  }
+  el = document.getElementsByTagName('textarea');
+  for (var i=0; i<el.length;i++){
+    param[el[i].id] = el[i].value;
+  }
+  __dlg_close(param);
+  return false;
+};
+
+function onCancel() {
+  __dlg_close(null);
+  return false;
+};
+
+</script>
+
+<style type="text/css">
+	.fr { width: 16em; float: left; padding: 2px 5px; text-align: right; }
+</style>
+
+</head>
+
+<body class="dialog" onload="Init(); window.resizeTo(360, 590);">
+<div class="title">Settings</div>
+  <form action="" method="get">
+    <div class="fr">Editor width:</div>
+      <input type="text" name="width" id="width" title="" />
+    <p />
+    <div class="fr">Editor height:</div>
+      <input type="text" name="height" id="height" title="" />
+    <p />
+    <div class="fr">Size includes bars</div>
+      <input type="checkbox" name="sizeIncludesBars" id="sizeIncludesBars" value="true" />
+    <p />
+    <div class="fr">Status Bar</div>
+      <input type="checkbox" name="statusBar" id="statusBar" value="true" />
+    <p />
+    <div class="fr">Mozilla Parameter Handler:</div>
+    <select name="mozParaHandler" id="mozParaHandler">
+      <option value="built-in">built-in</option>
+      <option value="dirty">dirty</option>
+      <option value="best">best</option>
+    </select>
+    <div class="space"></div>
+    <div class="fr">Undo steps:</div>
+      <input type="text" name="undoSteps" id="undoSteps" title="" />
+    <p />
+    <div class="fr">Base href:</div>
+      <input type="text" name="baseHref" id="baseHref" title="" />
+    <p />
+    <div class="fr">Strip base href</div>
+      <input type="checkbox" name="stripBaseHref" id="stripBaseHref" value="true" />
+    <p />
+    <div class="fr">Strip self named anchors</div>
+      <input type="checkbox" name="stripSelfNamedAnchors" id="stripSelfNamedAnchors" value="true" />
+    <p />
+    <div class="fr">only 7bit printables in URLs</div>
+      <input type="checkbox" name="only7BitPrintablesInURLs" id="only7BitPrintablesInURLs" value="true" />
+    <p />
+    <div class="fr">7bit Clean</div>
+      <input type="checkbox" name="sevenBitClean" id="sevenBitClean" value="true" />
+    <p />
+    <div class="fr">kill Word on paste</div>
+      <input type="checkbox" name="killWordOnPaste" id="killWordOnPaste" value="true" />
+    <p />
+    <div class="fr">flow toolbars</div>
+      <input type="checkbox" name="flowToolbars" id="flowToolbars" value="true" />
+    <p />
+    <div class="fr">show loading</div>
+      <input type="checkbox" name="showLoading" id="showLoading" value="true" />
+    <p />
+
+    <div id="CharacterMapOptions" class="options">
+    <hr size="0.5">
+    <div class="fr">CharacterMap mode :</div>
+      <select id="CharacterMapMode" name="CharacterMapMode">
+        <option value="popup">popup</option>
+        <option value="panel">panel</option>
+      </select>
+    </div>
+    <p />
+
+    <div id="ListTypeOptions" class="options">
+    <hr size="0.5">
+    <div class="fr">ListType mode :</div>
+      <select id="ListTypeMode" name="ListTypeMode">
+        <option value="toolbar">toolbar</option>
+        <option value="panel">panel</option>
+      </select>
+    </div>
+    <p />
+
+    <div id="CharCounterOptions" class="options">
+    <hr size="0.5">
+    <div class="fr">CharCounter (showChar) :</div><input type="checkbox" name="showChar" id="showChar" value="true" /><br />
+    <div class="fr">CharCounter (showWord) :</div><input type="checkbox" name="showWord" id="showWord" value="true" /><br />
+    <div class="fr">CharCounter (showHtml) :</div><input type="checkbox" name="showHtml" id="showHtml" value="true" />
+    </div>
+    <p />
+
+  <div id="buttons">
+    <button type="submit" name="ok" onclick="return onOK();">OK</button>
+    <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
+  </div>
+</form>
+</body>
+</html>

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/Newbie.html
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/Newbie.html?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/Newbie.html (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/Newbie.html Fri Sep 21 03:36:30 2007
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>Xinha Newbie Guide</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  
+  <script type="text/javascript">
+    _editor_url  = "../"  // (preferably absolute) URL (including trailing slash) where Xinha is installed
+    _editor_lang = "en";      // And the language we need to use in the editor.
+    _editor_skin = "silva";   // If you want use skin, add the name here
+  </script>
+  <script type="text/javascript" src="../XinhaCore.js"></script>
+  <script type="text/javascript" src="XinhaConfig.js"></script>
+</head>
+<body>
+
+<form action="">
+<textarea id="myTextArea" name="myTextArea" rows="10" cols="50" style="width: 100%"></textarea>
+</form>
+</body>
+</html>
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/XinhaConfig.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/XinhaConfig.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/XinhaConfig.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/XinhaConfig.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,17 @@
+xinha_editors=null;
+xinha_init=null;
+xinha_config=null;
+xinha_plugins=null;
+xinha_init=xinha_init?xinha_init:function(){
+xinha_editors=xinha_editors?xinha_editors:["myTextArea","anotherOne"];
+xinha_plugins=xinha_plugins?xinha_plugins:["CharacterMap","ContextMenu","ListType","Stylist","Linker","SuperClean","TableOperations"];
+if(!Xinha.loadPlugins(xinha_plugins,xinha_init)){
+return;
+}
+xinha_config=xinha_config?xinha_config():new Xinha.Config();
+xinha_config.pageStyleSheets=[_editor_url+"examples/full_example.css"];
+xinha_editors=Xinha.makeEditors(xinha_editors,xinha_config,xinha_plugins);
+Xinha.startEditors(xinha_editors);
+};
+Xinha._addEvent(window,"load",xinha_init);
+

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/custom.css
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/custom.css?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/custom.css (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/custom.css Fri Sep 21 03:36:30 2007
@@ -0,0 +1,40 @@
+  /*--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
+    --  CSS plugin example CSS file.  This file is used by full_example.js
+    --  when the CSS plugin is included in an auto-generated example.
+    --  @TODO Make this CSS more useful.
+    --
+    --  $HeadURL: http://svn.xinha.python-hosting.com/trunk/examples/custom.css $
+    --  $LastChangedDate: 2007-01-19 23:24:36 +0100 (Fr, 19 Jan 2007) $
+    --  $LastChangedRevision: 677 $
+    --  $LastChangedBy: ray $
+    --------------------------------------------------------------------------*/
+
+body { background-color: #234; color: #dd8; font-family: tahoma; font-size: 12px; }
+
+a:link, a:visited { color: #8cf; }
+a:hover { color: #ff8; }
+
+h1 { background-color: #456; color: #ff8; padding: 2px 5px; border: 1px solid; border-color: #678 #012 #012 #678; }
+
+/* syntax highlighting (used by the first combo defined for the CSS plugin) */
+
+pre { margin: 0px 1em; padding: 5px 1em; background-color: #000; border: 1px dotted #02d; border-left: 2px solid #04f; }
+.code { color: #f5deb3; }
+.string { color: #00ffff; }
+.comment { color: #8fbc8f; }
+.variable-name { color: #fa8072; }
+.type { color: #90ee90; font-weight: bold; }
+.reference { color: #ee82ee; }
+.preprocessor { color: #faf; }
+.keyword { color: #ffffff; font-weight: bold; }
+.function-name { color: #ace; }
+.html-tag { font-weight: bold; }
+.html-helper-italic { font-style: italic; }
+.warning { color: #ffa500; font-weight: bold; }
+.html-helper-bold { font-weight: bold; }
+
+/* info combo */
+
+.quote { font-style: italic; color: #ee9; }
+.highlight { background-color: yellow; color: #000; }
+.deprecated { text-decoration: line-through; color: #aaa; }

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/dynamic.css
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/dynamic.css?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/dynamic.css (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/dynamic.css Fri Sep 21 03:36:30 2007
@@ -0,0 +1,56 @@
+  /*--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
+    --  DynamicCSS plugin example CSS file.  Used by full_example.js
+    --  when the DynamicCSS plugin is included in an auto-generated example.
+    --  @TODO Make this CSS more useful.
+    --
+    --  $HeadURL: http://svn.xinha.python-hosting.com/trunk/examples/dynamic.css $
+    --  $LastChangedDate: 2007-01-19 23:24:36 +0100 (Fr, 19 Jan 2007) $
+    --  $LastChangedRevision: 677 $
+    --  $LastChangedBy: ray $
+    --------------------------------------------------------------------------*/
+
+p {
+  FONT-FAMILY: Arial, Helvetica;
+  FONT-SIZE: 9pt;
+  FONT-WEIGHT: normal;
+  COLOR: #000000;
+}
+
+p.p1 {
+  FONT-FAMILY: Arial, Helvetica;
+  FONT-SIZE: 11pt;
+  FONT-WEIGHT: normal;
+  COLOR: #000000;
+}
+
+p.p2 {
+  FONT-FAMILY: Arial, Helvetica;
+  FONT-SIZE: 13pt;
+  FONT-WEIGHT: normal;
+  COLOR: #000000;
+}
+
+div {
+  FONT-FAMILY: Arial, Helvetica;
+  FONT-SIZE: 9pt;
+  FONT-WEIGHT: bold;
+  COLOR: #000000;
+}
+
+div.div1 {
+  FONT-FAMILY: Arial, Helvetica;
+  FONT-SIZE: 11pt;
+  FONT-WEIGHT: bold;
+  COLOR: #000000;
+}
+
+div.div2 {
+  FONT-FAMILY: Arial, Helvetica;
+  FONT-SIZE: 13pt;
+  FONT-WEIGHT: bold;
+  COLOR: #000000;
+}
+
+.quote { font-style: italic; color: #ee9; }
+.highlight { background-color: yellow; color: #000; }
+.deprecated { text-decoration: line-through; color: #aaa; }

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example-body.html
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example-body.html?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example-body.html (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example-body.html Fri Sep 21 03:36:30 2007
@@ -0,0 +1,202 @@
+<!DOCTYPE BHTML PUBLIC "-//BC//DTD BHTML 3.2 Final//EN">
+<html>
+<head>
+
+  <!-- ---------------------------------------------------------------------
+    --  $HeadURL: http://svn.xinha.python-hosting.com/trunk/examples/ext_example-body.html $
+    --  $LastChangedDate: 2007-01-22 16:06:18 +0100 (Mo, 22 Jan 2007) $
+    --  $LastChangedRevision: 686 $
+    --  $LastChangedBy: gocher $
+    ------------------------------------------------------------------------ -->
+
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <title>Example of Xinha</title>
+  <link rel="stylesheet" type="text/css" href="full_example.css" />
+
+  <script type="text/javascript">
+    function showError( sMsg, sUrl, sLine){
+      document.getElementById('errors').value += 'Error: ' + sMsg + '\n' +
+                                                 'Source File: ' + sUrl + '\n' +
+                                                 'Line: ' + sLine + '\n';
+      return false;
+    }
+    // You must set _editor_url to the URL (including trailing slash) where
+    // where xinha is installed, it's highly recommended to use an absolute URL
+    //  eg: _editor_url = "/path/to/xinha/";
+    // You may try a relative URL if you wish]
+    //  eg: _editor_url = "../";
+    // in this example we do a little regular expression to find the absolute path.
+    _editor_url  = document.location.href.replace(/examples\/ext_example-body\.html.*/, '')
+    //moved _editor_lang & _editor_skin to init function because of error thrown when frame document not ready
+  </script>
+
+  <!-- Load up the actual editor core -->
+  <script type="text/javascript" src="../XinhaCore.js"></script>
+
+  <script type="text/javascript">
+    xinha_editors = null;
+    xinha_init    = null;
+    xinha_config  = null;
+    xinha_plugins = null;
+
+    xinha_init = xinha_init ? xinha_init : function() {
+      window.onerror = showError;
+      document.onerror = showError;
+
+      var f = top.frames["menu"].document.forms["fsettings"];
+      _editor_lang = f.lang[f.lang.selectedIndex].value; // the language we need to use in the editor.
+      _editor_skin = f.skin[f.skin.selectedIndex].value; // the skin we use in the editor
+// What are the plugins you will be using in the editors on this page.
+// List all the plugins you will need, even if not all the editors will use all the plugins.
+      xinha_plugins = [ ];
+      for(var x = 0; x < f.plugins.length; x++) {
+        if(f.plugins[x].checked) xinha_plugins.push(f.plugins[x].value);
+      }
+
+      // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :)
+      if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
+
+// What are the names of the textareas you will be turning into editors?
+      var num = 1;
+      num = parseInt(f.num.value);
+      if(isNaN(num)) {
+        num = 1;
+        f.num.value = 1;
+      }
+      var dest = document.getElementById("editors_here");
+      var lipsum = window.parent.menu.document.getElementById('myTextarea0').value;
+
+      xinha_editors = [ ]
+      for(var x = 0; x < num; x++) {
+        var ta = 'myTextarea' + x;
+        xinha_editors.push(ta);
+
+        var div = document.createElement('div');
+        div.className = 'area_holder';
+
+        var txta = document.createElement('textarea');
+        txta.id   = ta;
+        txta.name = ta;
+        txta.value = lipsum;
+        txta.style.width="100%";
+        txta.style.height="420px";
+
+        div.appendChild(txta);
+        dest.appendChild(div);
+      }
+
+// Create a default configuration to be used by all the editors.
+      settings = top.frames["menu"].settings;
+      xinha_config = new Xinha.Config();
+      xinha_config.width = settings.width;
+      xinha_config.height = settings.height;
+      xinha_config.sizeIncludesBars = settings.sizeIncludesBars;
+      xinha_config.statusBar = settings.statusBar;
+      xinha_config.mozParaHandler = settings.mozParaHandler;
+      xinha_config.undoSteps = settings.undoSteps;
+      xinha_config.baseHref = settings.baseHref;
+      xinha_config.stripBaseHref = settings.stripBaseHref;
+      xinha_config.stripSelfNamedAnchors = settings.stripSelfNamedAnchors;
+      xinha_config.only7BitPrintablesInURLs = settings.only7BitPrintablesInURLs;
+      xinha_config.sevenBitClean = settings.sevenBitClean;
+      xinha_config.killWordOnPaste = settings.killWordOnPaste;
+      xinha_config.flowToolbars = settings.flowToolbars;
+      xinha_config.showLoading = settings.showLoading;
+
+      if (typeof CharCounter != 'undefined') {
+        xinha_config.CharCounter.showChar = settings.showChar;
+        xinha_config.CharCounter.showWord = settings.showWord;
+        xinha_config.CharCounter.showHtml = settings.showHtml;
+      }
+
+      if (typeof CharacterMap != 'undefined') xinha_config.CharacterMap.mode = settings.CharacterMapMode;
+      if (typeof ListType != 'undefined') xinha_config.ListType.mode = settings.ListTypeMode;
+
+      if(typeof CSS != 'undefined') {
+        xinha_config.pageStyle = "@import url(custom.css);";
+      }
+
+      if(typeof Stylist != 'undefined') {
+        // We can load an external stylesheet like this - NOTE : YOU MUST GIVE AN ABSOLUTE URL
+        //  otherwise it won't work!
+        xinha_config.stylistLoadStylesheet(document.location.href.replace(/[^\/]*\.html/, 'stylist.css'));
+
+        // Or we can load styles directly
+        xinha_config.stylistLoadStyles('p.red_text { color:red }');
+
+        // If you want to provide "friendly" names you can do so like
+        // (you can do this for stylistLoadStylesheet as well)
+        xinha_config.stylistLoadStyles('p.pink_text { color:pink }', {'p.pink_text' : 'Pretty Pink'});
+      }
+
+      if(typeof DynamicCSS != 'undefined') {
+        xinha_config.pageStyle = "@import url(dynamic.css);";
+      }
+
+      if(typeof InsertWords != 'undefined') {
+        // Register the keyword/replacement list
+        var keywrds1 = new Object();
+        var keywrds2 = new Object();
+
+        keywrds1['-- Dropdown Label --'] = '';
+        keywrds1['onekey'] = 'onevalue';
+        keywrds1['twokey'] = 'twovalue';
+        keywrds1['threekey'] = 'threevalue';
+
+        keywrds2['-- Insert Keyword --'] = '';
+        keywrds2['Username'] = '%user%';
+        keywrds2['Last login date'] = '%last_login%';
+        xinha_config.InsertWords = {
+          combos : [ { options: keywrds1, context: "body" },
+                     { options: keywrds2, context: "li" } ]
+        }
+      }
+
+      if(typeof Filter != 'undefined') {
+        xinha_config.Filters = ["Word", "Paragraph"];
+      }
+
+// First create editors for the textareas.
+// You can do this in two ways, either
+//   xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
+// if you want all the editor objects to use the same set of plugins, OR;
+//   xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config);
+//   xinha_editors['myTextarea0'].registerPlugins(['Stylist','FullScreen']);
+//   xinha_editors['myTextarea1'].registerPlugins(['CSS','SuperClean']);
+// if you want to use a different set of plugins for one or more of the editors.
+      xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
+
+// If you want to change the configuration variables of any of the editors,
+// this is the place to do that, for example you might want to
+// change the width and height of one of the editors, like this...
+//   xinha_editors['myTextarea0'].config.width  = '640px';
+//   xinha_editors['myTextarea0'].config.height = '480px';
+
+// Finally we "start" the editors, this turns the textareas into Xinha editors.
+      Xinha.startEditors(xinha_editors);
+    }
+
+// javascript submit handler
+// this shows how to create a javascript submit button that works with the htmleditor.
+    submitHandler = function(formname) {
+      var form = document.getElementById(formname);
+      // in order for the submit to work both of these methods have to be called.
+      form.onsubmit();
+      window.parent.menu.document.getElementById('myTextarea0').value = document.getElementById('myTextarea0').value;
+      form.submit();
+      return true;
+    }
+
+    window.onload = xinha_init;
+//    window.onunload = Xinha.collectGarbageForIE;
+  </script>
+</head>
+
+<body>
+  <form id="to_submit" name="to_submit" method="post" action="ext_example-dest.php">
+  <div id="editors_here" name="editors_here"></div>
+  <button type="button" onclick="submitHandler('to_submit');">Submit</button>
+  <textarea id="errors" name="errors" style="width:100%; height:100px; background:silver;"></textarea><!-- style="display:none;" -->
+  </form>
+</body>
+</html>

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example-dest.php
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example-dest.php?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example-dest.php (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example-dest.php Fri Sep 21 03:36:30 2007
@@ -0,0 +1,23 @@
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <title>Example of Xinha</title>
+  <link rel="stylesheet" href="full_example.css" />
+</head>
+</body>
+<?php
+if (get_magic_quotes_gpc()) {
+  $_REQUEST = array_map('stripslashes',$_REQUEST);
+}
+// or in php.ini
+//; Magic quotes for incoming GET/POST/Cookie data.
+//magic_quotes_gpc = Off
+  foreach($_REQUEST as $key=>$value){
+    if(substr($key,0,10) == 'myTextarea') {
+      echo '<h3 style="border-bottom:1px solid black;">'.$key.'(source):</h3><xmp style="border:1px solid black; width: 100%; height: 200px; overflow: auto;">'.$value.'</xmp><br/>';
+      echo '<h3 style="border-bottom:1px solid black;">'.$key.'(preview):</h3>'.$value;
+    }
+  }
+?>
+</body>
+</html>

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example-menu.php
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example-menu.php?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example-menu.php (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example-menu.php Fri Sep 21 03:36:30 2007
@@ -0,0 +1,331 @@
+<?PHP
+  $LocalPluginPath = dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'plugins';
+  $LocalSkinPath = dirname(dirname(__File__)).DIRECTORY_SEPARATOR.'skins';
+?>
+<html>
+<head>
+
+  <!--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
+    --  Xinha example menu.  This file is used by full_example.html within a
+    --  frame to provide a menu for generating example editors using
+    --  full_example-body.html, and full_example.js.
+    --
+    --  $HeadURL: http://svn.xinha.python-hosting.com/trunk/examples/ext_example-menu.php $
+    --  $LastChangedDate: 2007-02-07 20:12:42 +0100 (Mi, 07 Feb 2007) $
+    --  $LastChangedRevision: 715 $
+    --  $LastChangedBy: htanaka $
+    --------------------------------------------------------------------------->
+
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <title>Example of Xinha</title>
+  <link rel="stylesheet" href="full_example.css" />
+  <style type="text/css">
+    h1 {font: bold 22px "Staccato222 BT", cursive;}
+    form, p {margin: 0px; padding: 0px;}
+    label { display:block;}
+  </style>
+  <script language="JavaScript" type="text/javascript">
+  var settings = null;
+  settings = {
+    width: "auto",
+    height: "auto",
+    sizeIncludesBars: true,
+    statusBar: true,
+    mozParaHandler: "best",
+    undoSteps: 20,
+    baseHref: null,
+    stripBaseHref: true,
+    stripSelfNamedAnchors: true,
+    only7BitPrintablesInURLs: true,
+    sevenBitClean: false,
+    killWordOnPaste: true,
+    flowToolbars: true,
+    CharacterMapMode: "popup",
+    ListTypeMode: "toolbar",
+    showLoading: false,
+    showChar: true,
+    showWord: true,
+    showHtml: true
+  };
+
+
+    function getCookieVal (offset) {
+      var endstr = document.cookie.indexOf (";", offset);
+      if (endstr == -1)
+        endstr = document.cookie.length;
+      return unescape(document.cookie.substring(offset, endstr));
+    }
+
+    function getCookie (name) {
+      var arg = name + "=";
+      var alen = arg.length;
+      var clen = document.cookie.length;
+      var i = 0;
+      while (i < clen) {
+        var j = i + alen;
+        if (document.cookie.substring(i, j) == arg)
+          return getCookieVal (j);
+        i = document.cookie.indexOf(" ", i) + 1;
+        if (i == 0) break;
+      }
+      return null;
+    }
+
+    function setCookie (name, value) {
+      var argv = setCookie.arguments;
+      var argc = setCookie.arguments.length;
+      var expires = (argc > 2) ? argv[2] : null;
+      var path = (argc > 3) ? argv[3] : null;
+      var domain = (argc > 4) ? argv[4] : null;
+      var secure = (argc > 5) ? argv[5] : false;
+      document.cookie = name + "=" + escape (value) +
+        ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
+        ((path == null) ? "" : ("; path=" + path)) +
+        ((domain == null) ? "" : ("; domain=" + domain)) +
+        ((secure == true) ? "; secure" : "");
+    }
+
+  function _onResize() {
+    var sHeight;
+    if (window.innerHeight) sHeight = window.innerHeight;
+    else if (document.body && document.body.offsetHeight) sHeight = document.body.offsetHeight;
+    else return;
+    if (sHeight>270) {
+      sHeight = sHeight - 245;
+    } else {
+      sHeight = 30
+    }
+    var div = document.getElementById("div_plugins");
+    div.style.height = sHeight + "px";
+  }
+
+function Dialog(url, action, init) {
+	if (typeof init == "undefined") {
+		init = window;	// pass this window object by default
+	}
+	Dialog._geckoOpenModal(url, action, init);
+};
+
+Dialog._parentEvent = function(ev) {
+	setTimeout( function() { if (Dialog._modal && !Dialog._modal.closed) { Dialog._modal.focus() } }, 50);
+	if (Dialog._modal && !Dialog._modal.closed) {
+		agt = navigator.userAgent.toLowerCase();
+		is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
+		if (is_ie) {
+		 	ev.cancelBubble = true;
+			ev.returnValue = false;
+		} else {
+			ev.preventDefault();
+			ev.stopPropagation();
+		}
+	}
+};
+
+
+// should be a function, the return handler of the currently opened dialog.
+Dialog._return = null;
+
+// constant, the currently opened dialog
+Dialog._modal = null;
+
+// the dialog will read it's args from this variable
+Dialog._arguments = null;
+
+Dialog._geckoOpenModal = function(url, action, init) {
+	var dlg = window.open(url, "hadialog",
+			      "toolbar=no,menubar=no,personalbar=no,width=10,height=10," +
+			      "scrollbars=no,resizable=yes,modal=yes,dependable=yes");
+	Dialog._modal = dlg;
+	Dialog._arguments = init;
+
+	// capture some window's events
+	function capwin(w) {
+//		Xinha._addEvent(w, "click", Dialog._parentEvent);
+//		Xinha._addEvent(w, "mousedown", Dialog._parentEvent);
+//		Xinha._addEvent(w, "focus", Dialog._parentEvent);
+	};
+	// release the captured events
+	function relwin(w) {
+//		Xinha._removeEvent(w, "click", Dialog._parentEvent);
+//		Xinha._removeEvent(w, "mousedown", Dialog._parentEvent);
+//		Xinha._removeEvent(w, "focus", Dialog._parentEvent);
+	};
+	capwin(window);
+	// capture other frames
+	for (var i = 0; i < window.frames.length; capwin(window.frames[i++]));
+	// make up a function to be called when the Dialog ends.
+	Dialog._return = function (val) {
+		if (val && action) {
+			action(val);
+		}
+		relwin(window);
+		// capture other frames
+		for (var i = 0; i < window.frames.length; relwin(window.frames[i++]));
+		Dialog._modal = null;
+	};
+};
+
+  function fExtended () {
+    Dialog("Extended.html", function(param) {
+      if(param) {
+        settings.width = param["width"];
+        settings.height = param["height"];
+        settings.sizeIncludesBars = (param["sizeIncludesBars"]=="true");
+        settings.statusBar = (param["statusBar"]=="true");
+        settings.mozParaHandler = param["mozParaHandler"];
+        settings.undoSteps = param["undoSteps"];
+        settings.baseHref = param["baseHref"];
+        settings.stripBaseHref = (param["stripBaseHref"]=="true");
+        settings.stripSelfNamedAnchors = (param["stripSelfNamedAnchors"]=="true");
+        settings.only7BitPrintablesInURLs = (param["only7BitPrintablesInURLs"]=="true");
+        settings.sevenBitClean = (param["sevenBitClean"]=="true");
+        settings.killWordOnPaste = (param["killWordOnPaste"]=="true");
+        settings.flowToolbars = (param["flowToolbars"]=="true");
+        settings.CharacterMapMode = param["CharacterMapMode"];
+        settings.ListTypeMode = param["ListTypeMode"];
+        settings.showLoading = (param["showLoading"]=="true");
+        settings.showChar = (param["showChar"]=="true");
+        settings.showWord = (param["showWord"]=="true");
+        settings.showHtml = (param["showHtml"]=="true");
+      }
+    }, settings );
+  }
+
+  function init(){
+    var co = getCookie('co_ext_Xinha');
+    if(co!=null){
+      var co_values;
+      var co_entries = co.split('###');
+      for (var i in co_entries) {
+        co_values = co_entries[i].split('=');
+        if(co_values[0]=='plugins') {
+          for(var x = 0; x < document.forms[0].plugins.length; x++) {
+            if(co_values[1].indexOf(document.forms[0].plugins[x].value)!=-1) {
+              document.forms[0].plugins[x].checked = true;
+            }
+          }
+        } else if(co_values[0]!='') {
+          document.getElementById(co_values[0]).value = co_values[1];
+        }
+      }
+    }
+    _onResize();
+  };
+
+  window.onresize = _onResize;
+  window.onload = init;
+  </script>
+</head>
+
+<body>
+  <form action="ext_example-body.html" target="body" name="fsettings" id="fsettings">
+  <h1>Xinha Example</h1>
+    <fieldset>
+      <legend>Settings</legend>
+        <label>
+          Number of Editors: <input type="text" name="num" id="num" value="1" style="width:25;" maxlength="2"/>
+        </label>
+        <label>
+          Language:
+          <select name="lang" id="lang">
+          <option value="en">English</option>
+          <option value="de">German</option>
+          <option value="fr">French</option>
+          <option value="it">Italian</option>
+          <option value="no">Norwegian</option>
+          <option value="pl">Polish</option>
+          <option value="ja">Japanese</option>
+          </select>
+        </label>
+        <label>
+          Skin:
+          <select name="skin" id="skin">
+          <option value="">-- no skin --</option>
+<?php
+	$d = @dir($LocalSkinPath);
+	while (false !== ($entry = $d->read()))  //not a dot file or directory
+	{	if(substr($entry,0,1) != '.')
+		{ echo '<option value="' . $entry . '"> ' . $entry . '</option>'."\n";
+		}
+	}
+	$d->close();
+?>
+          </select>
+        </label>
+        <center><input type="button" value="extended Settings" onClick="fExtended();" /></center>
+
+    </fieldset>
+    <fieldset>
+      <legend>Plugins</legend>
+      <div id="div_plugins" style="width:100%; overflow:auto">
+<?php
+	$d = @dir($LocalPluginPath);
+	$dir_array = array();
+	while (false !== ($entry = $d->read()))  //not a dot file or directory
+	{	if(substr($entry,0,1) != '.')
+		{
+			$dir_array[] = $entry;
+		}
+	}
+	$d->close();
+	sort($dir_array);
+	foreach ($dir_array as $entry)
+	{
+		echo '<label><input type="checkbox" name="plugins" id="plugins" value="' . $entry . '"> ' . $entry . '</label>'."\n";
+	}
+
+?>
+      </div>
+    </fieldset>
+    <center><button type="submit">reload editor</button></center>
+
+        <textarea id="myTextarea0" style="display:none">
+          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+          Aliquam et tellus vitae justo varius placerat. Suspendisse iaculis
+          velit semper dolor. Donec gravida tincidunt mi. Curabitur tristique
+          ante elementum turpis. Aliquam nisl. Nulla posuere neque non
+          tellus. Morbi vel nibh. Cum sociis natoque penatibus et magnis dis
+          parturient montes, nascetur ridiculus mus. Nam nec wisi. In wisi.
+          Curabitur pharetra bibendum lectus.</p>
+
+          <ul>
+            <li> Phasellus et massa sed diam viverra semper.  </li>
+            <li> Mauris tincidunt felis in odio.              </li>
+            <li> Nulla placerat nunc ut pede.                 </li>
+            <li> Vivamus ultrices mi sit amet urna.           </li>
+            <li> Quisque sed augue quis nunc laoreet volutpat.</li>
+            <li> Nunc sit amet metus in tortor semper mattis. </li>
+          </ul>
+        </textarea>
+
+  </form>
+  <script type="text/javascript">
+    top.frames["body"].location.href = document.location.href.replace(/ext_example-menu\.php.*/, 'ext_example-body.html')
+    var _oldSubmitHandler = null;
+    if (document.forms[0].onsubmit != null) {
+      _oldSubmitHandler = document.forms[0].onsubmit;
+    }
+    function frame_onSubmit(){
+      var thenewdate = new Date ();
+      thenewdate.setTime(thenewdate.getTime() + (5*24*60*60*1000));
+      var co_value = 'skin=' + document.getElementById('skin').options[document.getElementById('skin').selectedIndex].value + '###' +
+                     'lang=' + document.getElementById('lang').options[document.getElementById('lang').selectedIndex].value + '###' +
+                     'num=' + document.getElementById('num').value + '###';
+      var s_value='';
+      for(var x = 0; x < document.forms[0].plugins.length; x++) {
+        if(document.forms[0].plugins[x].checked)
+          s_value += document.forms[0].plugins[x].value + '/';
+      }
+      if(s_value!='') {
+        co_value += 'plugins=' + s_value + '###'
+      }
+      setCookie('co_ext_Xinha', co_value, thenewdate);
+      if (_oldSubmitHandler != null) {
+        _oldSubmitHandler();
+      }
+    }
+    document.forms[0].onsubmit = frame_onSubmit;
+  </script>
+
+</body>
+</html>

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example.html
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example.html?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example.html (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/ext_example.html Fri Sep 21 03:36:30 2007
@@ -0,0 +1,16 @@
+<html>
+
+  <!--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
+    --  Xinha example frameset.
+    --
+    --  $HeadURL: http://svn.xinha.python-hosting.com/trunk/examples/ext_example.html $
+    --  $LastChangedDate: 2007-01-19 23:24:36 +0100 (Fr, 19 Jan 2007) $
+    --  $LastChangedRevision: 677 $
+    --  $LastChangedBy: ray $
+    --------------------------------------------------------------------------->
+
+  <frameset cols="240,*">
+    <frame src="ext_example-menu.php" name="menu" id="menu">
+    <frame src="about:blank" name="body" id="body">
+  </frameset>
+</html>

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/full_example.css
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/full_example.css?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/full_example.css (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/full_example.css Fri Sep 21 03:36:30 2007
@@ -0,0 +1,48 @@
+   /*--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
+    --  Xinha example CSS file.  This is ripped from Trac ;)
+    --
+    --  $HeadURL: http://svn.xinha.python-hosting.com/trunk/examples/full_example.css $
+    --  $LastChangedDate: 2007-01-19 23:24:36 +0100 (Fr, 19 Jan 2007) $
+    --  $LastChangedRevision: 677 $
+    --  $LastChangedBy: ray $
+    --------------------------------------------------------------------------*/
+
+ body {
+   background: #fff;
+   color: #000;
+   margin: 10px;
+  }
+  body, th, td {
+   font: normal 13px verdana,arial,'Bitstream Vera Sans',helvetica,sans-serif;
+  }
+  h1, h2, h3, h4 {
+   font-family: arial,verdana,'Bitstream Vera Sans',helvetica,sans-serif;
+   font-weight: bold;
+   letter-spacing: -0.018em;
+  }
+  h1 { font-size: 21px; margin: .15em 1em 0 0 }
+  h2 { font-size: 16px; margin: 2em 0 .5em; }
+  h3 { font-size: 14px; margin: 1.5em 0 .5em; }
+  hr { border: none;  border-top: 1px solid #ccb; margin: 2em 0; }
+  address { font-style: normal }
+  img { border: none }
+
+  :link, :visited {
+   text-decoration: none;
+   color: #b00;
+   border-bottom: 1px dotted #bbb;
+  }
+  :link:hover, :visited:hover {
+   background-color: #eee;
+   color: #555;
+  }
+  h1 :link, h1 :visited ,h2 :link, h2 :visited, h3 :link, h3 :visited,
+  h4 :link, h4 :visited, h5 :link, h5 :visited, h6 :link, h6 :visited {
+   color: inherit;
+  }
+
+  .area_holder
+  {
+    margin:10px;
+  }
+  label {font-size: 11px;}
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/full_example.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/full_example.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/full_example.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/full_example.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,97 @@
+var num=1;
+if(window.parent&&window.parent!=window){
+var f=window.parent.menu.document.forms[0];
+_editor_lang=f.lang[f.lang.selectedIndex].value;
+_editor_skin=f.skin[f.skin.selectedIndex].value;
+num=parseInt(f.num.value);
+if(isNaN(num)){
+num=1;
+f.num.value=1;
+}
+xinha_plugins=[];
+for(var x=0;x<f.plugins.length;x++){
+if(f.plugins[x].checked){
+xinha_plugins.push(f.plugins[x].value);
+}
+}
+}
+xinha_editors=[];
+for(var x=0;x<num;x++){
+var ta="myTextarea"+x;
+xinha_editors.push(ta);
+}
+xinha_config=function(){
+var _1=new HTMLArea.Config();
+if(typeof CSS!="undefined"){
+_1.pageStyle="@import url(custom.css);";
+}
+if(typeof Stylist!="undefined"){
+_1.stylistLoadStylesheet(document.location.href.replace(/[^\/]*\.html/,"stylist.css"));
+_1.stylistLoadStyles("p.red_text { color:red }");
+_1.stylistLoadStyles("p.pink_text { color:pink }",{"p.pink_text":"Pretty Pink"});
+}
+if(typeof DynamicCSS!="undefined"){
+_1.pageStyle="@import url(dynamic.css);";
+}
+if(typeof InsertWords!="undefined"){
+var _2=new Object();
+var _3=new Object();
+_2["-- Dropdown Label --"]="";
+_2["onekey"]="onevalue";
+_2["twokey"]="twovalue";
+_2["threekey"]="threevalue";
+_3["-- Insert Keyword --"]="";
+_3["Username"]="%user%";
+_3["Last login date"]="%last_login%";
+_1.InsertWords={combos:[{options:_2,context:"body"},{options:_3,context:"li"}]};
+}
+if(typeof ListType!="undefined"){
+if(window.parent&&window.parent!=window){
+var f=window.parent.menu.document.forms[0];
+_1.ListType.mode=f.elements["ListTypeMode"].options[f.elements["ListTypeMode"].selectedIndex].value;
+}
+}
+if(typeof CharacterMap!="undefined"){
+if(window.parent&&window.parent!=window){
+var f=window.parent.menu.document.forms[0];
+_1.CharacterMap.mode=f.elements["CharacterMapMode"].options[f.elements["CharacterMapMode"].selectedIndex].value;
+}
+}
+if(typeof Filter!="undefined"){
+xinha_config.Filters=["Word","Paragraph"];
+}
+return _1;
+};
+var f=document.forms[0];
+f.innerHTML="";
+var lipsum=document.getElementById("lipsum").innerHTML;
+for(var x=0;x<num;x++){
+var ta="myTextarea"+x;
+var div=document.createElement("div");
+div.className="area_holder";
+var txta=document.createElement("textarea");
+txta.id=ta;
+txta.name=ta;
+txta.value=lipsum;
+txta.style.width="100%";
+txta.style.height="420px";
+div.appendChild(txta);
+f.appendChild(div);
+}
+var submit=document.createElement("input");
+submit.type="submit";
+submit.id="submit";
+submit.value="submit";
+f.appendChild(submit);
+var _oldSubmitHandler=null;
+if(document.forms[0].onsubmit!=null){
+_oldSubmitHandler=document.forms[0].onsubmit;
+}
+function frame_onSubmit(){
+alert(document.getElementById("myTextarea0").value);
+if(_oldSubmitHandler!=null){
+_oldSubmitHandler();
+}
+}
+document.forms[0].onsubmit=frame_onSubmit;
+

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/simple_example.html
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/simple_example.html?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/simple_example.html (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/simple_example.html Fri Sep 21 03:36:30 2007
@@ -0,0 +1,138 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Simple example of Xinha</title>
+<script type="text/javascript">
+/************************************************************************
+ * Please refer to http://xinha.python-hosting.com/wiki/NewbieGuide
+ ************************************************************************
+ * You must set _editor_url to the URL (including trailing slash) where
+ * where xinha is installed, it's highly recommended to use an absolute URL
+ *  eg: _editor_url = "/path/to/xinha/";
+ * You may try a relative URL if you wish]
+ *  eg: _editor_url = "../";  
+ * in this example we do a little regular expression to find the absolute path.
+ ************************************************************************/
+var _editor_url  = document.location.href.replace(/examples\/simple_example\.html.*/, '')
+// And the language we need to use in the editor.
+var _editor_lang = "en";
+</script>
+<!-- Load up the actual editor core -->
+<script type="text/javascript" src="../XinhaCore.js"></script>
+<script type="text/javascript">
+/************************************************************************
+ * Plugins you will be using in the editors on this page.
+ * List all the plugins you will need, even if not all the editors will
+ * use all the plugins.
+ ************************************************************************
+ * Please refer to http://xinha.python-hosting.com/wiki/Plugins for the
+ * list of availables plugins
+ ************************************************************************/
+var xinha_plugins =
+[
+ 'CharacterMap',
+ 'ContextMenu',
+ 'FullScreen',
+ 'ListType',
+ 'SpellChecker',
+ 'Stylist',
+ 'SuperClean',
+ 'TableOperations'
+];
+/************************************************************************
+ * Names of the textareas you will be turning into editors
+ ************************************************************************/
+var xinha_editors =
+[
+  'myTextArea',
+  'anotherOne'
+];
+/************************************************************************
+ * Initialisation function
+ ************************************************************************/
+function xinha_init()
+{
+  // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :)
+  if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
+  /*************************************************************************
+   * We create a default configuration to be used by all the editors.
+   * If you wish to configure some of the editors differently this will be
+   * done later after editors are initiated.
+   ************************************************************************
+   * Please refer to http://xinha.python-hosting.com/wiki/Documentation/Customise
+   * for the configuration parameters
+   ************************************************************************/
+  var xinha_config = new Xinha.Config();
+  /************************************************************************
+   * We first create editors for the textareas.
+   * You can do this in two ways, either
+   *
+   *   xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
+   *
+   * if you want all the editor objects to use the same set of plugins, OR;
+   *
+   *   xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config);
+   *   xinha_editors['myTextArea'].registerPlugins(['Stylist','FullScreen']);
+   *   xinha_editors['anotherOne'].registerPlugins(['CSS','SuperClean']);
+   *
+   * if you want to use a different set of plugins for one or more of the
+   * editors.
+   ************************************************************************/
+  xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
+  /************************************************************************
+   * If you want to change the configuration variables of any of the
+   * editors,  this is the place to do that, for example you might want to
+   * change the width and height of one of the editors, like this...
+   ************************************************************************/
+  xinha_editors.myTextArea.config.width = '640px';
+  xinha_editors.myTextArea.config.height = '480px';
+  /************************************************************************
+   * Or remove the statusbar on the other one, like this...
+   * For every possible configuration, please refer to
+   * http://xinha.python-hosting.com/wiki/Documentation/ConfigVariablesList
+   ************************************************************************/
+  xinha_editors.anotherOne.config.statusBar = false;
+  /************************************************************************
+   * Finally we "start" the editors, this turns the textareas into
+   * Xinha editors.
+   ************************************************************************/
+  Xinha.startEditors(xinha_editors);
+}
+window.onload = xinha_init;
+</script>
+<link type="text/css" rel="stylesheet" title="blue-look" href="../skins/blue-look/skin.css">
+<link type="text/css" rel="alternate stylesheet" title="green-look" href="../skins/green-look/skin.css">
+<link type="text/css" rel="alternate stylesheet" title="xp-blue" href="../skins/xp-blue/skin.css">
+<link type="text/css" rel="alternate stylesheet" title="xp-green" href="../skins/xp-green/skin.css">
+<link type="text/css" rel="alternate stylesheet" title="inditreuse" href="../skins/inditreuse/skin.css">
+<link type="text/css" rel="alternate stylesheet" title="blue-metallic" href="../skins/blue-metallic/skin.css">
+</head>
+
+<body>
+
+<form onsubmit="alert(this.myTextArea.value); alert(this.anotherOne.value); return false;">
+<textarea id="myTextArea" name="myTextArea" rows="10" cols="80" style="width:100%">
+&lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+Aliquam et tellus vitae justo varius placerat. Suspendisse iaculis
+velit semper dolor. Donec gravida tincidunt mi. Curabitur tristique
+ante elementum turpis. Aliquam nisl. Nulla posuere neque non
+tellus. Morbi vel nibh. Cum sociis natoque penatibus et magnis dis
+parturient montes, nascetur ridiculus mus. Nam nec wisi. In wisi.
+Curabitur pharetra bibendum lectus.&lt;/p&gt;
+</textarea>
+<textarea id="anotherOne" name="anotherOne" rows="10" cols="80" style="width:100%">
+&lt;ul&gt;
+&lt;li&gt; Phasellus et massa sed diam viverra semper.  &lt;/li&gt;
+&lt;li&gt; Mauris tincidunt felis in odio.              &lt;/li&gt;
+&lt;li&gt; Nulla placerat nunc ut pede.                 &lt;/li&gt;
+&lt;li&gt; Vivamus ultrices mi sit amet urna.           &lt;/li&gt;
+&lt;li&gt; Quisque sed augue quis nunc laoreet volutpat.&lt;/li&gt;
+&lt;li&gt; Nunc sit amet metus in tortor semper mattis. &lt;/li&gt;
+&lt;/ul&gt;
+</textarea>
+<input type="submit">
+</form>
+
+</body>
+</html>
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/stylist.css
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/stylist.css?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/stylist.css (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/stylist.css Fri Sep 21 03:36:30 2007
@@ -0,0 +1,31 @@
+  /*--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
+    --  Stylist plugin example CSS file.  Used by full_example.js
+    --  when the Stylist plugin is included in an auto-generated example.
+    --
+    --  $HeadURL: http://svn.xinha.python-hosting.com/trunk/examples/stylist.css $
+    --  $LastChangedDate: 2007-01-19 23:24:36 +0100 (Fr, 19 Jan 2007) $
+    --  $LastChangedRevision: 677 $
+    --  $LastChangedBy: ray $
+    --------------------------------------------------------------------------*/
+
+.bluetext
+{
+  color:blue;
+}
+
+p.blue_paragraph
+{
+  color:darkblue;
+}
+
+li.green_list_item
+{
+  color:green;
+}
+
+h1.webdings_lvl_1
+{
+  font-family:webdings;
+}
+
+img.polaroid { border:1px solid black; background-color:white; padding:10px; padding-bottom:30px; }
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/testbed.html
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/testbed.html?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/testbed.html (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/examples/testbed.html Fri Sep 21 03:36:30 2007
@@ -0,0 +1,191 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html
+     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+
+  <!--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
+    --  Xinha example usage.  This file shows how a developer might make use of
+    --  Xinha, it forms the primary example file for the entire Xinha project.
+    --  This file can be copied and used as a template for development by the
+    --  end developer who should simply removed the area indicated at the bottom
+    --  of the file to remove the auto-example-generating code and allow for the
+    --  use of the file as a boilerplate.
+    --
+    --  $HeadURL: http://svn.xinha.python-hosting.com/trunk/examples/testbed.html $
+    --  $LastChangedDate: 2007-01-19 23:24:36 +0100 (Fr, 19 Jan 2007) $
+    --  $LastChangedRevision: 677 $
+    --  $LastChangedBy: ray $
+    --------------------------------------------------------------------------->
+
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <title>Example of Xinha</title>
+  <link rel="stylesheet" href="full_example.css" />
+
+  <script type="text/javascript">
+    // You must set _editor_url to the URL (including trailing slash) where
+    // where xinha is installed, it's highly recommended to use an absolute URL
+    //  eg: _editor_url = "/path/to/xinha/";
+    // You may try a relative URL if you wish]
+    //  eg: _editor_url = "../";
+    // in this example we do a little regular expression to find the absolute path.
+    _editor_url  = document.location.href.replace(/examples\/.*/, '')
+    _editor_lang = "en";      // And the language we need to use in the editor.
+  </script>
+
+  <!-- Load up the actual editor core -->
+  <script type="text/javascript" src="../htmlarea.js"></script>
+
+  <script type="text/javascript">
+    xinha_editors = null;
+    xinha_init    = null;
+    xinha_config  = null;
+    xinha_plugins = null;
+
+    // This contains the names of textareas we will make into Xinha editors
+    xinha_init = xinha_init ? xinha_init : function()
+    {
+      /** STEP 1 ***************************************************************
+       * First, what are the plugins you will be using in the editors on this
+       * page.  List all the plugins you will need, even if not all the editors
+       * will use all the plugins.
+       ************************************************************************/
+
+      xinha_plugins = xinha_plugins ? xinha_plugins :
+      [
+        'CharacterMap', 'SpellChecker', 'Linker'
+      ];
+             // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :)
+             if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
+
+      /** STEP 2 ***************************************************************
+       * Now, what are the names of the textareas you will be turning into
+       * editors?
+       ************************************************************************/
+
+      xinha_editors = xinha_editors ? xinha_editors :
+      [
+        'myTextArea'
+      ];
+
+      /** STEP 3 ***************************************************************
+       * We create a default configuration to be used by all the editors.
+       * If you wish to configure some of the editors differently this will be
+       * done in step 4.
+       *
+       * If you want to modify the default config you might do something like this.
+       *
+       *   xinha_config = new Xinha.Config();
+       *   xinha_config.width  = 640;
+       *   xinha_config.height = 420;
+       *
+       *************************************************************************/
+
+       xinha_config = xinha_config ? xinha_config : new Xinha.Config();
+       xinha_config.fullPage = true;
+       xinha_config.CharacterMap.mode = 'panel';
+/*
+       // We can load an external stylesheet like this - NOTE : YOU MUST GIVE AN ABSOLUTE URL
+      //  otherwise it won't work!
+      xinha_config.stylistLoadStylesheet(document.location.href.replace(/[^\/]*\.html/, 'stylist.css'));
+
+      // Or we can load styles directly
+      xinha_config.stylistLoadStyles('p.red_text { color:red }');
+
+      // If you want to provide "friendly" names you can do so like
+      // (you can do this for stylistLoadStylesheet as well)
+      xinha_config.stylistLoadStyles('p.pink_text { color:pink }', {'p.pink_text' : 'Pretty Pink'});
+*/
+      /** STEP 3 ***************************************************************
+       * We first create editors for the textareas.
+       *
+       * You can do this in two ways, either
+       *
+       *   xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
+       *
+       * if you want all the editor objects to use the same set of plugins, OR;
+       *
+       *   xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config);
+       *   xinha_editors['myTextArea'].registerPlugins(['Stylist','FullScreen']);
+       *   xinha_editors['anotherOne'].registerPlugins(['CSS','SuperClean']);
+       *
+       * if you want to use a different set of plugins for one or more of the
+       * editors.
+       ************************************************************************/
+
+      xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
+
+      /** STEP 4 ***************************************************************
+       * If you want to change the configuration variables of any of the
+       * editors,  this is the place to do that, for example you might want to
+       * change the width and height of one of the editors, like this...
+       *
+       *   xinha_editors.myTextArea.config.width  = 640;
+       *   xinha_editors.myTextArea.config.height = 480;
+       *
+       ************************************************************************/
+
+
+      /** STEP 5 ***************************************************************
+       * Finally we "start" the editors, this turns the textareas into
+       * Xinha editors.
+       ************************************************************************/
+
+      Xinha.startEditors(xinha_editors);
+      window.onload = null;
+    }
+
+    window.onload   = xinha_init;
+    // window.onunload = Xinha.collectGarbageForIE;
+  </script>
+</head>
+
+<body>
+
+  <form action="javascript:var x = document.getElementById('editors_here');alert(x.myTextArea.value);" id="editors_here" onsubmit="alert(this.myTextArea.value);">
+    <textarea id="myTextArea" name="myTextArea" style="width:100%;height:320px;">
+      &lt;html&gt;
+      &lt;head&gt;
+        &lt;title&gt;Hello&lt;/title&gt;
+        &lt;style type="text/css"&gt;
+          li { color:red; }
+        &lt;/style&gt;
+      &lt;/head&gt;
+      &lt;body&gt;
+      &lt;img src="http://xinha.python-hosting.com/trac/logo.jpg" usemap="#m1"&gt;
+      &lt;map name="m1"&gt;
+      &lt;area shape="rect" coords="137,101,255,124" href="http://www.mydomain.com"&gt;
+      &lt;/map&gt;
+
+      &lt;p&gt;
+        Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+        Aliquam et tellus vitae justo varius placerat. Suspendisse iaculis
+        velit semper dolor. Donec gravida tincidunt mi. Curabitur tristique
+        ante elementum turpis. Aliquam nisl. Nulla posuere neque non
+        tellus. Morbi vel nibh. Cum sociis natoque penatibus et magnis dis
+        parturient montes, nascetur ridiculus mus. Nam nec wisi. In wisi.
+        Curabitur pharetra bibendum lectus.
+      &lt;/p&gt;
+
+      &lt;ul&gt;
+        &lt;li&gt; Phasellus et massa sed diam viverra semper.  &lt;/li&gt;
+        &lt;li&gt; Mauris tincidunt felis in odio.              &lt;/li&gt;
+        &lt;li&gt; Nulla placerat nunc ut pede.                 &lt;/li&gt;
+        &lt;li&gt; Vivamus ultrices mi sit amet urna.           &lt;/li&gt;
+        &lt;li&gt; Quisque sed augue quis nunc laoreet volutpat.&lt;/li&gt;
+        &lt;li&gt; Nunc sit amet metus in tortor semper mattis. &lt;/li&gt;
+      &lt;/ul&gt;
+      &lt;/body&gt;
+      &lt;/html&gt;
+    </textarea>
+
+    <input type="submit" /> <input type="reset" />
+  </form>
+  <script language="javascript">
+    document.write(document.compatMode);
+  </script>
+  <a href="#" onclick="xinha_editors.myTextArea.hidePanels();">Hide</a>
+  <a href="#" onclick="xinha_editors.myTextArea.showPanels();">Show</a>
+</body>
+</html>
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/htmlarea.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/htmlarea.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/htmlarea.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/htmlarea.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,23 @@
+ 
+  /*--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
+    --  COMPATABILITY FILE
+    --  htmlarea.js is now XinhaCore.js  
+    --
+    --  $HeadURL: http://svn.xinha.python-hosting.com/trunk/htmlarea.js $
+    --  $LastChangedDate: 2007-01-15 15:28:57 +0100 (Mo, 15 Jan 2007) $
+    --  $LastChangedRevision: 659 $
+    --  $LastChangedBy: gogo $
+    --------------------------------------------------------------------------*/
+    
+if ( typeof _editor_url == "string" )
+{
+  // Leave exactly one backslash at the end of _editor_url
+  _editor_url = _editor_url.replace(/\x2f*$/, '/');
+}
+else
+{
+  alert("WARNING: _editor_url is not set!  You should set this variable to the editor files path; it should preferably be an absolute path, like in '/htmlarea/', but it can be relative if you prefer.  Further we will try to load the editor files correctly but we'll probably fail.");
+  _editor_url = '';
+}
+
+document.write('<script type="text/javascript" src="'+_editor_url+'XinhaCore.js"></script>');
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/de/bold.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/de/bold.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/de/bold.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/de/italic.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/de/italic.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/de/italic.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/de/underline.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/de/underline.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/de/underline.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_about.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_about.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_about.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align_center.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align_center.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align_center.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align_justify.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align_justify.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align_justify.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align_left.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align_left.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align_left.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align_right.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align_right.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_align_right.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_blank.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_blank.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_blank.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_buttons_main.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_buttons_main.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_buttons_main.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_charmap.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_charmap.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_charmap.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_clearfonts.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_clearfonts.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_clearfonts.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_color_bg.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_color_bg.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_color_bg.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_color_fg.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_color_fg.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_color_fg.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_copy.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_copy.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_copy.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_custom.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_custom.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_custom.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_cut.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_cut.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_cut.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_delete.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_delete.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_delete.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_bold.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_bold.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_bold.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_italic.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_italic.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_italic.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_strike.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_strike.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_strike.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_sub.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_sub.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_sub.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_sup.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_sup.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_sup.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_underline.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_underline.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_format_underline.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_help.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_help.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_help.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_hr.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_hr.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_hr.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_html.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_html.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_html.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_image.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_image.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_image.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_indent_less.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_indent_less.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_indent_less.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_indent_more.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/images/ed_indent_more.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.