Add new Xinha version
@@ -28,7 +28,7 @@ if ($in{'new'}) {
|
||||
}
|
||||
$to = $in{'to'};
|
||||
&mail_page_header($text{'compose_title'}, undef,
|
||||
$html_edit ? "onload='initEditor()'" : "",
|
||||
$html_edit ? "onload='xinha_init()'" : "",
|
||||
&folder_link($in{'user'}, $folder));
|
||||
}
|
||||
else {
|
||||
@@ -447,14 +447,16 @@ if ($html_edit) {
|
||||
_editor_url = "$gconfig{'webprefix'}/$module_name/xinha/";
|
||||
_editor_lang = "en";
|
||||
</script>
|
||||
<script type="text/javascript" src="xinha/htmlarea.js"></script>
|
||||
<script type="text/javascript" src="xinha/XinhaCore.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var editor = null;
|
||||
function initEditor() {
|
||||
editor = new HTMLArea("body");
|
||||
editor.generate();
|
||||
return false;
|
||||
xinha_init = function()
|
||||
{
|
||||
xinha_editors = [ "body" ];
|
||||
xinha_plugins = [ ];
|
||||
xinha_config = new Xinha.Config();
|
||||
xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
|
||||
Xinha.startEditors(xinha_editors);
|
||||
}
|
||||
</script>
|
||||
EOF
|
||||
|
||||
3
mailboxes/xinha/Xinha.css
Normal file
18
mailboxes/xinha/XinhaCore.js
Normal file
208
mailboxes/xinha/contrib/php-xinha.php
Normal file
@@ -0,0 +1,208 @@
|
||||
<?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', $ReturnPHP = FALSE)
|
||||
{
|
||||
|
||||
$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();
|
||||
|
||||
if($ReturnPHP)
|
||||
{
|
||||
return array('backend_data' => $backend_data);
|
||||
}
|
||||
else
|
||||
{
|
||||
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;
|
||||
}
|
||||
?>
|
||||
16
mailboxes/xinha/examples/ExtendedDemo.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<html>
|
||||
<head><title>Xinha Extended Example</title></head>
|
||||
<!--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
|
||||
-- Xinha example frameset.
|
||||
--
|
||||
-- $HeadURL: http://svn.xinha.org/trunk/examples/ExtendedDemo.html $
|
||||
-- $LastChangedDate: 2008-10-12 19:42:42 +0200 (So, 12. Okt 2008) $
|
||||
-- $LastChangedRevision: 1084 $
|
||||
-- $LastChangedBy: ray $
|
||||
--------------------------------------------------------------------------->
|
||||
|
||||
<frameset cols="240,*">
|
||||
<frame src="files/ext_example-menu.php" name="menu" id="menu">
|
||||
<frame src="about:blank" name="body" id="body">
|
||||
</frameset>
|
||||
</html>
|
||||
22
mailboxes/xinha/examples/Newbie.html
Normal file
@@ -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" src="../XinhaLoader.js?lang=en&skin=silva"></script>
|
||||
<script type="text/javascript">
|
||||
_editor_icons = "Tango" // You can pass arguments via the script URL or embed them here.
|
||||
</script>
|
||||
<script type="text/javascript" src="XinhaConfig.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<form action="">
|
||||
<div>
|
||||
<textarea id="myTextArea" name="myTextArea" rows="25" cols="50" style="width: 100%"></textarea>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
3
mailboxes/xinha/examples/XinhaConfig.js
Normal file
@@ -0,0 +1,3 @@
|
||||
/* This compressed file is part of Xinha. For uncompressed sources, forum, and bug reports, go to xinha.org */
|
||||
/* This file is part of version 0.96beta2 released Fri, 20 Mar 2009 11:01:14 +0100 */
|
||||
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","SmartReplace","Stylist","PersistentStorage","PSLocal","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/files/full_example.css"];xinha_config.stylistLoadStylesheet(_editor_url+"examples/files/stylist.css");xinha_editors=Xinha.makeEditors(xinha_editors,xinha_config,xinha_plugins);Xinha.startEditors(xinha_editors)};Xinha.addOnloadHandler(xinha_init);
|
||||
317
mailboxes/xinha/examples/files/Extended.html
Normal file
@@ -0,0 +1,317 @@
|
||||
<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;
|
||||
}
|
||||
if (!window.dialogArguments && opener.Dialog._arguments)
|
||||
{
|
||||
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">
|
||||
label { width: 16em; float: left; padding: 2px 5px; text-align: right; }
|
||||
br { clear: both; }
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="dialog" onload="Init(); window.resizeTo(420, 820);">
|
||||
<div class="title">Settings</div>
|
||||
<form action="" method="get">
|
||||
<fieldset>
|
||||
<legend>Xinha options</legend>
|
||||
<label for="width">Editor width:</label>
|
||||
<input type="text" name="width" id="width" title="Allowed values are 'auto', 'toolbar' or a numeric value followed by 'px'." /><br />
|
||||
<label for="height">Editor height:</label>
|
||||
<input type="text" name="height" id="height" title="Allowed values are 'auto' or a numeric value followed by 'px'." /><br />
|
||||
<label for="sizeIncludesBars">Size includes bars</label>
|
||||
<input type="checkbox" name="sizeIncludesBars" id="sizeIncludesBars" value="true" title="Specifies whether the toolbar should be included in the size, or are extra to it." /><br />
|
||||
<label for="sizeIncludesPanels">Size includes panels</label>
|
||||
<input type="checkbox" name="sizeIncludesPanels" id="sizeIncludesPanels" value="true" title="Specifies whether the panels should be included in the size, or are extra to it." /><br />
|
||||
<label for="statusBar">Status Bar</label>
|
||||
<input type="checkbox" name="statusBar" id="statusBar" value="true" title="Enable creation of the status bar?" /><br />
|
||||
<label for="htmlareaPaste">Htmlarea Paste</label>
|
||||
<input type="checkbox" name="htmlareaPaste" id="htmlareaPaste" value="true" title="Intercept ^V and use the Xinha paste command" /><br />
|
||||
<label for="mozParaHandler">Mozilla Parameter Handler:</label>
|
||||
<select name="mozParaHandler" id="mozParaHandler" title="Gecko only: Let the built-in routine for handling the return key decide if to enter br or p tags or use a custom implementation.">
|
||||
<option value="built-in">built-in</option>
|
||||
<option value="dirty">dirty</option>
|
||||
<option value="best">best</option>
|
||||
</select><br />
|
||||
<label for="getHtmlMethod">GetHtml Method:</label>
|
||||
<select name="getHtmlMethod" id="getHtmlMethod" title="This determines the method how the HTML output is generated.">
|
||||
<option value="DOMwalk">DOMwalk</option>
|
||||
<option value="TransformInnerHTML">TransformInnerHTML</option>
|
||||
</select><br />
|
||||
<label for="undoSteps">Undo steps:</label>
|
||||
<input type="text" name="undoSteps" id="undoSteps" title="Maximum size of the undo queue." /><br />
|
||||
<label for="undoTimeout">Undo Timeout:</label>
|
||||
<input type="text" name="undoTimeout" id="undoTimeout" title="The time interval at which undo samples are taken, default: 500 (1/2 sec)." /><br />
|
||||
<label for="changeJustifyWithDirection">change justify with direction</label>
|
||||
<input type="checkbox" name="changeJustifyWithDirection" id="changeJustifyWithDirection" value="true" title="Set this to true if you want to explicitly right-justify when setting the text direction to right-to-left" /><br />
|
||||
<label for="fullPage">full Page</label>
|
||||
<input type="checkbox" name="fullPage" id="fullPage" value="true" title="If true then Xinha will retrieve the full HTML, starting with the HTML-tag." /><br />
|
||||
<label for="pageStyle">Page style:</label>
|
||||
<textarea name="pageStyle" id="pageStyle" title="Raw style definitions included in the edited document"></textarea>
|
||||
<!-- pageStyleSheets -->
|
||||
<label for="baseHref">Base href:</label>
|
||||
<input type="text" name="baseHref" id="baseHref" title="specify a base href for relative links" /><br />
|
||||
<label for="expandRelativeUrl">expand relative Url</label>
|
||||
<input type="checkbox" name="expandRelativeUrl" id="expandRelativeUrl" value="true" title="If true, relative URLs (../) will be made absolute"/><br />
|
||||
<label for="stripBaseHref">Strip base href</label>
|
||||
<input type="checkbox" name="stripBaseHref" id="stripBaseHref" value="true" title="We can strip the server part out of URL to make/leave them semi-absolute" /><br />
|
||||
<label for="stripSelfNamedAnchors">Strip self named anchors</label>
|
||||
<input type="checkbox" name="stripSelfNamedAnchors" id="stripSelfNamedAnchors" value="true" title="We can strip the url of the editor page from named links" /><br />
|
||||
<label for="only7BitPrintablesInURLs">only 7bit printables in URLs</label>
|
||||
<input type="checkbox" name="only7BitPrintablesInURLs" id="only7BitPrintablesInURLs" value="true" title="In URLs all characters above ASCII value 127 have to be encoded using % codes" /><br />
|
||||
<label for="sevenBitClean">7bit Clean</label>
|
||||
<input type="checkbox" name="sevenBitClean" id="sevenBitClean" value="true" title="If you are putting the HTML written in Xinha into an email you might want it to be 7-bit characters only." /><br />
|
||||
<label for="killWordOnPaste">kill Word on paste</label>
|
||||
<input type="checkbox" name="killWordOnPaste" id="killWordOnPaste" value="true" title="Set to true if you want Word code to be cleaned upon Paste." /><br />
|
||||
<label for="makeLinkShowsTarget">make Link Shows Target</label>
|
||||
<input type="checkbox" name="makeLinkShowsTarget" id="makeLinkShowsTarget" value="true" title="Enable the 'Target' field in the Make Link dialog." /><br />
|
||||
<label for="flowToolbars">flow toolbars</label>
|
||||
<input type="checkbox" name="flowToolbars" id="flowToolbars" value="true" /><br />
|
||||
<label for="stripScripts">strip Scripts</label>
|
||||
<input type="checkbox" name="stripScripts" id="stripScripts" value="true" title="Set to false if you want to allow JavaScript in the content" /><br />
|
||||
<label for="showLoading">show loading</label>
|
||||
<input type="checkbox" name="showLoading" id="showLoading" value="true" /><br />
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="CharacterMapOptions" class="options">
|
||||
<legend>CharacterMap options</legend>
|
||||
<label for="CharacterMapMode">Mode :</label>
|
||||
<select id="CharacterMapMode" name="CharacterMapMode">
|
||||
<option value="popup">popup</option>
|
||||
<option value="panel">panel</option>
|
||||
</select>
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="ListTypeOptions" class="options">
|
||||
<legend>ListType options</legend>
|
||||
<label class="ListTypeMode">Mode :</label>
|
||||
<select id="ListTypeMode" name="ListTypeMode">
|
||||
<option value="toolbar">toolbar</option>
|
||||
<option value="panel">panel</option>
|
||||
</select>
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="CharCounterOptions" class="options">
|
||||
<legend>CharCounter options</legend>
|
||||
<label for="showChar">show Char :</label>
|
||||
<input type="checkbox" name="showChar" id="showChar" value="true" /><br />
|
||||
<label for="showWord">show Word :</label>
|
||||
<input type="checkbox" name="showWord" id="showWord" value="true" /><br />
|
||||
<label for="showHtml">show Html :</label>
|
||||
<input type="checkbox" name="showHtml" id="showHtml" value="true" /><br />
|
||||
</fieldset>
|
||||
<br />
|
||||
|
||||
<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>
|
||||
40
mailboxes/xinha/examples/files/custom.css
Normal file
@@ -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.webfactional.com/trunk/examples/files/custom.css $
|
||||
-- $LastChangedDate:2008-02-04 01:43:21 +0100 (Mo, 04 Feb 2008) $
|
||||
-- $LastChangedRevision:962 $
|
||||
-- $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; }
|
||||
56
mailboxes/xinha/examples/files/dynamic.css
Normal file
@@ -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.webfactional.com/trunk/examples/files/dynamic.css $
|
||||
-- $LastChangedDate:2008-02-04 01:43:21 +0100 (Mo, 04 Feb 2008) $
|
||||
-- $LastChangedRevision:962 $
|
||||
-- $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; }
|
||||
206
mailboxes/xinha/examples/files/ext_example-body.html
Normal file
@@ -0,0 +1,206 @@
|
||||
<!DOCTYPE BHTML PUBLIC "-//BC//DTD BHTML 3.2 Final//EN">
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<!-- ---------------------------------------------------------------------
|
||||
-- $HeadURL: http://svn.xinha.org/trunk/examples/files/ext_example-body.html $
|
||||
-- $LastChangedDate: 2008-10-12 19:42:42 +0200 (So, 12. Okt 2008) $
|
||||
-- $LastChangedRevision: 1084 $
|
||||
-- $LastChangedBy: ray $
|
||||
------------------------------------------------------------------------ -->
|
||||
|
||||
<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\/files\/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.sizeIncludesPanels = settings.sizeIncludesPanels;
|
||||
xinha_config.statusBar = settings.statusBar;
|
||||
xinha_config.htmlareaPaste = settings.htmlareaPaste;
|
||||
xinha_config.mozParaHandler = settings.mozParaHandler;
|
||||
xinha_config.getHtmlMethod = settings.getHtmlMethod;
|
||||
xinha_config.undoSteps = settings.undoSteps;
|
||||
xinha_config.undoTimeout = settings.undoTimeout;
|
||||
xinha_config.changeJustifyWithDirection = settings.changeJustifyWithDirection;
|
||||
xinha_config.fullPage = settings.fullPage;
|
||||
xinha_config.pageStyle = settings.pageStyle;
|
||||
xinha_config.baseHref = settings.baseHref;
|
||||
xinha_config.expandRelativeUrl = settings.expandRelativeUrl;
|
||||
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.makeLinkShowsTarget = settings.makeLinkShowsTarget;
|
||||
xinha_config.flowToolbars = settings.flowToolbars;
|
||||
xinha_config.stripScripts = settings.stripScripts;
|
||||
xinha_config.flowToolbars = settings.flowToolbars;
|
||||
xinha_config.showLoading = settings.showLoading;
|
||||
xinha_config.pageStyleSheets = ["full_example.css"];
|
||||
|
||||
// Create a default configuration for the plugins
|
||||
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 = xinha_config.pageStyle + "\n" + "@import url(custom.css);";
|
||||
if(typeof DynamicCSS != 'undefined') xinha_config.pageStyle = "@import url(dynamic.css);";
|
||||
if(typeof Filter != 'undefined') xinha_config.Filters = ["Word", "Paragraph"];
|
||||
|
||||
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 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" } ]
|
||||
}
|
||||
}
|
||||
|
||||
// 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']);
|
||||
// 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"></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>
|
||||
23
mailboxes/xinha/examples/files/ext_example-dest.php
Normal file
@@ -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>
|
||||
357
mailboxes/xinha/examples/files/ext_example-menu.php
Normal file
@@ -0,0 +1,357 @@
|
||||
<?php
|
||||
$LocalPluginPath = dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'plugins';
|
||||
$LocalSkinPath = dirname(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.org/trunk/examples/files/ext_example-menu.php $
|
||||
-- $LastChangedDate: 2008-10-12 19:42:42 +0200 (So, 12. Okt 2008) $
|
||||
-- $LastChangedRevision: 1084 $
|
||||
-- $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" />
|
||||
<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,
|
||||
sizeIncludesPanels: true,
|
||||
statusBar: true,
|
||||
htmlareaPaste: false,
|
||||
mozParaHandler: "best",
|
||||
getHtmlMethod: "DOMwalk",
|
||||
undoSteps: 20,
|
||||
undoTimeout: 500,
|
||||
changeJustifyWithDirection: false,
|
||||
fullPage: false,
|
||||
pageStyle: "",
|
||||
baseHref: null,
|
||||
expandRelativeUrl: true,
|
||||
stripBaseHref: true,
|
||||
stripSelfNamedAnchors: true,
|
||||
only7BitPrintablesInURLs: true,
|
||||
sevenBitClean: false,
|
||||
killWordOnPaste: true,
|
||||
makeLinkShowsTarget: true,
|
||||
flowToolbars: true,
|
||||
stripScripts: false,
|
||||
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
|
||||
}
|
||||
if (typeof window.showModalDialog == 'function')
|
||||
{
|
||||
Dialog._return = action;
|
||||
var r = window.showModalDialog(url, init, "dialogheight=10;dialogheight=10;scroll=yes;resizable=yes");
|
||||
}
|
||||
else
|
||||
{
|
||||
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.sizeIncludesPanels = (param["sizeIncludesPanels"]=="true");
|
||||
settings.statusBar = (param["statusBar"]=="true");
|
||||
settings.htmlareaPaste = (param["htmlareaPaste"]=="true");
|
||||
settings.mozParaHandler = param["mozParaHandler"];
|
||||
settings.getHtmlMethod = param["getHtmlMethod"];
|
||||
settings.undoSteps = param["undoSteps"];
|
||||
settings.undoTimeout = param["undoTimeout"];
|
||||
settings.changeJustifyWithDirection = (param["changeJustifyWithDirection"]=="true");
|
||||
settings.fullPage = (param["fullPage"]=="true");
|
||||
settings.pageStyle = param["pageStyle"];
|
||||
settings.baseHref = param["baseHref"];
|
||||
settings.expandRelativeUrl = (param["expandRelativeUrl"]=="true");
|
||||
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.makeLinkShowsTarget = (param["makeLinkShowsTarget"]=="true");
|
||||
settings.flowToolbars = (param["flowToolbars"]=="true");
|
||||
settings.stripScripts = (param["stripScripts"]=="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>
|
||||
78
mailboxes/xinha/examples/files/full_example.css
Normal file
@@ -0,0 +1,78 @@
|
||||
/*--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
|
||||
-- Xinha example CSS file. This is ripped from Trac ;)
|
||||
--
|
||||
-- $HeadURL:http://svn.xinha.webfactional.com/trunk/examples/files/full_example.css $
|
||||
-- $LastChangedDate:2008-02-04 01:43:21 +0100 (Mo, 04 Feb 2008) $
|
||||
-- $LastChangedRevision:962 $
|
||||
-- $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;}
|
||||
.navi_links {
|
||||
width: 177px;
|
||||
margin: 0;
|
||||
padding: 0px;
|
||||
list-style:none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.navi_links li {
|
||||
margin:0 0 3px 0;
|
||||
}
|
||||
|
||||
.navi_links li a {
|
||||
font-size: 13px;
|
||||
line-height: 16px;
|
||||
height: 16px;
|
||||
display:block;
|
||||
color:#000;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
border: 2px solid white;
|
||||
|
||||
}
|
||||
|
||||
.Link1 {
|
||||
background-color: #DF1D1F !important;
|
||||
|
||||
}
|
||||
31
mailboxes/xinha/examples/files/stylist.css
Normal file
@@ -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.webfactional.com/trunk/examples/files/stylist.css $
|
||||
-- $LastChangedDate:2008-02-04 01:43:21 +0100 (Mo, 04 Feb 2008) $
|
||||
-- $LastChangedRevision:962 $
|
||||
-- $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; }
|
||||
54
mailboxes/xinha/examples/simple_example.html
Normal file
@@ -0,0 +1,54 @@
|
||||
<!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">
|
||||
var _editor_url = document.location.href.replace(/examples\/simple_example\.html.*/, '')
|
||||
|
||||
var _editor_lang = "en";
|
||||
</script>
|
||||
<!-- Load up the actual editor core -->
|
||||
<script type="text/javascript" src="../XinhaCore.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
var xinha_plugins =
|
||||
[
|
||||
'Linker'
|
||||
];
|
||||
var xinha_editors =
|
||||
[
|
||||
'myTextArea',
|
||||
'anotherOne'
|
||||
];
|
||||
|
||||
function xinha_init()
|
||||
{
|
||||
if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
|
||||
|
||||
var xinha_config = new Xinha.Config();
|
||||
|
||||
xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
|
||||
|
||||
Xinha.startEditors(xinha_editors);
|
||||
}
|
||||
Xinha.addOnloadHandler(xinha_init);
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<form onsubmit="alert(this.myTextArea.value); return false;">
|
||||
<textarea id="myTextArea" name="myTextArea" rows="25" cols="80">
|
||||
<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>
|
||||
</textarea>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
195
mailboxes/xinha/examples/testbed.html
Normal file
@@ -0,0 +1,195 @@
|
||||
<?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.org/trunk/examples/testbed.html $
|
||||
-- $LastChangedDate: 2008-10-12 19:42:42 +0200 (So, 12. Okt 2008) $
|
||||
-- $LastChangedRevision: 1084 $
|
||||
-- $LastChangedBy: ray $
|
||||
--------------------------------------------------------------------------->
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Example of Xinha</title>
|
||||
<link rel="stylesheet" href="files/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="../XinhaCore.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/, 'files/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']);
|
||||
* 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;
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<form action="javascript:void(0);" id="editors_here" onsubmit="alert(this.myTextArea.value);">
|
||||
<div>
|
||||
<textarea id="myTextArea" name="myTextArea" style="width:100%;height:320px;">
|
||||
<html>
|
||||
<head>
|
||||
<title>Hello</title>
|
||||
<style type="text/css">
|
||||
li { color:red; }
|
||||
</style>
|
||||
</head>
|
||||
<body><span style="color:purple">
|
||||
<img src="../images/xinha_logo.gif" usemap="#m1">
|
||||
<map name="m1">
|
||||
<area shape="rect" coords="137,101,255,124" href="http://www.mydomain.com">
|
||||
</map>
|
||||
|
||||
<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. <span style="color:green">Aliquam </span> nisl. Nulla posuere neque non
|
||||
tellus. Morbi vel nibh. <font face="Arial"><font color="#009933">Cum sociis natoque</font></font> penatibus et magnis dis
|
||||
parturient montes, nascetur ridiculus mus. Nam nec wisi. In wisi.
|
||||
Curabitur pharetra bibendum lectus.
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li style="color:green"> 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>
|
||||
</span></body>
|
||||
</html>
|
||||
</textarea>
|
||||
|
||||
<input type="submit" /> <input type="reset" />
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
document.write(document.compatMode);
|
||||
</script>
|
||||
<div>
|
||||
<a href="#" onclick="xinha_editors.myTextArea.hidePanels();">Hide</a>
|
||||
<a href="#" onclick="xinha_editors.myTextArea.showPanels();">Show</a>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
23
mailboxes/xinha/htmlarea.js
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
/*--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
|
||||
-- COMPATABILITY FILE
|
||||
-- htmlarea.js is now XinhaCore.js
|
||||
--
|
||||
-- $HeadURL:http://svn.xinha.webfactional.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>');
|
||||
BIN
mailboxes/xinha/iconsets/Classic/de/bold.gif
Normal file
|
After Width: | Height: | Size: 57 B |
BIN
mailboxes/xinha/iconsets/Classic/de/italic.gif
Normal file
|
After Width: | Height: | Size: 63 B |
BIN
mailboxes/xinha/iconsets/Classic/de/underline.gif
Normal file
|
After Width: | Height: | Size: 69 B |
BIN
mailboxes/xinha/iconsets/Classic/ed_buttons_main.gif
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
mailboxes/xinha/iconsets/Classic/ed_charmap.gif
Normal file
|
After Width: | Height: | Size: 134 B |
BIN
mailboxes/xinha/iconsets/Classic/ed_selectall.gif
Normal file
|
After Width: | Height: | Size: 150 B |
BIN
mailboxes/xinha/iconsets/Classic/fr/bold.gif
Normal file
|
After Width: | Height: | Size: 128 B |
BIN
mailboxes/xinha/iconsets/Classic/fr/strikethrough.gif
Normal file
|
After Width: | Height: | Size: 131 B |
BIN
mailboxes/xinha/iconsets/Classic/fr/underline.gif
Normal file
|
After Width: | Height: | Size: 134 B |
263
mailboxes/xinha/iconsets/Classic/iconset.xml
Normal file
@@ -0,0 +1,263 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<iconset>
|
||||
<!--TODO: Add metas -->
|
||||
<icons>
|
||||
<icon id="bold">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>3</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
<de type="string">
|
||||
<path>iconsets/Classic/de/bold.gif</path>
|
||||
</de>
|
||||
<fr type="string">
|
||||
<path>iconsets/Classic/fr/bold.gif</path>
|
||||
</fr>
|
||||
</icon>
|
||||
<icon id="italic">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>2</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
<de type="string">
|
||||
<path>iconsets/Classic/de/italic.gif</path>
|
||||
</de>
|
||||
</icon>
|
||||
<icon id="underline">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>2</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
<fr type="string">
|
||||
<path>iconsets/Classic/fr/underline.gif</path>
|
||||
</fr>
|
||||
<de type="string">
|
||||
<path>iconsets/Classic/de/underline.gif</path>
|
||||
</de>
|
||||
</icon>
|
||||
<icon id="strikethrough">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>3</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
<fr type="string">
|
||||
<path>iconsets/Classic/fr/strikethrough.gif</path>
|
||||
</fr>
|
||||
</icon>
|
||||
<icon id="subscript">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>3</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="superscript">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>2</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="undo">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>4</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="redo">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>5</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="cut">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>5</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="copy">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>4</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="paste">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>4</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="forecolor">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>3</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="hilitecolor">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>2</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="indent">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>0</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="outdent">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>1</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="insertimage">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>6</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="insertorderedlist">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>0</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="insertunorderedlist">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>1</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="justifyleft">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="justifyfull">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>0</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="justifycenter">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>1</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="justifyright">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>1</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="createlink">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>6</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="lefttoright">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>0</x>
|
||||
<y>4</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="righttoleft">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>1</x>
|
||||
<y>4</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="print">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>8</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="saveas">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>9</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="removeformat">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>4</x>
|
||||
<y>4</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="about">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>8</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="showhelp">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>9</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="fullscreen">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>8</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="fullscreenrestore">
|
||||
<default type="map">
|
||||
<path>iconsets/Classic/ed_buttons_main.gif</path>
|
||||
<x>9</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="selectall">
|
||||
<default type="simple">
|
||||
<path>iconsets/Classic/ed_selectall.gif</path>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="insertcharacter">
|
||||
<default type="simple">
|
||||
<path>iconsets/Classic/ed_charmap.gif</path>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="smartreplace">
|
||||
<default type="simple">
|
||||
<path>plugins/SmartReplace/img.gif</path>
|
||||
</default>
|
||||
</icon>
|
||||
</icons>
|
||||
</iconset>
|
||||
121
mailboxes/xinha/iconsets/Crystal/LICENSE
Normal file
@@ -0,0 +1,121 @@
|
||||
License
|
||||
|
||||
The Crystal Project are released under LGPL.
|
||||
|
||||
GNU General Public License.
|
||||
|
||||
0.
|
||||
|
||||
This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does.
|
||||
1.
|
||||
|
||||
You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
|
||||
2.
|
||||
|
||||
You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
|
||||
1. The modified work must itself be a software library.
|
||||
2. You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change.
|
||||
3. You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License.
|
||||
4. If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
|
||||
3.
|
||||
|
||||
You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of the Library into a program that is not a library.
|
||||
4.
|
||||
|
||||
You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code.
|
||||
5.
|
||||
|
||||
A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.
|
||||
However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself.
|
||||
6.
|
||||
|
||||
As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things:
|
||||
1. Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) .
|
||||
2. Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with.
|
||||
3. Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution.
|
||||
4. If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place.
|
||||
5. Verify that the user has already received a copy of these materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute.
|
||||
7.
|
||||
|
||||
You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things:
|
||||
1.
|
||||
|
||||
Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above.
|
||||
2.
|
||||
|
||||
Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
|
||||
8.
|
||||
|
||||
You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
|
||||
9.
|
||||
|
||||
You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it.
|
||||
10.
|
||||
|
||||
Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License.
|
||||
11.
|
||||
|
||||
If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
|
||||
12.
|
||||
|
||||
If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
|
||||
13.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation.
|
||||
14.
|
||||
|
||||
If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
|
||||
|
||||
No Warranty
|
||||
|
||||
15.
|
||||
|
||||
Because the library is licensed free of charge, there is no warranty for the library, to the extent permitted by applicable law. Except when otherwise stated in writing the copyright holders and/or other parties provide the library "as is" without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the library is with you. Should the library prove defective, you assume the cost of all necessary servicing, repair or correction.
|
||||
16.
|
||||
|
||||
In no event unless required by applicable law or agreed to in writing will any copyright holder, or any other party who may modify and/or redistribute the library as permitted above, be liable to you for damages, including any general, special, incidental or consequential damages arising out of the use or inability to use the library (including but not limited to loss of data or data being rendered inaccurate or losses sustained by you or third parties or a failure of the library to operate with any other software), even if such holder or other party has been advised of the possibility of such damages.
|
||||
|
||||
3
mailboxes/xinha/iconsets/Crystal/README
Normal file
@@ -0,0 +1,3 @@
|
||||
These icons are from everaldo.com, in particular from the Open Office Crystal Icons set
|
||||
|
||||
The Crystal Project are released under LGPL.
|
||||
BIN
mailboxes/xinha/iconsets/Crystal/ed_buttons_main.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
234
mailboxes/xinha/iconsets/Crystal/iconset.xml
Normal file
@@ -0,0 +1,234 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<iconset>
|
||||
<!--TODO: Add metas -->
|
||||
<icons>
|
||||
<icon id="bold">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>3</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
<!--<de type="string">
|
||||
<path>iconsets/Crystal/de/bold_de.gif</path>
|
||||
</de>-->
|
||||
</icon>
|
||||
<icon id="italic">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>2</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="underline">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>2</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="strikethrough">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>3</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="subscript">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>3</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="superscript">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>2</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="undo">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>4</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="redo">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>5</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="cut">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>5</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="copy">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>4</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="paste">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>4</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="forecolor">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>3</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="hilitecolor">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>2</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="indent">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>0</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="outdent">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>1</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="insertimage">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>6</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="insertorderedlist">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>0</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="insertunorderedlist">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>1</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="justifyleft">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="justifyfull">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>0</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="justifycenter">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>1</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="justifyright">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>1</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="createlink">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>6</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="lefttoright">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>0</x>
|
||||
<y>4</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="righttoleft">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>1</x>
|
||||
<y>4</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="print">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>8</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="saveas">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>9</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="removeformat">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>4</x>
|
||||
<y>4</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="about">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>8</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="showhelp">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>9</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="fullscreen">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>8</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="fullscreenrestore">
|
||||
<default type="map">
|
||||
<path>iconsets/Crystal/ed_buttons_main.png</path>
|
||||
<x>9</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
|
||||
</icons>
|
||||
</iconset>
|
||||
67
mailboxes/xinha/iconsets/Tango/LICENSE
Normal file
@@ -0,0 +1,67 @@
|
||||
Creative Commons Attribution-ShareAlike 2.5 License Agreement
|
||||
|
||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE.
|
||||
|
||||
License
|
||||
|
||||
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
|
||||
|
||||
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
|
||||
|
||||
1. Definitions
|
||||
|
||||
1. "Collective Work" means a work, such as a periodical issue, anthology or encyclopedia, in which the Work in its entirety in unmodified form, along with a number of other contributions, constituting separate and independent works in themselves, are assembled into a collective whole. A work that constitutes a Collective Work will not be considered a Derivative Work (as defined below) for the purposes of this License.
|
||||
2. "Derivative Work" means a work based upon the Work or upon the Work and other pre-existing works, such as a translation, musical arrangement, dramatization, fictionalization, motion picture version, sound recording, art reproduction, abridgment, condensation, or any other form in which the Work may be recast, transformed, or adapted, except that a work that constitutes a Collective Work will not be considered a Derivative Work for the purpose of this License. For the avoidance of doubt, where the Work is a musical composition or sound recording, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered a Derivative Work for the purpose of this License.
|
||||
3. "Licensor" means the individual or entity that offers the Work under the terms of this License.
|
||||
4. "Original Author" means the individual or entity who created the Work.
|
||||
5. "Work" means the copyrightable work of authorship offered under the terms of this License.
|
||||
6. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
|
||||
7. "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike.
|
||||
|
||||
2. Fair Use Rights. Nothing in this license is intended to reduce, limit, or restrict any rights arising from fair use, first sale or other limitations on the exclusive rights of the copyright owner under copyright law or other applicable laws.
|
||||
|
||||
3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
|
||||
|
||||
1. to reproduce the Work, to incorporate the Work into one or more Collective Works, and to reproduce the Work as incorporated in the Collective Works;
|
||||
2. to create and reproduce Derivative Works;
|
||||
3. to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission the Work including as incorporated in Collective Works;
|
||||
4. to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission Derivative Works.
|
||||
5.
|
||||
|
||||
For the avoidance of doubt, where the work is a musical composition:
|
||||
1. Performance Royalties Under Blanket Licenses. Licensor waives the exclusive right to collect, whether individually or via a performance rights society (e.g. ASCAP, BMI, SESAC), royalties for the public performance or public digital performance (e.g. webcast) of the Work.
|
||||
2. Mechanical Rights and Statutory Royalties. Licensor waives the exclusive right to collect, whether individually or via a music rights society or designated agent (e.g. Harry Fox Agency), royalties for any phonorecord You create from the Work ("cover version") and distribute, subject to the compulsory license created by 17 USC Section 115 of the US Copyright Act (or the equivalent in other jurisdictions).
|
||||
6. Webcasting Rights and Statutory Royalties. For the avoidance of doubt, where the Work is a sound recording, Licensor waives the exclusive right to collect, whether individually or via a performance-rights society (e.g. SoundExchange), royalties for the public digital performance (e.g. webcast) of the Work, subject to the compulsory license created by 17 USC Section 114 of the US Copyright Act (or the equivalent in other jurisdictions).
|
||||
|
||||
The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. All rights not expressly granted by Licensor are hereby reserved.
|
||||
|
||||
4. Restrictions.The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
|
||||
|
||||
1. You may distribute, publicly display, publicly perform, or publicly digitally perform the Work only under the terms of this License, and You must include a copy of, or the Uniform Resource Identifier for, this License with every copy or phonorecord of the Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Work that alter or restrict the terms of this License or the recipients' exercise of the rights granted hereunder. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties. You may not distribute, publicly display, publicly perform, or publicly digitally perform the Work with any technological measures that control access or use of the Work in a manner inconsistent with the terms of this License Agreement. The above applies to the Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Work itself to be made subject to the terms of this License. If You create a Collective Work, upon notice from any Licensor You must, to the extent practicable, remove from the Collective Work any credit as required by clause 4(c), as requested. If You create a Derivative Work, upon notice from any Licensor You must, to the extent practicable, remove from the Derivative Work any credit as required by clause 4(c), as requested.
|
||||
2. You may distribute, publicly display, publicly perform, or publicly digitally perform a Derivative Work only under the terms of this License, a later version of this License with the same License Elements as this License, or a Creative Commons iCommons license that contains the same License Elements as this License (e.g. Attribution-ShareAlike 2.5 Japan). You must include a copy of, or the Uniform Resource Identifier for, this License or other license specified in the previous sentence with every copy or phonorecord of each Derivative Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Derivative Works that alter or restrict the terms of this License or the recipients' exercise of the rights granted hereunder, and You must keep intact all notices that refer to this License and to the disclaimer of warranties. You may not distribute, publicly display, publicly perform, or publicly digitally perform the Derivative Work with any technological measures that control access or use of the Work in a manner inconsistent with the terms of this License Agreement. The above applies to the Derivative Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Derivative Work itself to be made subject to the terms of this License.
|
||||
3. If you distribute, publicly display, publicly perform, or publicly digitally perform the Work or any Derivative Works or Collective Works, You must keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or (ii) if the Original Author and/or Licensor designate another party or parties (e.g. a sponsor institute, publishing entity, journal) for attribution in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; the title of the Work if supplied; to the extent reasonably practicable, the Uniform Resource Identifier, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and in the case of a Derivative Work, a credit identifying the use of the Work in the Derivative Work (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). Such credit may be implemented in any reasonable manner; provided, however, that in the case of a Derivative Work or Collective Work, at a minimum such credit will appear where any other comparable authorship credit appears and in a manner at least as prominent as such other comparable authorship credit.
|
||||
|
||||
5. Representations, Warranties and Disclaimer
|
||||
|
||||
UNLESS OTHERWISE AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE MATERIALS, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
|
||||
|
||||
6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
7. Termination
|
||||
|
||||
1. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Derivative Works or Collective Works from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
|
||||
2. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
|
||||
|
||||
8. Miscellaneous
|
||||
|
||||
1. Each time You distribute or publicly digitally perform the Work or a Collective Work, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
|
||||
2. Each time You distribute or publicly digitally perform a Derivative Work, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
|
||||
3. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
|
||||
4. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
|
||||
5. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
|
||||
|
||||
Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor.
|
||||
|
||||
Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, neither party will use the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time.
|
||||
|
||||
Creative Commons may be contacted at http://creativecommons.org/.
|
||||
3
mailboxes/xinha/iconsets/Tango/README
Normal file
@@ -0,0 +1,3 @@
|
||||
These icons are from the Tango Desktop Project. The icons are realease under the Creative Commons Share-Alike license. From http://tango.freedesktop.org:
|
||||
|
||||
The Tango Desktop Project exists to help create a consistent graphical user interface experience for free and Open Source software.
|
||||
BIN
mailboxes/xinha/iconsets/Tango/ed_buttons_main.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
233
mailboxes/xinha/iconsets/Tango/iconset.xml
Normal file
@@ -0,0 +1,233 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<iconset>
|
||||
<!--TODO: Add metas -->
|
||||
<icons>
|
||||
<icon id="bold">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>3</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
<!--<de type="string">
|
||||
<path>iconsets/Tango/de/bold_de.gif</path>
|
||||
</de>-->
|
||||
</icon>
|
||||
<icon id="italic">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>2</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="underline">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>2</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="strikethrough">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>3</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="subscript">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>3</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="superscript">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>2</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="undo">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>4</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="redo">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>5</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="cut">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>5</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="copy">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>4</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="paste">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>4</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="forecolor">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>3</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="hilitecolor">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>2</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="indent">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>0</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="outdent">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>1</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="insertimage">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>6</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="insertorderedlist">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>0</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="insertunorderedlist">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>1</x>
|
||||
<y>3</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="justifyleft">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="justifyfull">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>0</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="justifycenter">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>1</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="justifyright">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>1</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="createlink">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>6</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="lefttoright">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>0</x>
|
||||
<y>4</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="righttoleft">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>1</x>
|
||||
<y>4</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="print">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>8</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="saveas">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>9</x>
|
||||
<y>1</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="removeformat">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>4</x>
|
||||
<y>4</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="about">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>8</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="showhelp">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>9</x>
|
||||
<y>2</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="fullscreen">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>8</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
<icon id="fullscreenrestore">
|
||||
<default type="map">
|
||||
<path>iconsets/Tango/ed_buttons_main.png</path>
|
||||
<x>9</x>
|
||||
<y>0</y>
|
||||
</default>
|
||||
</icon>
|
||||
</icons>
|
||||
</iconset>
|
||||
BIN
mailboxes/xinha/images/de/bold.gif
Normal file
|
After Width: | Height: | Size: 57 B |
BIN
mailboxes/xinha/images/de/italic.gif
Normal file
|
After Width: | Height: | Size: 63 B |
BIN
mailboxes/xinha/images/de/underline.gif
Normal file
|
After Width: | Height: | Size: 69 B |
BIN
mailboxes/xinha/images/ed_about.gif
Normal file
|
After Width: | Height: | Size: 76 B |
BIN
mailboxes/xinha/images/ed_align.gif
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
mailboxes/xinha/images/ed_align_center.gif
Normal file
|
After Width: | Height: | Size: 61 B |
BIN
mailboxes/xinha/images/ed_align_justify.gif
Normal file
|
After Width: | Height: | Size: 60 B |
BIN
mailboxes/xinha/images/ed_align_left.gif
Normal file
|
After Width: | Height: | Size: 60 B |
BIN
mailboxes/xinha/images/ed_align_right.gif
Normal file
|
After Width: | Height: | Size: 61 B |
BIN
mailboxes/xinha/images/ed_blank.gif
Normal file
|
After Width: | Height: | Size: 56 B |
BIN
mailboxes/xinha/images/ed_buttons_main.gif
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
mailboxes/xinha/images/ed_buttons_main.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
mailboxes/xinha/images/ed_charmap.gif
Normal file
|
After Width: | Height: | Size: 134 B |
BIN
mailboxes/xinha/images/ed_clearfonts.gif
Normal file
|
After Width: | Height: | Size: 134 B |
BIN
mailboxes/xinha/images/ed_color_bg.gif
Normal file
|
After Width: | Height: | Size: 172 B |
BIN
mailboxes/xinha/images/ed_color_fg.gif
Normal file
|
After Width: | Height: | Size: 164 B |
BIN
mailboxes/xinha/images/ed_copy.gif
Normal file
|
After Width: | Height: | Size: 97 B |
BIN
mailboxes/xinha/images/ed_custom.gif
Normal file
|
After Width: | Height: | Size: 50 B |
BIN
mailboxes/xinha/images/ed_cut.gif
Normal file
|
After Width: | Height: | Size: 78 B |
BIN
mailboxes/xinha/images/ed_delete.gif
Normal file
|
After Width: | Height: | Size: 80 B |
BIN
mailboxes/xinha/images/ed_format_bold.gif
Normal file
|
After Width: | Height: | Size: 57 B |
BIN
mailboxes/xinha/images/ed_format_italic.gif
Normal file
|
After Width: | Height: | Size: 67 B |
BIN
mailboxes/xinha/images/ed_format_strike.gif
Normal file
|
After Width: | Height: | Size: 66 B |
BIN
mailboxes/xinha/images/ed_format_sub.gif
Normal file
|
After Width: | Height: | Size: 67 B |
BIN
mailboxes/xinha/images/ed_format_sup.gif
Normal file
|
After Width: | Height: | Size: 67 B |
BIN
mailboxes/xinha/images/ed_format_underline.gif
Normal file
|
After Width: | Height: | Size: 69 B |
BIN
mailboxes/xinha/images/ed_help.gif
Normal file
|
After Width: | Height: | Size: 55 B |
BIN
mailboxes/xinha/images/ed_hr.gif
Normal file
|
After Width: | Height: | Size: 53 B |
BIN
mailboxes/xinha/images/ed_html.gif
Normal file
|
After Width: | Height: | Size: 64 B |
BIN
mailboxes/xinha/images/ed_image.gif
Normal file
|
After Width: | Height: | Size: 125 B |
BIN
mailboxes/xinha/images/ed_indent_less.gif
Normal file
|
After Width: | Height: | Size: 84 B |
BIN
mailboxes/xinha/images/ed_indent_more.gif
Normal file
|
After Width: | Height: | Size: 84 B |
BIN
mailboxes/xinha/images/ed_killword.gif
Normal file
|
After Width: | Height: | Size: 151 B |
BIN
mailboxes/xinha/images/ed_left_to_right.gif
Normal file
|
After Width: | Height: | Size: 72 B |
BIN
mailboxes/xinha/images/ed_link.gif
Normal file
|
After Width: | Height: | Size: 78 B |
BIN
mailboxes/xinha/images/ed_list_bullet.gif
Normal file
|
After Width: | Height: | Size: 72 B |
BIN
mailboxes/xinha/images/ed_list_num.gif
Normal file
|
After Width: | Height: | Size: 76 B |
BIN
mailboxes/xinha/images/ed_overwrite.gif
Normal file
|
After Width: | Height: | Size: 100 B |
BIN
mailboxes/xinha/images/ed_paste.gif
Normal file
|
After Width: | Height: | Size: 126 B |
BIN
mailboxes/xinha/images/ed_print.gif
Normal file
|
After Width: | Height: | Size: 117 B |
BIN
mailboxes/xinha/images/ed_redo.gif
Normal file
|
After Width: | Height: | Size: 67 B |
BIN
mailboxes/xinha/images/ed_right_to_left.gif
Normal file
|
After Width: | Height: | Size: 75 B |
BIN
mailboxes/xinha/images/ed_rmformat.gif
Normal file
|
After Width: | Height: | Size: 105 B |
BIN
mailboxes/xinha/images/ed_save.gif
Normal file
|
After Width: | Height: | Size: 128 B |
BIN
mailboxes/xinha/images/ed_save.png
Normal file
|
After Width: | Height: | Size: 230 B |
BIN
mailboxes/xinha/images/ed_saveas.gif
Normal file
|
After Width: | Height: | Size: 104 B |
BIN
mailboxes/xinha/images/ed_selectall.gif
Normal file
|
After Width: | Height: | Size: 150 B |
BIN
mailboxes/xinha/images/ed_show_border.gif
Normal file
|
After Width: | Height: | Size: 88 B |
BIN
mailboxes/xinha/images/ed_splitblock.gif
Normal file
|
After Width: | Height: | Size: 82 B |
BIN
mailboxes/xinha/images/ed_splitcel.gif
Normal file
|
After Width: | Height: | Size: 111 B |
BIN
mailboxes/xinha/images/ed_undo.gif
Normal file
|
After Width: | Height: | Size: 67 B |
BIN
mailboxes/xinha/images/ed_word_cleaner.gif
Normal file
|
After Width: | Height: | Size: 652 B |
BIN
mailboxes/xinha/images/fr/bold.gif
Normal file
|
After Width: | Height: | Size: 128 B |
BIN
mailboxes/xinha/images/fr/strikethrough.gif
Normal file
|
After Width: | Height: | Size: 131 B |
BIN
mailboxes/xinha/images/fr/underline.gif
Normal file
|
After Width: | Height: | Size: 134 B |
BIN
mailboxes/xinha/images/fullscreen_maximize.gif
Normal file
|
After Width: | Height: | Size: 87 B |
BIN
mailboxes/xinha/images/fullscreen_minimize.gif
Normal file
|
After Width: | Height: | Size: 87 B |
BIN
mailboxes/xinha/images/insert_table.gif
Normal file
|
After Width: | Height: | Size: 104 B |
BIN
mailboxes/xinha/images/insertfilelink.gif
Normal file
|
After Width: | Height: | Size: 148 B |
BIN
mailboxes/xinha/images/insertmacro.png
Normal file
|
After Width: | Height: | Size: 638 B |
BIN
mailboxes/xinha/images/tango/16x16/actions/document-new.png
Normal file
|
After Width: | Height: | Size: 477 B |
BIN
mailboxes/xinha/images/tango/16x16/actions/document-open.png
Normal file
|
After Width: | Height: | Size: 537 B |
BIN
mailboxes/xinha/images/tango/16x16/actions/document-print.png
Normal file
|
After Width: | Height: | Size: 544 B |
BIN
mailboxes/xinha/images/tango/16x16/actions/document-save.png
Normal file
|
After Width: | Height: | Size: 911 B |