remove htmlarea as it is replaced by tinymce

This commit is contained in:
Cornelius Weiß 2006-08-22 12:20:25 +00:00
parent 53ad443399
commit 91db5f97c7
287 changed files with 0 additions and 26026 deletions

View File

@ -1,73 +0,0 @@
// htmlArea v3.0 - Copyright (c) 2003-2004 interactivetools.com, inc.
// This copyright notice MUST stay intact for use (see license.txt).
//
// Portions (c) dynarch.com, 2003-2004
//
// A free WYSIWYG editor replacement for <textarea> fields.
// For full source code and docs, visit http://www.interactivetools.com/
//
// Version 3.0 developed by Mihai Bazon.
// http://dynarch.com/mishoo
//
// $Id$
// Though "Dialog" looks like an object, it isn't really an object. Instead
// it's just namespace for protecting global symbols.
function Dialog(url, action, init) {
if (typeof init == "undefined") {
init = window; // pass this window object by default
}
Dialog._geckoOpenModal(url, action, init);
};
Dialog._parentEvent = function(ev) {
setTimeout( function() { if (Dialog._modal && !Dialog._modal.closed) { Dialog._modal.focus() } }, 50);
if (Dialog._modal && !Dialog._modal.closed) {
HTMLArea._stopEvent(ev);
}
};
// 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) {
HTMLArea._addEvent(w, "click", Dialog._parentEvent);
HTMLArea._addEvent(w, "mousedown", Dialog._parentEvent);
HTMLArea._addEvent(w, "focus", Dialog._parentEvent);
};
// release the captured events
function relwin(w) {
HTMLArea._removeEvent(w, "click", Dialog._parentEvent);
HTMLArea._removeEvent(w, "mousedown", Dialog._parentEvent);
HTMLArea._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;
};
};

View File

@ -1,137 +0,0 @@
<html>
<head>
<title>Example of HTMLArea 3.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- load the main HTMLArea files -->
<script type="text/javascript" src="htmlarea.js"></script>
<script type="text/javascript" src="lang/en.js"></script>
<script type="text/javascript" src="dialog.js"></script>
<!-- <script type="text/javascript" src="popupdiv.js"></script> -->
<script type="text/javascript" src="popupwin.js"></script>
<!-- load the plugins -->
<script type="text/javascript">
// WARNING: using this interface to load plugin
// will _NOT_ work if plugins do not have the language
// loaded by HTMLArea.
// In other words, this function generates SCRIPT tags
// that load the plugin and the language file, based on the
// global variable HTMLArea.I18N.lang (defined in the lang file,
// in our case "lang/en.js" loaded above).
// If this lang file is not found the plugin will fail to
// load correctly and nothing will work.
HTMLArea.loadPlugin("TableOperations");
HTMLArea.loadPlugin("SpellChecker");
</script>
<style type="text/css">
@import url(htmlarea.css);
html, body {
font-family: Verdana,sans-serif;
background-color: #fea;
color: #000;
}
a:link, a:visited { color: #00f; }
a:hover { color: #048; }
a:active { color: #f00; }
textarea { background-color: #fff; border: 1px solid 00f; }
</style>
<script type="text/javascript">
var editor = null;
function initEditor() {
// create an editor for the "ta" textbox
editor = new HTMLArea("ta");
// register the SpellChecker plugin
editor.registerPlugin("TableOperations");
// register the SpellChecker plugin
editor.registerPlugin("SpellChecker");
editor.generate();
return false;
}
function insertHTML() {
var html = prompt("Enter some HTML code here");
if (html) {
editor.insertHTML(html);
}
}
function highlight() {
editor.surroundHTML('<span style="background-color: yellow">', '</span>');
}
</script>
</head>
<!-- use <body onload="HTMLArea.replaceAll()" if you don't care about
customizing the editor. It's the easiest way! :) -->
<body onload="initEditor()">
<h1>HTMLArea 3.0</h1>
<p>A replacement for <code>TEXTAREA</code> elements. &copy; <a
href="http://interactivetools.com">InteractiveTools.com</a>, 2003.</p>
<p>Plugins:
<tt>TableOperations<tt> |
<tt>SpellChecker</tt>
</p>
<form action="test.cgi" method="post" id="edit" name="edit">
<textarea id="ta" name="ta" style="width:100%" rows="24" cols="80">
<h1>This is the fully loaded HTMLArea ;-)</h1>
<p>It loads all the plugins that have been developed so far.</p>
<table style="background-color: #99f; border: 1px dashed #08f; width:
60%; border-collapse: collapse;" align="center">
<tr style="background-color: #fdd">
<td style="font-weight: bold; border: 1px solid #000;">Plugin</td>
<td style="font-weight: bold; border: 1px solid #000;">Sponsor</td>
</tr>
<tr>
<td style="font-family: monospace">TableOperations</td>
<td><a href="http://bloki.com">Zapatec, Inc.</a></td>
</tr>
<tr>
<td style="font-family: monospace">SpellChecker</td>
<td><a href="http://americanbible.org">Amerian Bible Society</a></td>
</tr>
</table>
</textarea>
<p />
<input type="submit" name="ok" value=" submit " />
<input type="button" name="ins" value=" insert html " onclick="return insertHTML();" />
<input type="button" name="hil" value=" highlight text " onclick="return highlight();" />
<a href="javascript:mySubmit()">submit</a>
<script type="text/javascript">
function mySubmit() {
// document.edit.save.value = "yes";
document.edit.onsubmit(); // workaround browser bugs.
document.edit.submit();
};
</script>
</form>
</body>
</html>

View File

@ -1,134 +0,0 @@
<html>
<head>
<title>Example of HTMLArea 3.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- load the main HTMLArea files -->
<script type="text/javascript" src="htmlarea.js"></script>
<script type="text/javascript" src="lang/en.js"></script>
<script type="text/javascript" src="dialog.js"></script>
<!-- <script type="text/javascript" src="popupdiv.js"></script> -->
<script type="text/javascript" src="popupwin.js"></script>
<!-- load the SpellChecker plugin files -->
<script type="text/javascript" src="plugins/SpellChecker/spell-checker.js"></script>
<script type="text/javascript" src="plugins/SpellChecker/lang/en.js"></script>
<style type="text/css">
@import url(htmlarea.css);
html, body {
font-family: Verdana,sans-serif;
background-color: #fea;
color: #000;
}
a:link, a:visited { color: #00f; }
a:hover { color: #048; }
a:active { color: #f00; }
textarea { background-color: #fff; border: 1px solid 00f; }
</style>
<script type="text/javascript">
var editor = null;
function initEditor() {
// create an editor for the "ta" textbox
editor = new HTMLArea("ta");
// register the SpellChecker plugin
editor.registerPlugin("SpellChecker");
editor.generate();
return false;
}
function insertHTML() {
var html = prompt("Enter some HTML code here");
if (html) {
editor.insertHTML(html);
}
}
function highlight() {
editor.surroundHTML('<span style="background-color: yellow">', '</span>');
}
</script>
</head>
<!-- use <body onload="HTMLArea.replaceAll()" if you don't care about
customizing the editor. It's the easiest way! :) -->
<body onload="initEditor()">
<h1>HTMLArea 3.0</h1>
<p>A replacement for <code>TEXTAREA</code> elements. &copy; <a
href="http://interactivetools.com">InteractiveTools.com</a>, 2003.</p>
<p>Plugins:
<tt>SpellChecker</tt> (sponsored by <a
href="http://americanbible.org">American Bible Society</a>).
</p>
<form action="test.cgi" method="post" id="edit" name="edit">
<textarea id="ta" name="ta" style="width:100%" rows="24" cols="80">
<h1>The <tt>SpellChecker</tt> plugin</h1>
<p>This file deminstrates the <tt>SpellChecker</tt> plugin of
HTMLArea. To inwoke the spell checkert you need to press the
<em>spell-check</em> buton in the toolbar.</p>
<p>The spell-checker uses a serverside script written in Perl. The
Perl script calls <a href="http://aspell.net">aspell</a> for any
word in the text and reports wordz that aren't found in the
dyctionari.</p>
<p>The document that yu are reading now <b>intentionaly</b> containes
some errorz, so that you have something to corect ;-)</p>
<p>Credits for the <tt>SpellChecker</tt> plugin go to:</p>
<ul>
<li><a href="http://aspell.net">Aspell</a> -- spell
checker</li>
<li>The <a href="http://perl.org">Perl</a> programming language</li>
<li><tt><a
href="http://cpan.org/modules/by-module/Text/Text-Aspell-0.02.readme">Text::Aspell</a></tt>
-- Perl interface to Aspell</li>
<li><a href="http://americanbible.org">American Bible Society</a> --
for sponsoring the <tt>SpellChecker</tt> plugin for
<tt>HTMLArea</tt></li>
<li><a href="http://students.infoiasi.ro/~mishoo/">Your humble servant</a> for
implementing it ;-)</li>
</ul>
</textarea>
<p />
<input type="submit" name="ok" value=" submit " />
<input type="button" name="ins" value=" insert html " onclick="return insertHTML();" />
<input type="button" name="hil" value=" highlight text " onclick="return highlight();" />
<a href="javascript:mySubmit()">submit</a>
<script type="text/javascript">
function mySubmit() {
// document.edit.save.value = "yes";
document.edit.onsubmit(); // workaround browser bugs.
document.edit.submit();
};
</script>
</form>
</body>
</html>

View File

@ -1,116 +0,0 @@
<html>
<head>
<title>Example of HTMLArea 3.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- load the main HTMLArea files -->
<script type="text/javascript" src="htmlarea.js"></script>
<script type="text/javascript" src="lang/en.js"></script>
<script type="text/javascript" src="dialog.js"></script>
<!-- <script type="text/javascript" src="popupdiv.js"></script> -->
<script type="text/javascript" src="popupwin.js"></script>
<!-- load the TableOperations plugin files -->
<script type="text/javascript" src="plugins/TableOperations/table-operations.js"></script>
<script type="text/javascript" src="plugins/TableOperations/lang/en.js"></script>
<style type="text/css">
@import url(htmlarea.css);
html, body {
font-family: Verdana,sans-serif;
background-color: #fea;
color: #000;
}
a:link, a:visited { color: #00f; }
a:hover { color: #048; }
a:active { color: #f00; }
textarea { background-color: #fff; border: 1px solid 00f; }
</style>
<script type="text/javascript">
var editor = null;
function initEditor() {
// create an editor for the "ta" textbox
editor = new HTMLArea("ta");
// register the TableOperations plugin with our editor
editor.registerPlugin("TableOperations");
editor.generate();
return false;
}
function insertHTML() {
var html = prompt("Enter some HTML code here");
if (html) {
editor.insertHTML(html);
}
}
function highlight() {
editor.surroundHTML('<span style="background-color: yellow">', '</span>');
}
</script>
</head>
<!-- use <body onload="HTMLArea.replaceAll()" if you don't care about
customizing the editor. It's the easiest way! :) -->
<body onload="initEditor()">
<h1>HTMLArea 3.0</h1>
<p>A replacement for <code>TEXTAREA</code> elements. &copy; <a
href="http://interactivetools.com">InteractiveTools.com</a>, 2003.</p>
<p>Page that demonstrates the additional features of the
<tt>TableOperations</tt> plugin (sponsored by <a
href="http://www.bloki.com">Zapatec Inc.</a>).</p>
<form action="test.cgi" method="post" id="edit" name="edit">
<textarea id="ta" name="ta" style="width:100%" rows="24" cols="80">
<h1>Plugin: <tt>TableOperations</tt></h1>
<p>This page exemplifies the table operations toolbar, provided by the
TableOperations plugin.</p>
<p>Following there is a table.</p>
<table border="1" style="border: 2px solid rgb(255, 0, 0); width: 80%; background-image: none; border-collapse: collapse; color: rgb(153, 102, 0); background-color: rgb(255, 255, 51);" align="center" cellspacing="2" cellpadding="1" summary="">
<caption>This <span style="font-weight: bold;">is</span> a table</caption>
<tbody>
<tr style="border-style: none; background-image: none; background-color: rgb(255, 255, 153);" char="." align="left" valign="middle"> <td>1.1</td> <td>1.2</td> <td>1.3</td> <td>1.4</td> </tr>
<tr> <td>2.1</td> <td style="border: 1px solid rgb(51, 51, 255); background-image: none; background-color: rgb(102, 255, 255); color: rgb(0, 0, 51);" char="." align="left" valign="middle">2.2</td> <td>2.3</td> <td>2.4</td> </tr>
<tr> <td>3.1</td> <td>3.2</td> <td style="border: 2px dashed rgb(51, 204, 102); background-image: none; background-color: rgb(102, 255, 153); color: rgb(0, 51, 0);" char="." align="left" valign="middle">3.3</td> <td>3.4</td> </tr>
<tr> <td style="background-color: rgb(255, 204, 51);">4.1</td> <td style="background-color: rgb(255, 204, 51);">4.2</td> <td style="background-color: rgb(255, 204, 51);">4.3</td> <td style="background-color: rgb(255, 204, 51);">4.4</td> </tr>
</tbody>
</table>
<p>Text after the table</p>
</textarea>
<p />
<input type="submit" name="ok" value=" submit " />
<input type="button" name="ins" value=" insert html " onclick="return insertHTML();" />
<input type="button" name="hil" value=" highlight text " onclick="return highlight();" />
<a href="javascript:mySubmit()">submit</a>
<script type="text/javascript">
function mySubmit() {
// document.edit.save.value = "yes";
document.edit.onsubmit(); // workaround browser bugs.
document.edit.submit();
};
</script>
</form>
</body>
</html>

View File

@ -1,181 +0,0 @@
<html>
<head>
<title>Example of HTMLArea 3.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="htmlarea.js"></script>
<script type="text/javascript" src="lang/en.js"></script>
<script type="text/javascript" src="dialog.js"></script>
<style type="text/css">
@import url(htmlarea.css);
html, body {
font-family: Verdana,sans-serif;
background-color: #fea;
color: #000;
}
a:link, a:visited { color: #00f; }
a:hover { color: #048; }
a:active { color: #f00; }
textarea { background-color: #fff; border: 1px solid 00f; }
</style>
<script type="text/javascript">
var editor = null;
function initEditor() {
editor = new HTMLArea("ta");
// comment the following two lines to see how customization works
editor.generate();
return false;
var cfg = editor.config; // this is the default configuration
cfg.registerButton({
id : "my-hilite",
tooltip : "Highlight text",
image : "ed_custom.gif",
textMode : false,
action : function(editor) {
editor.surroundHTML("<span class=\"hilite\">", "</span>");
},
context : 'table'
});
cfg.toolbar.push(["linebreak", "my-hilite"]); // add the new button to the toolbar
// BEGIN: code that adds a custom button
// uncomment it to test
var cfg = editor.config; // this is the default configuration
/*
cfg.registerButton({
id : "my-hilite",
tooltip : "Highlight text",
image : "ed_custom.gif",
textMode : false,
action : function(editor) {
editor.surroundHTML("<span class=\"hilite\">", "</span>");
}
});
*/
function clickHandler(editor, buttonId) {
switch (buttonId) {
case "my-toc":
editor.insertHTML("<h1>Table Of Contents</h1>");
break;
case "my-date":
editor.insertHTML((new Date()).toString());
break;
case "my-bold":
editor.execCommand("bold");
editor.execCommand("italic");
break;
case "my-hilite":
editor.surroundHTML("<span class=\"hilite\">", "</span>");
break;
}
};
cfg.registerButton("my-toc", "Insert TOC", "ed_custom.gif", false, clickHandler);
cfg.registerButton("my-date", "Insert date/time", "ed_custom.gif", false, clickHandler);
cfg.registerButton("my-bold", "Toggle bold/italic", "ed_custom.gif", false, clickHandler);
cfg.registerButton("my-hilite", "Hilite selection", "ed_custom.gif", false, clickHandler);
cfg.registerButton("my-sample", "Class: sample", "ed_custom.gif", false,
function(editor) {
if (HTMLArea.is_ie) {
editor.insertHTML("<span class=\"sample\">&nbsp;&nbsp;</span>");
var r = editor._doc.selection.createRange();
r.move("character", -2);
r.moveEnd("character", 2);
r.select();
} else { // Gecko/W3C compliant
var n = editor._doc.createElement("span");
n.className = "sample";
editor.insertNodeAtSelection(n);
var sel = editor._iframe.contentWindow.getSelection();
sel.removeAllRanges();
var r = editor._doc.createRange();
r.setStart(n, 0);
r.setEnd(n, 0);
sel.addRange(r);
}
}
);
/*
cfg.registerButton("my-hilite", "Highlight text", "ed_custom.gif", false,
function(editor) {
editor.surroundHTML('<span class="hilite">', '</span>');
}
);
*/
cfg.pageStyle = "body { background-color: #efd; } .hilite { background-color: yellow; } "+
".sample { color: green; font-family: monospace; }";
cfg.toolbar.push(["linebreak", "my-toc", "my-date", "my-bold", "my-hilite", "my-sample"]); // add the new button to the toolbar
// END: code that adds a custom button
editor.generate();
}
function insertHTML() {
var html = prompt("Enter some HTML code here");
if (html) {
editor.insertHTML(html);
}
}
function highlight() {
editor.surroundHTML('<span style="background-color: yellow">', '</span>');
}
</script>
</head>
<!-- use <body onload="HTMLArea.replaceAll()" if you don't care about
customizing the editor. It's the easiest way! :) -->
<body onload="initEditor()">
<h1>HTMLArea 3.0</h1>
<p>A replacement for <code>TEXTAREA</code> elements. &copy; <a
href="http://interactivetools.com">InteractiveTools.com</a>, 2003.</p>
<form action="test.cgi" method="post" id="edit" name="edit">
<textarea id="ta" name="ta" style="width:100%" rows="20" cols="80">
&lt;p&gt;Here is some sample text: &lt;b&gt;bold&lt;/b&gt;, &lt;i&gt;italic&lt;/i&gt;, &lt;u&gt;underline&lt;/u&gt;. &lt;/p&gt;
&lt;p align=center&gt;Different fonts, sizes and colors (all in bold):&lt;/p&gt;
&lt;p&gt;&lt;b&gt;
&lt;font face="arial" size="7" color="#000066"&gt;arial&lt;/font&gt;,
&lt;font face="courier new" size="6" color="#006600"&gt;courier new&lt;/font&gt;,
&lt;font face="georgia" size="5" color="#006666"&gt;georgia&lt;/font&gt;,
&lt;font face="tahoma" size="4" color="#660000"&gt;tahoma&lt;/font&gt;,
&lt;font face="times new roman" size="3" color="#660066"&gt;times new roman&lt;/font&gt;,
&lt;font face="verdana" size="2" color="#666600"&gt;verdana&lt;/font&gt;,
&lt;font face="tahoma" size="1" color="#666666"&gt;tahoma&lt;/font&gt;
&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Click on &lt;a href="http://www.interactivetools.com/"&gt;this link&lt;/a&gt; and then on the link button to the details ... OR ... select some text and click link to create a &lt;b&gt;new&lt;/b&gt; link.&lt;/p&gt;
</textarea>
<p />
<input type="submit" name="ok" value=" submit " />
<input type="button" name="ins" value=" insert html " onclick="return insertHTML();" />
<input type="button" name="hil" value=" highlight text " onclick="return highlight();" />
<a href="javascript:mySubmit()">submit</a>
<script type="text/javascript">
function mySubmit() {
// document.edit.save.value = "yes";
document.edit.onsubmit(); // workaround browser bugs.
document.edit.submit();
};
</script>
</form>
</body>
</html>

View File

@ -1,16 +0,0 @@
#! /usr/bin/perl -w
use strict;
use CGI;
my $cgi = new CGI;
my $text1 = $cgi->param('text1');
my $text2 = $cgi->param('text2');
print "Content-type: text/html\n\n";
print "<p>You submitted:</p>";
print "<table border='1'>";
print "<thead><tr bgcolor='#cccccc'><td width='50%'>text1</td><td width='50%'>text2</td></tr></thead>";
print "<tbody><tr><td>$text1</td><td>$text2</td></tr></tbody>";
print "</table>";

View File

@ -1,158 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Example with 2 HTMLAreas in the same form</title>
<script type="text/javascript">
// the _editor_url is REQUIRED! don't forget to set it.
_editor_url = "../";
// implicit language will be "en", but let's set it for brevity
_editor_lang = "en";
</script>
<script type="text/javascript" src="../htmlarea.js"></script>
<script type="text/javascript">
// load the plugins that we will use
// loading is necessary ONLY ONCE, regardless on how many editors you create
// basically calling the following functions will load the plugin files as if
// we would have wrote script src="..." but with easier and cleaner code
HTMLArea.loadPlugin("TableOperations");
HTMLArea.loadPlugin("SpellChecker");
HTMLArea.loadPlugin("CSS");
// this function will get called at body.onload
function initDocument() {
// cache these values as we need to pass it for both editors
var css_plugin_args = {
combos : [
{ label: "Syntax",
// menu text // CSS class
options: { "None" : "",
"Code" : "code",
"String" : "string",
"Comment" : "comment",
"Variable name" : "variable-name",
"Type" : "type",
"Reference" : "reference",
"Preprocessor" : "preprocessor",
"Keyword" : "keyword",
"Function name" : "function-name",
"Html tag" : "html-tag",
"Html italic" : "html-helper-italic",
"Warning" : "warning",
"Html bold" : "html-helper-bold"
},
context: "pre"
},
{ label: "Info",
options: { "None" : "",
"Quote" : "quote",
"Highlight" : "highlight",
"Deprecated" : "deprecated"
}
}
]
};
//---------------------------------------------------------------------
// GENERAL PATTERN
//
// 1. Instantitate an editor object.
// 2. Register plugins (note, it's required to have them loaded).
// 3. Configure any other items in editor.config.
// 4. generate() the editor
//
// The above are steps that you use to create one editor. Nothing new
// so far. In order to create more than one editor, you just have to
// repeat those steps for each of one. Of course, you can register any
// plugins you want (no need to register the same plugins for all
// editors, and to demonstrate that we'll skip the TableOperations
// plugin for the second editor). Just be careful to pass different
// ID-s in the constructor (you don't want to _even try_ to create more
// editors for the same TEXTAREA element ;-)).
//
// So much for the noise, see the action below.
//---------------------------------------------------------------------
//---------------------------------------------------------------------
// CREATE FIRST EDITOR
//
var editor1 = new HTMLArea("text-area-1");
// plugins must be registered _per editor_. Therefore, we register
// plugins for the first editor here, and we will also do this for the
// second editor.
editor1.registerPlugin(TableOperations);
editor1.registerPlugin(SpellChecker);
editor1.registerPlugin(CSS, css_plugin_args);
// custom config must be done per editor. Here we're importing the
// stylesheet used by the CSS plugin.
editor1.config.pageStyle = "@import url(custom.css);";
// generate first editor
editor1.generate();
//---------------------------------------------------------------------
//---------------------------------------------------------------------
// CREATE SECOND EDITOR
//
var editor2 = new HTMLArea("text-area-2");
// we are using the same plugins
editor2.registerPlugin(TableOperations);
editor2.registerPlugin(SpellChecker);
editor2.registerPlugin(CSS, css_plugin_args);
// import the CSS plugin styles
editor2.config.pageStyle = "@import url(custom.css);";
// generate the second editor
// IMPORTANT: if we don't give it a timeout, the first editor will
// not function in Mozilla. Soon I'll think about starting to
// implement some kind of event that will fire when the editor
// finished creating, then we'll be able to chain the generate()
// calls in an elegant way. But right now there's no other solution
// than the following.
setTimeout(function() {
editor2.generate();
}, 500);
//---------------------------------------------------------------------
};
</script>
</head>
<body onload="initDocument()">
<h1>Example with 2 HTMLAreas in the same form</h1>
<form action="2-areas.cgi" method="post" target="_blank">
<input type="submit" value=" Submit " />
<br />
<textarea id="text-area-1" name="text1" style="width: 100%; height: 12em">
&lt;h3&gt;HTMLArea #1&lt;/h3&gt;
&lt;p&gt;This will submit a field named &lt;em&gt;text1&lt;/em&gt;.&lt;/p&gt;
</textarea>
<br />
<textarea id="text-area-2" name="text2" style="width: 100%; height: 12em">
&lt;h3&gt;Second HTMLArea&lt;/h3&gt; &lt;p&gt;&lt;em&gt;text2&lt;/em&gt; submission. Both are
located in the same FORM element and the script action is
2-areas.cgi (see it in the examples directory)&lt;/p&gt;
</textarea>
<br />
<input type="submit" value=" Submit " />
</form>
<hr>
<address><a href="http://dynarch.com/mishoo/">Mihai Bazon</a></address>
<!-- Created: Fri Oct 31 09:37:10 EET 2003 -->
<!-- hhmts start --> Last modified: Wed Jan 28 11:10:40 EET 2004 <!-- hhmts end -->
<!-- doc-lang: English -->
</body>
</html>

View File

@ -1,95 +0,0 @@
<html>
<head>
<title>Test of ContextMenu plugin</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
_editor_url = "../";
_editor_lang = "en";
</script>
<!-- load the main HTMLArea file -->
<script type="text/javascript" src="../htmlarea.js"></script>
<script type="text/javascript">
HTMLArea.loadPlugin("ContextMenu");
HTMLArea.loadPlugin("TableOperations");
function initDocument() {
var editor = new HTMLArea("editor");
editor.registerPlugin(ContextMenu);
editor.registerPlugin(TableOperations);
editor.generate();
}
</script>
</head>
<body onload="initDocument()">
<h1>Test of ContextMenu plugin</h1>
<textarea id="editor" style="height: 30em; width: 100%;">
&lt;table border="1" style="border: 1px dotted rgb(0, 102, 255); width:
100%; background-color: rgb(255, 204, 51); background-image: none; float:
none; text-align: left; vertical-align: top; border-collapse: collapse;"
summary="" cellspacing="" cellpadding="" frame="box"
rules="all"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="border: 1px solid
rgb(255, 0, 0); background-color: rgb(0, 51, 51); background-image: none;
text-align: left; vertical-align: top;"&gt;&lt;a
href="http://dynarch.com/mishoo/articles.epl?art_id=430"&gt;&lt;img
src="http://127.0.0.1/~mishoo/htmlarea/examples/pieng.png" alt="" align=""
border="0" hspace="0" vspace="0" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td
style="border: 1px solid rgb(255, 0, 0); background-color: rgb(255, 255, 0);
background-image: none; text-align: left; vertical-align: top;"&gt;The
article linked on the left image presents a script that allows Internet
Explorer to use PNG images. We hope to be able to implement IE PNG support
in HTMLArea soon.&lt;br /&gt; &lt;br /&gt; Go on, right-click everywhere and
test our new context menus. And be thankful to &lt;a
href="http://www.americanbible.org/"&gt;American Bible Society&lt;/a&gt; who
sponsored the development, &lt;a
href="http://dynarch.com/mishoo/"&gt;mishoo&lt;/a&gt; who made it happen and
God, Who keeps mishoo alife. ;-)&lt;br /&gt; &lt;br /&gt;&lt;span
style="font-style: italic;"&gt;P.S.&lt;/span&gt; No animals were harmed
while producing this movie.&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-style: none;
background-color: rgb(255, 255, 51); background-image: none; text-align:
left; vertical-align: top;"&gt;Welcome to HTMLArea, the best online
editor.&lt;br /&gt;&lt;/td&gt;&lt;td&gt;HTMLArea is a project initiated by
&lt;a href="http://interactivetools.com/"&gt;InteractiveTools.com&lt;/a&gt;.
Other companies contributed largely by sponsoring the development of
additional extensions. Many thanks to:&lt;br /&gt; &lt;br
style="font-family: courier new,courier,monospace;" /&gt; &lt;div
style="margin-left: 40px;"&gt;&lt;a href="http://www.zapatec.com/"
style="font-family: courier
new,courier,monospace;"&gt;http://www.zapatec.com&lt;/a&gt;&lt;br
style="font-family: courier new,courier,monospace;" /&gt; &lt;a
href="http://www.americanbible.org/" style="font-family: courier
new,courier,monospace;"&gt;http://www.americanbible.org&lt;/a&gt;&lt;br
style="font-family: courier new,courier,monospace;" /&gt; &lt;a
href="http://www.neomedia.ro/" style="font-family: courier
new,courier,monospace;"&gt;http://www.neomedia.ro&lt;/a&gt;&lt;br
style="font-family: courier new,courier,monospace;" /&gt; &lt;a
href="http://www.os3.it/" style="font-family: courier
new,courier,monospace;"&gt;http://www.os3.it&lt;/a&gt;&lt;br
style="font-family: courier new,courier,monospace;" /&gt; &lt;a
href="http://www.miro.com.au/" style="font-family: courier
new,courier,monospace;"&gt;http://www.miro.com.au&lt;/a&gt;&lt;br
style="font-family: courier new,courier,monospace;" /&gt; &lt;a
href="http://www.thycotic.com/" style="font-family: courier
new,courier,monospace;"&gt;http://www.thycotic.com&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt; &lt;br /&gt; and to all the posters at <a
href="http://www.interactivetools.com/iforum/Open_Source_C3/htmlArea_v3.0_-_Alpha_Release_F14/
">InteractiveTools</a> HTMLArea forums, whose feedback is continually
useful in polishing HTMLArea.&lt;br /&gt; &lt;br /&gt;&lt;div
style="text-align: right;"&gt;-- developers and maintainers of version 3,
&lt;a href="http://dynarch.com/"&gt;dynarch.com&lt;/a&gt;.&lt;br
/&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
</textarea>
<hr />
<address><a href="http://dynarch.com/mishoo/">Mihai Bazon</a></address>
<!-- Created: Wed Oct 1 19:55:37 EEST 2003 -->
<!-- hhmts start --> Last modified: Wed Jan 28 11:10:29 EET 2004 <!-- hhmts end -->
<!-- doc-lang: English -->
</body>
</html>

View File

@ -1,184 +0,0 @@
<html>
<head>
<title>Example of HTMLArea 3.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Configure the path to the editor. We make it relative now, so that the
example ZIP file will work anywhere, but please NOTE THAT it's better to
have it an absolute path, such as '/htmlarea/'. -->
<script type="text/javascript">
_editor_url = "../";
_editor_lang = "en";
</script>
<script type="text/javascript" src="../htmlarea.js"></script>
<style type="text/css">
html, body {
font-family: Verdana,sans-serif;
background-color: #fea;
color: #000;
}
a:link, a:visited { color: #00f; }
a:hover { color: #048; }
a:active { color: #f00; }
textarea { background-color: #fff; border: 1px solid 00f; }
</style>
<script type="text/javascript">
var editor = null;
function initEditor() {
editor = new HTMLArea("ta");
// comment the following two lines to see how customization works
editor.generate();
return false;
var cfg = editor.config; // this is the default configuration
cfg.registerButton({
id : "my-hilite",
tooltip : "Highlight text",
image : "ed_custom.gif",
textMode : false,
action : function(editor) {
editor.surroundHTML("<span class=\"hilite\">", "</span>");
},
context : 'table'
});
cfg.toolbar.push(["linebreak", "my-hilite"]); // add the new button to the toolbar
// BEGIN: code that adds a custom button
// uncomment it to test
var cfg = editor.config; // this is the default configuration
/*
cfg.registerButton({
id : "my-hilite",
tooltip : "Highlight text",
image : "ed_custom.gif",
textMode : false,
action : function(editor) {
editor.surroundHTML("<span class=\"hilite\">", "</span>");
}
});
*/
function clickHandler(editor, buttonId) {
switch (buttonId) {
case "my-toc":
editor.insertHTML("<h1>Table Of Contents</h1>");
break;
case "my-date":
editor.insertHTML((new Date()).toString());
break;
case "my-bold":
editor.execCommand("bold");
editor.execCommand("italic");
break;
case "my-hilite":
editor.surroundHTML("<span class=\"hilite\">", "</span>");
break;
}
};
cfg.registerButton("my-toc", "Insert TOC", "ed_custom.gif", false, clickHandler);
cfg.registerButton("my-date", "Insert date/time", "ed_custom.gif", false, clickHandler);
cfg.registerButton("my-bold", "Toggle bold/italic", "ed_custom.gif", false, clickHandler);
cfg.registerButton("my-hilite", "Hilite selection", "ed_custom.gif", false, clickHandler);
cfg.registerButton("my-sample", "Class: sample", "ed_custom.gif", false,
function(editor) {
if (HTMLArea.is_ie) {
editor.insertHTML("<span class=\"sample\">&nbsp;&nbsp;</span>");
var r = editor._doc.selection.createRange();
r.move("character", -2);
r.moveEnd("character", 2);
r.select();
} else { // Gecko/W3C compliant
var n = editor._doc.createElement("span");
n.className = "sample";
editor.insertNodeAtSelection(n);
var sel = editor._iframe.contentWindow.getSelection();
sel.removeAllRanges();
var r = editor._doc.createRange();
r.setStart(n, 0);
r.setEnd(n, 0);
sel.addRange(r);
}
}
);
/*
cfg.registerButton("my-hilite", "Highlight text", "ed_custom.gif", false,
function(editor) {
editor.surroundHTML('<span class="hilite">', '</span>');
}
);
*/
cfg.pageStyle = "body { background-color: #efd; } .hilite { background-color: yellow; } "+
".sample { color: green; font-family: monospace; }";
cfg.toolbar.push(["linebreak", "my-toc", "my-date", "my-bold", "my-hilite", "my-sample"]); // add the new button to the toolbar
// END: code that adds a custom button
editor.generate();
}
function insertHTML() {
var html = prompt("Enter some HTML code here");
if (html) {
editor.insertHTML(html);
}
}
function highlight() {
editor.surroundHTML('<span style="background-color: yellow">', '</span>');
}
</script>
</head>
<!-- use <body onload="HTMLArea.replaceAll()" if you don't care about
customizing the editor. It's the easiest way! :) -->
<body onload="initEditor()">
<h1>HTMLArea 3.0</h1>
<p>A replacement for <code>TEXTAREA</code> elements. &copy; <a
href="http://interactivetools.com">InteractiveTools.com</a>, 2003-2004.</p>
<form action="test.cgi" method="post" id="edit" name="edit">
<textarea id="ta" name="ta" style="width:100%" rows="20" cols="80">
&lt;p&gt;Here is some sample text: &lt;b&gt;bold&lt;/b&gt;, &lt;i&gt;italic&lt;/i&gt;, &lt;u&gt;underline&lt;/u&gt;. &lt;/p&gt;
&lt;p align=center&gt;Different fonts, sizes and colors (all in bold):&lt;/p&gt;
&lt;p&gt;&lt;b&gt;
&lt;font face="arial" size="7" color="#000066"&gt;arial&lt;/font&gt;,
&lt;font face="courier new" size="6" color="#006600"&gt;courier new&lt;/font&gt;,
&lt;font face="georgia" size="5" color="#006666"&gt;georgia&lt;/font&gt;,
&lt;font face="tahoma" size="4" color="#660000"&gt;tahoma&lt;/font&gt;,
&lt;font face="times new roman" size="3" color="#660066"&gt;times new roman&lt;/font&gt;,
&lt;font face="verdana" size="2" color="#666600"&gt;verdana&lt;/font&gt;,
&lt;font face="tahoma" size="1" color="#666666"&gt;tahoma&lt;/font&gt;
&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Click on &lt;a href="http://www.interactivetools.com/"&gt;this link&lt;/a&gt; and then on the link button to the details ... OR ... select some text and click link to create a &lt;b&gt;new&lt;/b&gt; link.&lt;/p&gt;
</textarea>
<p />
<input type="submit" name="ok" value=" submit " />
<input type="button" name="ins" value=" insert html " onclick="return insertHTML();" />
<input type="button" name="hil" value=" highlight text " onclick="return highlight();" />
<a href="javascript:mySubmit()">submit</a>
<script type="text/javascript">
function mySubmit() {
// document.edit.save.value = "yes";
document.edit.onsubmit(); // workaround browser bugs.
document.edit.submit();
};
</script>
</form>
</body>
</html>

View File

@ -1,88 +0,0 @@
<html>
<head>
<title>Test of CSS plugin</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
_editor_url = "../";
_editor_lang = "en";
</script>
<!-- load the main HTMLArea files -->
<script type="text/javascript" src="../htmlarea.js"></script>
<script type="text/javascript">
HTMLArea.loadPlugin("CSS");
function initDocument() {
var editor = new HTMLArea("editor");
editor.config.pageStyle = "@import url(custom.css);";
editor.registerPlugin(CSS, {
combos : [
{ label: "Syntax",
// menu text // CSS class
options: { "None" : "",
"Code" : "code",
"String" : "string",
"Comment" : "comment",
"Variable name" : "variable-name",
"Type" : "type",
"Reference" : "reference",
"Preprocessor" : "preprocessor",
"Keyword" : "keyword",
"Function name" : "function-name",
"Html tag" : "html-tag",
"Html italic" : "html-helper-italic",
"Warning" : "warning",
"Html bold" : "html-helper-bold"
},
context: "pre"
},
{ label: "Info",
options: { "None" : "",
"Quote" : "quote",
"Highlight" : "highlight",
"Deprecated" : "deprecated"
}
}
]
});
editor.generate();
}
</script>
</head>
<body onload="initDocument()">
<h1>Test of FullPage plugin</h1>
<textarea id="editor" style="height: 30em; width: 100%;"
>&lt;h1&gt;&lt;tt&gt;registerDropdown&lt;/tt&gt;&lt;/h1&gt;
&lt;p&gt;Here's some sample code that adds a dropdown to the toolbar. Go on, do
syntax highlighting on it ;-)&lt;/p&gt;
&lt;pre&gt;var the_options = {
"Keyword" : "keyword",
"Function name" : "function-name",
"String" : "string",
"Numeric" : "integer",
"Variable name" : "variable"
};
var css_class = {
id : "CSS-class",
tooltip : i18n["tooltip"],
options : the_options,
action : function(editor) { self.onSelect(editor, this); }
};
cfg.registerDropdown(css_class);
toolbar[0].unshift(["CSS-class"]);&lt;/pre&gt;
&lt;p&gt;Easy, eh? ;-)&lt;/p&gt;</textarea>
<hr />
<address><a href="http://dynarch.com/mishoo/">Mihai Bazon</a></address>
<!-- Created: Wed Oct 1 19:55:37 EEST 2003 -->
<!-- hhmts start --> Last modified: Wed Jan 28 11:10:16 EET 2004 <!-- hhmts end -->
<!-- doc-lang: English -->
</body>
</html>

View File

@ -1,29 +0,0 @@
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; }

View File

@ -1,75 +0,0 @@
<html>
<head>
<title>Test of FullPage plugin</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
_editor_url = "../";
_editor_lang = "en";
</script>
<!-- load the main HTMLArea files -->
<script type="text/javascript" src="../htmlarea.js"></script>
<script type="text/javascript">
HTMLArea.loadPlugin("FullPage");
function initDocument() {
var editor = new HTMLArea("editor");
editor.registerPlugin(FullPage);
editor.generate();
}
</script>
</head>
<body onload="initDocument()">
<h1>Test of FullPage plugin</h1>
<textarea id="editor" style="height: 30em; width: 100%;">
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;FullPage plugin for HTMLArea&lt;/title&gt;
&lt;link rel="alternate stylesheet" href="http://dynarch.com/mishoo/css/dark.css" /&gt;
&lt;link rel="stylesheet" href="http://dynarch.com/mishoo/css/cool-light.css" /&gt;
&lt;/head&gt;
&lt;body style="background-color: #ddddee; color: #000077;"&gt;
&lt;table style="width:60%; height: 90%; margin: 2% auto 1% auto;" align="center" border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td style="background-color: #ddeedd; border: 2px solid #002; height: 1.5em; padding: 2px; font: bold 24px Verdana;"&gt;
FullPage plugin
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="background-color: #fff; border: 1px solid #aab; padding: 1em 3em; font: 12px Verdana;"&gt;
&lt;p&gt;
This plugin enables one to edit a full HTML file in &lt;a
href="http://dynarch.com/htmlarea/"&gt;HTMLArea&lt;/a&gt;. This is not
normally possible with just the core editor since it only
retrieves the HTML inside the &lt;code&gt;body&lt;/code&gt; tag.
&lt;/p&gt;
&lt;p&gt;
It provides the ability to change the &lt;code&gt;DOCTYPE&lt;/code&gt; of
the document, &lt;code&gt;body&lt;/code&gt; &lt;code&gt;bgcolor&lt;/code&gt; and
&lt;code&gt;fgcolor&lt;/code&gt; attributes as well as to add additional
&lt;code&gt;link&lt;/code&gt;-ed stylesheets. Cool, eh?
&lt;/p&gt;
&lt;p&gt;
The development of this plugin was initiated and sponsored by
&lt;a href="http://thycotic.com"&gt;Thycotic Software Ltd.&lt;/a&gt;.
That's also cool, isn't it? ;-)
&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea>
<hr />
<address><a href="http://dynarch.com/mishoo/">Mihai Bazon</a></address>
<!-- Created: Wed Oct 1 19:55:37 EEST 2003 -->
<!-- hhmts start --> Last modified: Wed Jan 28 11:10:07 EET 2004 <!-- hhmts end -->
<!-- doc-lang: English -->
</body>
</html>

View File

@ -1,256 +0,0 @@
<html>
<head>
<title>Example of HTMLArea 3.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Configure the path to the editor. We make it relative now, so that the
example ZIP file will work anywhere, but please NOTE THAT it's better to
have it an absolute path, such as '/htmlarea/'. -->
<script type="text/javascript">
_editor_url = "../";
_editor_lang = "en";
</script>
<!-- load the main HTMLArea file, this will take care of loading the CSS and
other required core scripts. -->
<script type="text/javascript" src="../htmlarea.js"></script>
<!-- load the plugins -->
<script type="text/javascript">
// WARNING: using this interface to load plugin
// will _NOT_ work if plugins do not have the language
// loaded by HTMLArea.
// In other words, this function generates SCRIPT tags
// that load the plugin and the language file, based on the
// global variable HTMLArea.I18N.lang (defined in the lang file,
// in our case "lang/en.js" loaded above).
// If this lang file is not found the plugin will fail to
// load correctly and nothing will work.
HTMLArea.loadPlugin("TableOperations");
HTMLArea.loadPlugin("SpellChecker");
HTMLArea.loadPlugin("FullPage");
HTMLArea.loadPlugin("CSS");
HTMLArea.loadPlugin("ContextMenu");
HTMLArea.loadPlugin("HtmlTidy");
HTMLArea.loadPlugin("ListType");
</script>
<style type="text/css">
html, body {
font-family: Verdana,sans-serif;
background-color: #fea;
color: #000;
}
a:link, a:visited { color: #00f; }
a:hover { color: #048; }
a:active { color: #f00; }
textarea { background-color: #fff; border: 1px solid 00f; }
</style>
<script type="text/javascript">
var editor = null;
function initEditor() {
// create an editor for the "ta" textbox
editor = new HTMLArea("ta");
// register the FullPage plugin
editor.registerPlugin(FullPage);
// register the SpellChecker plugin
editor.registerPlugin(TableOperations);
// register the SpellChecker plugin
editor.registerPlugin(SpellChecker);
// register the HtmlTidy plugin
editor.registerPlugin(HtmlTidy);
// register the ListType plugin
editor.registerPlugin(ListType);
// register the CSS plugin
editor.registerPlugin(CSS, {
combos : [
{ label: "Syntax:",
// menu text // CSS class
options: { "None" : "",
"Code" : "code",
"String" : "string",
"Comment" : "comment",
"Variable name" : "variable-name",
"Type" : "type",
"Reference" : "reference",
"Preprocessor" : "preprocessor",
"Keyword" : "keyword",
"Function name" : "function-name",
"Html tag" : "html-tag",
"Html italic" : "html-helper-italic",
"Warning" : "warning",
"Html bold" : "html-helper-bold"
},
context: "pre"
},
{ label: "Info:",
options: { "None" : "",
"Quote" : "quote",
"Highlight" : "highlight",
"Deprecated" : "deprecated"
}
}
]
});
// add a contextual menu
editor.registerPlugin("ContextMenu");
// load the stylesheet used by our CSS plugin configuration
editor.config.pageStyle = "@import url(custom.css);";
setTimeout(function() {
editor.generate();
}, 500);
return false;
}
function insertHTML() {
var html = prompt("Enter some HTML code here");
if (html) {
editor.insertHTML(html);
}
}
function highlight() {
editor.surroundHTML('<span style="background-color: yellow">', '</span>');
}
</script>
</head>
<!-- use <body onload="HTMLArea.replaceAll()" if you don't care about
customizing the editor. It's the easiest way! :) -->
<body onload="initEditor()">
<h1>HTMLArea 3.0</h1>
<p>A replacement for <code>TEXTAREA</code> elements. &copy; <a
href="http://interactivetools.com">InteractiveTools.com</a>, 2003-2004.</p>
<form action="test.cgi" method="post" id="edit" name="edit">
<textarea id="ta" name="ta" style="width:100%" rows="24" cols="80">
&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Passing parameters to JavaScript code&lt;/title&gt;
&lt;link rel="stylesheet" href="custom.css" /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Passing parameters to JavaScript code&lt;/h1&gt;
&lt;p&gt;Sometimes we need to pass parameters to some JavaScript function that we
wrote ourselves. But sometimes it's simply more convenient to include the
parameter not in the function call, but in the affected HTML elements.
Usually, all JavaScript calls affect some element, right? ;-)&lt;/p&gt;
&lt;p&gt;Well, here's an original way to do it. Or at least, I think it's
original.&lt;/p&gt;
&lt;h2&gt;But first...&lt;/h2&gt;
&lt;p&gt;... an example. Why would I need such thing? I have a JS function that
is called on &lt;code&gt;BODY&lt;/code&gt; &lt;code&gt;onload&lt;/code&gt; handler. This function
tries to retrieve the element with the ID "conttoc" and, if present, it will
&lt;a href="toc.epl" title="Automatic TOC generation"&gt;generate an index&lt;/a&gt;.
The problem is, this function exists in some external JavaScript library
that it's loaded in page. I only needed to pass the parameter from
&lt;em&gt;one&lt;/em&gt; page. Thus, it makes sense to pass the parameter from the HTML
code on &lt;em&gt;that&lt;/em&gt; page, not to affect the others.&lt;/p&gt;
&lt;p&gt;The first idea that came to me was to use some attribute, like "id" or
"class". But "id" was locked already, it &lt;em&gt;had&lt;/em&gt; to be "conttoc". Use
"class"? It's not elegant.. what if I really wanted to give it a class, at
some point?&lt;/p&gt;
&lt;h2&gt;The idea&lt;/h2&gt;
&lt;p&gt;So I thought: what are the HTML elements that do not affect the page
rendering in any way? Well, comments. I mean, &lt;em&gt;comments&lt;/em&gt;, HTML
comments. You know, like &lt;code&gt;&amp;lt;!-- this is a comment --&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Though comments do not normally affect the way browser renders the page,
they are still parsed and are part of the DOM, as well as any other node.
But this mean that we can access comments from JavaScript code, just like we
access any other element, right? Which means that they &lt;em&gt;can&lt;/em&gt; affect
the way that page finally appears ;-)&lt;/p&gt;
&lt;h2&gt;The code&lt;/h2&gt;
&lt;p&gt;The main part was the idea. The code is simple ;-) Suppose we have the
following HTML code:&lt;/p&gt;
&lt;pre class="code"&gt;&lt;span class="function-name"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html-tag"&gt;div&lt;/span&gt; &lt;span class="variable-name"&gt;id=&lt;/span&gt;&lt;span class="string"&gt;&amp;quot;conttoc&amp;quot;&lt;/span&gt;&lt;span class="paren-face-match"&gt;&amp;gt;&lt;/span&gt;&lt;span class="function-name"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html-tag"&gt;/div&lt;/span&gt;&lt;span class="function-name"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;and our function checks for the presence an element having the ID
"conttoc", and generates a table of contents into it. Our code will also
check if the "conttoc" element's first child is a comment node, and if so
will parse additional parameters from there, for instance, a desired prefix
for the links that are to be generated into it. Why did I need it? Because
if the page uses a &lt;code&gt;&amp;lt;base&amp;gt;&lt;/code&gt; element to specify the default
link prefix, then links like "#gen1" generated by the &lt;a href="toc.epl"&gt;toc
generator&lt;/a&gt; will not point to that same page as they should, but to the
page reffered from &lt;code&gt;&amp;lt;base&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;So the HTML would now look like this:&lt;/p&gt;
&lt;pre class="code"&gt;&lt;span class="function-name"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html-tag"&gt;div&lt;/span&gt; &lt;span class="variable-name"&gt;id=&lt;/span&gt;&lt;span class="string"&gt;&amp;quot;conttoc&amp;quot;&lt;/span&gt;&lt;span class="function-name"&gt;&amp;gt;&lt;/span&gt;&lt;span class="comment"&gt;&amp;lt;!-- base:link/prefix.html --&amp;gt;&lt;/span&gt;&lt;span class="paren-face-match"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html-tag"&gt;/div&lt;/span&gt;&lt;span class="paren-face-match"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;And our TOC generation function does something like this:&lt;/p&gt;
&lt;pre class="code"&gt;&lt;span class="keyword"&gt;var&lt;/span&gt; &lt;span class="variable-name"&gt;element&lt;/span&gt; = getElementById(&amp;quot;&lt;span class="string"&gt;conttoc&lt;/span&gt;&amp;quot;);
&lt;span class="keyword"&gt;if&lt;/span&gt; (element.firstChild &amp;amp;&amp;amp; element.firstChild.nodeType == 8) {
&lt;span class="comment"&gt;// 8 means Node.COMMENT_NODE. We're using numeric values
&lt;/span&gt; &lt;span class="comment"&gt;// because IE6 does not support constant names.
&lt;/span&gt; &lt;span class="keyword"&gt;var&lt;/span&gt; &lt;span class="variable-name"&gt;parameters&lt;/span&gt; = element.firstChild.data;
&lt;span class="comment"&gt;// at this point &amp;quot;parameters&amp;quot; contains base:link/prefix.html
&lt;/span&gt; &lt;span class="comment"&gt;// ...
&lt;/span&gt;}&lt;/pre&gt;
&lt;p&gt;So we retrieved the value passed to the script from the HTML code. This
was the goal of this article.&lt;/p&gt;
&lt;hr /&gt;
&lt;address&gt;&lt;a href="http://students.infoiasi.ro/~mishoo/"&gt;Mihai Bazon&lt;/a&gt;&lt;/address&gt;
&lt;!-- hhmts start --&gt; Last modified on Thu Apr 3 20:34:17 2003
&lt;!-- hhmts end --&gt;
&lt;!-- doc-lang: English --&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea>
<p />
<input type="submit" name="ok" value=" submit " />
<input type="button" name="ins" value=" insert html " onclick="return insertHTML();" />
<input type="button" name="hil" value=" highlight text " onclick="return highlight();" />
<a href="javascript:mySubmit()">submit</a>
<script type="text/javascript">
function mySubmit() {
// document.edit.save.value = "yes";
document.edit.onsubmit(); // workaround browser bugs.
document.edit.submit();
};
</script>
</form>
</body>
</html>

View File

@ -1,29 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>HTMLArea examples index</title>
</head>
<body>
<h1>HTMLArea: auto-generated examples index</h1>
<ul>
% while (<*.html>) {
% next if /^index.html$/;
<li>
<a href="<% $_ %>"><% $_ %></a>
</li>
% }
</ul>
<hr />
<address>mishoo@infoiasi.ro</address>
<!-- hhmts start --> Last modified: Sun Feb 1 13:30:39 EET 2004 <!-- hhmts end -->
</body> </html>
<%INIT>
my $dir = $m->interp->comp_root;
$dir =~ s{/+$}{}g;
#$dir =~ s{/[^/]+$}{}g;
$dir .= $m->current_comp->dir_path;
chdir $dir;
</%INIT>

View File

@ -1,66 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Example of HTMLArea 3.0 -- ListType plugin</title>
<script type="text/javascript">
_editor_lang = "en";
_editor_url = "../";
</script>
<!-- load the main HTMLArea files -->
<script type="text/javascript" src="../htmlarea.js"></script>
<style type="text/css">
html, body {
font-family: Verdana,sans-serif;
background-color: #fea;
color: #000;
}
a:link, a:visited { color: #00f; }
a:hover { color: #048; }
a:active { color: #f00; }
textarea { background-color: #fff; border: 1px solid 00f; }
</style>
<script type="text/javascript">
// load the plugin files
HTMLArea.loadPlugin("ListType");
var editor = null;
function initEditor() {
editor = new HTMLArea("ta");
editor.registerPlugin(ListType);
editor.generate();
return false;
}
</script>
</head>
<body onload="initEditor()">
<h1>HTMLArea :: the ListType plugin</h1>
<form action="test.cgi" method="post" id="edit" name="edit">
<textarea id="ta" name="ta" style="width:100%" rows="24" cols="80">
<p>List style type is selected using the CSS property
&quot;list-style-type&quot;. Hopefully it will work with Internet Explorer,
right? ;-) Let's start the monster to test it out.<br /></p><p>Cool, it
works. Except for &quot;lower-greek&quot;, which doesn't seem to be
supported (and worse, a gross error message is displayed). Therefore, I
hide that proerty from IE--it will only be available if the browser is not
IE.<br /></p><ol style="list-style-type: decimal;"><li>This is a list<br
/></li><li>with decimal numbers<br /></li><li>blah blah<br /></li><li>dolor
sic amet<br /></li></ol><ol style="list-style-type: lower-greek;"><li>yet
another</li><li>list with greek<br /></li><li>letters<br /></li><li>lorem
ipsum<br /></li><li>yada yada<br /></li></ol>
</textarea>
</form>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

View File

@ -1,132 +0,0 @@
<html>
<head>
<title>Example of HTMLArea 3.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Configure the path to the editor. We make it relative now, so that the
example ZIP file will work anywhere, but please NOTE THAT it's better to
have it an absolute path, such as '/htmlarea/'. -->
<script type="text/javascript">
_editor_lang = "en";
_editor_url = "../";
</script>
<!-- load the main HTMLArea files -->
<script type="text/javascript" src="../htmlarea.js"></script>
<style type="text/css">
html, body {
font-family: Verdana,sans-serif;
background-color: #fea;
color: #000;
}
a:link, a:visited { color: #00f; }
a:hover { color: #048; }
a:active { color: #f00; }
textarea { background-color: #fff; border: 1px solid 00f; }
</style>
<script type="text/javascript">
HTMLArea.loadPlugin("SpellChecker");
var editor = null;
function initEditor() {
// create an editor for the "ta" textbox
editor = new HTMLArea("ta");
// register the SpellChecker plugin
editor.registerPlugin(SpellChecker);
editor.generate();
return false;
}
function insertHTML() {
var html = prompt("Enter some HTML code here");
if (html) {
editor.insertHTML(html);
}
}
function highlight() {
editor.surroundHTML('<span style="background-color: yellow">', '</span>');
}
</script>
</head>
<!-- use <body onload="HTMLArea.replaceAll()" if you don't care about
customizing the editor. It's the easiest way! :) -->
<body onload="initEditor()">
<h1>HTMLArea 3.0</h1>
<p>A replacement for <code>TEXTAREA</code> elements. &copy; <a
href="http://interactivetools.com">InteractiveTools.com</a>, 2003-2004.</p>
<p>Plugins:
<tt>SpellChecker</tt> (sponsored by <a
href="http://americanbible.org">American Bible Society</a>).
</p>
<form action="test.cgi" method="post" id="edit" name="edit">
<textarea id="ta" name="ta" style="width:100%" rows="24" cols="80">
<h1>The <tt>SpellChecker</tt> plugin</h1>
<p>This file deminstrates the <tt>SpellChecker</tt> plugin of
HTMLArea. To inwoke the spell checkert you need to press the
<em>spell-check</em> buton in the toolbar.</p>
<p>The spell-checker uses a serverside script written in Perl. The
Perl script calls <a href="http://aspell.net">aspell</a> for any
word in the text and reports wordz that aren't found in the
dyctionari.</p>
<p>The document that yu are reading now <b>intentionaly</b> containes
some errorz, so that you have something to corect ;-)</p>
<p>Credits for the <tt>SpellChecker</tt> plugin go to:</p>
<ul>
<li><a href="http://aspell.net">Aspell</a> -- spell
checker</li>
<li>The <a href="http://perl.org">Perl</a> programming language</li>
<li><tt><a
href="http://cpan.org/modules/by-module/Text/Text-Aspell-0.02.readme">Text::Aspell</a></tt>
-- Perl interface to Aspell</li>
<li><a href="http://americanbible.org">American Bible Society</a> --
for sponsoring the <tt>SpellChecker</tt> plugin for
<tt>HTMLArea</tt></li>
<li><a href="http://dynarch.com/mishoo/">Your humble servant</a> for
implementing it ;-)</li>
</ul>
</textarea>
<p />
<input type="submit" name="ok" value=" submit " />
<input type="button" name="ins" value=" insert html " onclick="return insertHTML();" />
<input type="button" name="hil" value=" highlight text " onclick="return highlight();" />
<a href="javascript:mySubmit()">submit</a>
<script type="text/javascript">
function mySubmit() {
// document.edit.save.value = "yes";
document.edit.onsubmit(); // workaround browser bugs.
document.edit.submit();
};
</script>
</form>
</body>
</html>

View File

@ -1,116 +0,0 @@
<html>
<head>
<title>Example of HTMLArea 3.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Configure the path to the editor. We make it relative now, so that the
example ZIP file will work anywhere, but please NOTE THAT it's better to
have it an absolute path, such as '/htmlarea/'. -->
<script type="text/javascript">
_editor_lang = "en";
_editor_url = "../";
</script>
<!-- load the main HTMLArea files -->
<script type="text/javascript" src="../htmlarea.js"></script>
<style type="text/css">
html, body {
font-family: Verdana,sans-serif;
background-color: #fea;
color: #000;
}
a:link, a:visited { color: #00f; }
a:hover { color: #048; }
a:active { color: #f00; }
textarea { background-color: #fff; border: 1px solid 00f; }
</style>
<script type="text/javascript">
// load the plugin files
HTMLArea.loadPlugin("TableOperations");
var editor = null;
function initEditor() {
// create an editor for the "ta" textbox
editor = new HTMLArea("ta");
// register the TableOperations plugin with our editor
editor.registerPlugin(TableOperations);
editor.generate();
return false;
}
function insertHTML() {
var html = prompt("Enter some HTML code here");
if (html) {
editor.insertHTML(html);
}
}
function highlight() {
editor.surroundHTML('<span style="background-color: yellow">', '</span>');
}
</script>
</head>
<!-- use <body onload="HTMLArea.replaceAll()" if you don't care about
customizing the editor. It's the easiest way! :) -->
<body onload="initEditor()">
<h1>HTMLArea 3.0</h1>
<p>A replacement for <code>TEXTAREA</code> elements. &copy; <a
href="http://interactivetools.com">InteractiveTools.com</a>, 2003-2004.</p>
<p>Page that demonstrates the additional features of the
<tt>TableOperations</tt> plugin (sponsored by <a
href="http://www.bloki.com">Zapatec Inc.</a>).</p>
<form action="test.cgi" method="post" id="edit" name="edit">
<textarea id="ta" name="ta" style="width:100%" rows="24" cols="80">
<h1>Plugin: <tt>TableOperations</tt></h1>
<p>This page exemplifies the table operations toolbar, provided by the
TableOperations plugin.</p>
<p>Following there is a table.</p>
<table border="1" style="border: 2px solid rgb(255, 0, 0); width: 80%; background-image: none; border-collapse: collapse; color: rgb(153, 102, 0); background-color: rgb(255, 255, 51);" align="center" cellspacing="2" cellpadding="1" summary="">
<caption>This <span style="font-weight: bold;">is</span> a table</caption>
<tbody>
<tr style="border-style: none; background-image: none; background-color: rgb(255, 255, 153);" char="." align="left" valign="middle"> <td>1.1</td> <td>1.2</td> <td>1.3</td> <td>1.4</td> </tr>
<tr> <td>2.1</td> <td style="border: 1px solid rgb(51, 51, 255); background-image: none; background-color: rgb(102, 255, 255); color: rgb(0, 0, 51);" char="." align="left" valign="middle">2.2</td> <td>2.3</td> <td>2.4</td> </tr>
<tr> <td>3.1</td> <td>3.2</td> <td style="border: 2px dashed rgb(51, 204, 102); background-image: none; background-color: rgb(102, 255, 153); color: rgb(0, 51, 0);" char="." align="left" valign="middle">3.3</td> <td>3.4</td> </tr>
<tr> <td style="background-color: rgb(255, 204, 51);">4.1</td> <td style="background-color: rgb(255, 204, 51);">4.2</td> <td style="background-color: rgb(255, 204, 51);">4.3</td> <td style="background-color: rgb(255, 204, 51);">4.4</td> </tr>
</tbody>
</table>
<p>Text after the table</p>
</textarea>
<p />
<input type="submit" name="ok" value=" submit " />
<input type="button" name="ins" value=" insert html " onclick="return insertHTML();" />
<input type="button" name="hil" value=" highlight text " onclick="return highlight();" />
<a href="javascript:mySubmit()">submit</a>
<script type="text/javascript">
function mySubmit() {
// document.edit.save.value = "yes";
document.edit.onsubmit(); // workaround browser bugs.
document.edit.submit();
};
</script>
</form>
</body>
</html>

View File

@ -1,21 +0,0 @@
#! /usr/bin/perl -w
#
#
#
use CGI;
print "Content-type: text/html\n\n";
$c = new CGI;
$ta = $c->param('ta');
print <<EOF;
<html>
<body>
<textarea style="width: 100%; height: 200px">$ta</textarea>
$ta
</body>
</html>
EOF

View File

@ -1,180 +0,0 @@
.htmlarea { background: #fff; }
.htmlarea .toolbar {
cursor: default;
background: ButtonFace;
padding: 1px 1px 2px 1px;
border: 1px solid;
border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
}
.htmlarea .toolbar table { font-family: tahoma,verdana,sans-serif; font-size: 11px; }
.htmlarea .toolbar img { border: none; }
.htmlarea .toolbar .label { padding: 0px 3px; }
.htmlarea .toolbar .button {
background: ButtonFace;
color: ButtonText;
border: 1px solid ButtonFace;
padding: 1px;
margin: 0px;
width: 18px;
height: 18px;
}
.htmlarea .toolbar .buttonHover {
border: 1px solid;
border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
}
.htmlarea .toolbar .buttonActive, .htmlarea .toolbar .buttonPressed {
padding: 2px 0px 0px 2px;
border: 1px solid;
border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
}
.htmlarea .toolbar .buttonPressed {
background: ButtonHighlight;
}
.htmlarea .toolbar .indicator {
padding: 0px 3px;
overflow: hidden;
width: 20px;
text-align: center;
cursor: default;
border: 1px solid ButtonShadow;
}
.htmlarea .toolbar .buttonDisabled img {
filter: alpha(opacity = 25);
-moz-opacity: 0.25;
}
.htmlarea .toolbar .separator {
position: relative;
margin: 3px;
border-left: 1px solid ButtonShadow;
border-right: 1px solid ButtonHighlight;
width: 0px;
height: 16px;
padding: 0px;
}
.htmlarea .toolbar .space { width: 5px; }
.htmlarea .toolbar select { font: 11px Tahoma,Verdana,sans-serif; }
.htmlarea .toolbar select,
.htmlarea .toolbar select:hover,
.htmlarea .toolbar select:active { background: FieldFace; color: ButtonText; }
.htmlarea .statusBar {
border: 1px solid;
border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
padding: 2px 4px;
background-color: ButtonFace;
color: ButtonText;
font: 11px Tahoma,Verdana,sans-serif;
}
.htmlarea .statusBar .statusBarTree a {
padding: 2px 5px;
color: #00f;
}
.htmlarea .statusBar .statusBarTree a:visited { color: #00f; }
.htmlarea .statusBar .statusBarTree a:hover {
background-color: Highlight;
color: HighlightText;
padding: 1px 4px;
border: 1px solid HighlightText;
}
/* Hidden DIV popup dialogs (PopupDiv) */
.dialog {
color: ButtonText;
background: ButtonFace;
}
.dialog .content { padding: 2px; }
.dialog, .dialog button, .dialog input, .dialog select, .dialog textarea, .dialog table {
font: 11px Tahoma,Verdana,sans-serif;
}
.dialog table { border-collapse: collapse; }
.dialog .title {
background: #008;
color: #ff8;
border-bottom: 1px solid #000;
padding: 1px 0px 2px 5px;
font-size: 12px;
font-weight: bold;
cursor: default;
}
.dialog .title .button {
float: right;
border: 1px solid #66a;
padding: 0px 1px 0px 2px;
margin-right: 1px;
color: #fff;
text-align: center;
}
.dialog .title .button-hilite { border-color: #88f; background: #44c; }
.dialog button {
width: 5em;
padding: 0px;
}
.dialog .buttonColor {
padding: 1px;
cursor: default;
border: 1px solid;
border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
}
.dialog .buttonColor-hilite {
border-color: #000;
}
.dialog .buttonColor .chooser, .dialog .buttonColor .nocolor {
height: 0.6em;
border: 1px solid;
padding: 0px 1em;
border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
}
.dialog .buttonColor .nocolor { padding: 0px; }
.dialog .buttonColor .nocolor-hilite { background-color: #fff; color: #f00; }
.dialog .label { text-align: right; width: 6em; }
.dialog .value input { width: 100%; }
.dialog .buttons { text-align: right; padding: 2px 4px 0px 4px; }
.dialog legend { font-weight: bold; }
.dialog fieldset table { margin: 2px 0px; }
.popupdiv {
border: 2px solid;
border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
}
.popupwin {
padding: 0px;
margin: 0px;
}
.popupwin .title {
background: #fff;
color: #000;
font-weight: bold;
font-size: 120%;
padding: 3px 10px;
margin-bottom: 10px;
border-bottom: 1px solid black;
letter-spacing: 2px;
}
form { margin: 0px; border: none; }

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 B

View File

@ -1,3 +0,0 @@
<files>
<file name="*.{gif,jpg,jpeg}" />
</files>

View File

@ -1,210 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN">
<html>
<head>
<title>HTMLArea -- the free, customizable online editor</title>
<style type="text/css">
html, body { font-family: georgia,"times new roman",serif; background-color: #fff; color: #000; }
.label { text-align: right; padding-right: 0.3em; }
.bline { border-bottom: 1px solid #aaa; }
</style>
</head>
<body>
<div style="float: right; border: 1px solid #aaa; background-color: #eee; padding: 3px; margin-left: 10px; margin-bottom: 10px;">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="label">Version:</td><td><% $version %></td>
</tr>
<tr>
<td class="label">Release:</td><td><% $release %> (<a href="release-notes.html">release notes</a>)</td>
</tr>
<tr>
<td class="label bline">Compiled at:</td><td class="bline"><% $time %></td>
</tr>
<tr>
<td class="label">SourceForge page:</td><td><a href="http://sf.net/projects/itools-htmlarea/">http://sf.net/projects/itools-htmlarea/</a></td>
</table>
</div>
<h1>HTMLArea -- the free<br/>customizable online editor</h1>
<p>
HTMLArea is a free, customizable online editor. It works inside your
browser. It uses a non-standard feature implemented in Internet
Explorer 5.5 or better for Windows and Mozilla 1.3 or better (any
platform), therefore it will only work in one of these browsers.
</p>
<p>
HTMLArea is copyright <a
href="http://interactivetools.com">InteractiveTools.com</a> and <a
href="http://dynarch.com">Dynarch.com</a> and it is
released under a BSD-style license. HTMLArea is created and developed
upto version 2.03 by InteractiveTools.com. Version 3.0 developed by
<a href="http://dynarch.com/mishoo/">Mihai Bazon</a> for
InteractiveTools. It contains code sponsored by third-party companies as well.
Please see our About Box for details about who sponsored what plugins.
</p>
<h2>Online demos</h2>
<ul>
<li><a href="examples/core.html">HTMLArea standard</a> -- contains the core
editor.</li>
<li><a href="examples/table-operations.html">HTMLArea + tables</a> --
loads the <tt>TableOperations</tt> plugin which provides some extra
editing features for tables.</li>
<li><a href="examples/spell-checker.html">HTMLArea + spell checher</a>
-- loads the <tt>SpellChecker</tt> plugin which provides what its
name says: a spell checker. This one requires additional support on
the server-side.</li>
<li><a href="examples/full-page.html">HTMLArea Full HTML Editor</a> --
loads the <tt>FullPage</tt> plugin which allows you to edit a full
HTML page, including &lt;title&gt;, &lt;!DOCTYPE...&gt; and some
other options.</li>
<li><a href="examples/context-menu.html">HTMLArea with Context
Menu</a> -- this plugin provides a nice and useful context menu.</li>
<li><a href="examples/fully-loaded.html">HTMLArea fully loaded</a> --
all of the above. ;-)</li>
</ul>
<h2>Installation</h2>
<p>
Installation is (or should be) easy. You need to unpack the ZIP file
in a directory accessible through your webserver. Supposing you
unpack in your <tt>DocumentRoot</tt> and your <tt>DocumentRoot</tt> is
<tt>/var/www/html</tt> as in a standard RedHat installation, you need
to acomplish the following steps: (the example is for a Unix-like
operating system)
</p>
<pre style="margin-left: 2em"
>
cd /var/www/html
unzip /path/to/archive/<% $basename %>.zip
mv <% $basename %> htmlarea
find htmlarea/ -type f -exec chmod 644 {} \;
find htmlarea/ -type d -exec chmod 755 {} \;
find htmlarea/ -name "*.cgi" -exec chmod 755 {} \;</pre>
<p>
<strong>Notes.</strong> You may chose to symlink "htmlarea" to "<%
$basename %>", in which case your server needs to be configured to
"<tt>FollowSymLinks</tt>". You need to make sure that *.cgi files are
interpreted as CGI scripts. If you want to use the SpellChecker
plugin you need to have a recent version of Perl installed (I
recommend 5.8.0) on the server, and the module Text::Aspell, available
from CPAN. More info in "<a
href="plugins/SpellChecker/readme-tech.html">plugins/SpellChecker/readme-tech.html</a>".
</p>
<p>About how to setup your pages to use the editor, please read the
[outdated yet generally valid] <a
href="reference.html">documentation</a>.</p>
<h2>Status and links</h2>
<p>HTMLArea has reached version 3.0. As of this version, it
supports:</p>
<ul>
<li>Customizable toolbar</li>
<li>Easy internationalization</li>
<li>Plugin-based infrastructure</li>
<li>Delivers W3-compliant HTML (with few exceptions)</li>
<li>Has a subset of Microsoft Word's keyboard shortcuts</li>
<li>Full-screen editor</li>
<li>Advanced table operations (by external plugin
"TableOperations")</li>
<li>Spell checker (by external plugin "SpellChecker")</li>
<li>probably more... ;-)</li>
</ul>
<p>We have a <a
href="http://sourceforge.net/projects/itools-htmlarea/">project page</a>
at <a href="http://sourceforge.net">SourceForge.net</a>. There you can
also find out <a href="http://sourceforge.net/cvs/?group_id=69750">how
to retrieve the code from CVS</a>, or you can <a
href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/itools-htmlarea">browse
the CVS online</a>. We also have a <a
href="http://sourceforge.net/tracker/?atid=525656&group_id=69750&func=browse">bug
system</a>, a <a
href="http://sourceforge.net/tracker/?atid=525658&group_id=69750&func=browse">patch
tracking system</a> and a <a
href="http://sourceforge.net/tracker/?atid=525659&group_id=69750&func=browse">feature
request page</a>.</p>
<p>We invite you to say everything you want about HTMLArea <a
href="http://www.interactivetools.com/forum/gforum.cgi?forum=14;">on the
forums</a> at InteractiveTools.com. There you should also find the
latest news.</p>
<p>Sometimes I post news about the latest developments on <a
href="http://dynarch.com/mishoo/">my personal homepage</a>.</p>
<h2>"It doesn't work, what's wrong?"</h2>
<p>If it doesn't work, you have several options:</p>
<ul>
<li>Post a message to the forum. Describe your problem in as much
detail as possible. Include errors you might find in the JavaScript
console (if you are a Mozilla user), or errors displayed by IE (though
they're most of the times useless).</li>
<li>If you're positive that you discovered a bug in HTMLArea then feel
free to fill a bug report in our bug system. If you have the time you
should check to see if a similar bug was reported or not; it might be
fixed already in the CVS ;-) If you're positive that a similar bug was
not yet reported, do fill a bug report and please include as much
detail as possible, such as your browser, OS, errors from JavaScript
console, etc.</li>
<li>If you want a new feature to be implemented, post it on the
features request and someone will hopefully take care of it.</li>
</ul>
<p>You can <a href="mailto:mishoo@infoiasi.ro">contact me directly</a>
<em>only</em> if you want to pay me for implementing custom features to
HTMLArea. If you want to sponsor these features (that is, allow them to
get back into the public HTMLArea distribution) I'll be cheaper. ;-)</p>
<hr />
<address><a href="http://dynarch.com/mishoo/">Mihai Bazon</a></address>
<!-- Created: Sun Aug 3 14:11:26 EEST 2003 -->
<!-- hhmts start --> Last modified: Wed Jan 28 11:54:47 EET 2004 <!-- hhmts end -->
<!-- doc-lang: English -->
</body>
</html>
<%ARGS>
$project => 'HTMLArea'
$version => '3.0'
$release => 'rc1'
$basename => 'HTMLArea-3.0-rc1'
</%ARGS>
<%INIT>;
use POSIX qw(strftime);
my $time = strftime '%b %e, %Y [%H:%M] GMT', gmtime;
</%INIT>

View File

@ -1,36 +0,0 @@
// I18N constants -- Chinese Big-5
// by Dave Lo -- dlo@interactivetools.com
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "b5",
tooltips: {
bold: "粗體",
italic: "斜體",
underline: "底線",
strikethrough: "刪除線",
subscript: "下標",
superscript: "上標",
justifyleft: "位置靠左",
justifycenter: "位置居中",
justifyright: "位置靠右",
justifyfull: "位置左右平等",
orderedlist: "順序清單",
unorderedlist: "無序清單",
outdent: "減小行前空白",
indent: "加寬行前空白",
forecolor: "文字顏色",
backcolor: "背景顏色",
horizontalrule: "水平線",
createlink: "插入連結",
insertimage: "插入圖形",
inserttable: "插入表格",
htmlmode: "切換HTML原始碼",
popupeditor: "放大",
about: "關於 HTMLArea",
help: "說明",
textindicator: "字體例子"
}
};

View File

@ -1,83 +0,0 @@
// I18N constants
// LANG: "ch", ENCODING: UTF-8
// Samuel Stone, http://stonemicro.com/
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "ch",
tooltips: {
bold: "粗體",
italic: "斜體",
underline: "底線",
strikethrough: "刪線",
subscript: "下標",
superscript: "上標",
justifyleft: "靠左",
justifycenter: "居中",
justifyright: "靠右",
justifyfull: "整齊",
orderedlist: "順序清單",
unorderedlist: "無序清單",
outdent: "伸排",
indent: "縮排",
forecolor: "文字顏色",
backcolor: "背景顏色",
horizontalrule: "水平線",
createlink: "插入連結",
insertimage: "插入圖像",
inserttable: "插入表格",
htmlmode: "切換HTML原始碼",
popupeditor: "伸出編輯系統",
about: "關於 HTMLArea",
help: "說明",
textindicator: "字體例子",
undo: "回原",
redo: "重来",
cut: "剪制选项",
copy: "复制选项",
paste: "贴上",
lefttoright: "从左到右",
righttoleft: "从右到左"
},
buttons: {
"ok": "好",
"cancel": "取消"
},
msg: {
"Path": "途徑",
"TEXT_MODE": "你在用純字編輯方式. 用 [<>] 按鈕轉回 所見即所得 編輯方式.",
"IE-sucks-full-screen" :
// translate here
"整頁式在Internet Explorer 上常出問題, " +
"因為這是 Internet Explorer 的無名問題,我們無法解決。" +
"你可能看見一些垃圾,或遇到其他問題。" +
"我們已警告了你. 如果要轉到 正頁式 請按 好.",
"Moz-Clipboard" :
"Unprivileged scripts cannot access Cut/Copy/Paste programatically " +
"for security reasons. Click OK to see a technical note at mozilla.org " +
"which shows you how to allow a script to access the clipboard."
},
dialogs: {
"Cancel" : "取消",
"Insert/Modify Link" : "插入/改寫連結",
"New window (_blank)" : "新窗户(_blank)",
"None (use implicit)" : "無(use implicit)",
"OK" : "好",
"Other" : "其他",
"Same frame (_self)" : "本匡 (_self)",
"Target:" : "目標匡:",
"Title (tooltip):" : "主題 (tooltip):",
"Top frame (_top)" : "上匡 (_top)",
"URL:" : "網址:",
"You must enter the URL where this link points to" : "你必須輸入你要连结的網址"
}
};

View File

@ -1,63 +0,0 @@
// I18N constants
// LANG: "cz", ENCODING: UTF-8 | ISO-8859-2
// Author: Jiri Löw, <jirilow@jirilow.com>
// FOR TRANSLATORS:
//
// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE
// (at least a valid email address)
//
// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING;
// (if this is not possible, please include a comment
// that states what encoding is necessary.)
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "cz",
tooltips: {
bold: "Tučně",
italic: "Kurzíva",
underline: "Podtržení",
strikethrough: "Přeškrtnutí",
subscript: "Dolní index",
superscript: "Horní index",
justifyleft: "Zarovnat doleva",
justifycenter: "Na střed",
justifyright: "Zarovnat doprava",
justifyfull: "Zarovnat do stran",
orderedlist: "Seznam",
unorderedlist: "Odrážky",
outdent: "Předsadit",
indent: "Odsadit",
forecolor: "Barva písma",
hilitecolor: "Barva pozadí",
horizontalrule: "Vodorovná čára",
createlink: "Vložit odkaz",
insertimage: "Vložit obrázek",
inserttable: "Vložit tabulku",
htmlmode: "Přepnout HTML",
popupeditor: "Nové okno editoru",
about: "O této aplikaci",
showhelp: "Nápověda aplikace",
textindicator: "Zvolený styl",
undo: "Vrátí poslední akci",
redo: "Opakuje poslední akci",
cut: "Vyjmout",
copy: "Kopírovat",
paste: "Vložit"
},
buttons: {
"ok": "OK",
"cancel": "Zrušit"
},
msg: {
"Path": "Cesta",
"TEXT_MODE": "Jste v TEXTOVÉM REŽIMU. Použijte tlačítko [<>] pro přepnutí do WYSIWIG."
}
};

View File

@ -1,38 +0,0 @@
// danish version for htmlArea v3.0 - Alpha Release
// - translated by rene<rene@laerke.net>
// term´s and licenses are equal to htmlarea!
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "da",
tooltips: {
bold: "Fed",
italic: "Kursiv",
underline: "Understregning",
strikethrough: "Overstregning ",
subscript: "Sænket skrift",
superscript: "Hævet skrift",
justifyleft: "Venstrejuster",
justifycenter: "Centrer",
justifyright: "Højrejuster",
justifyfull: "Lige margener",
orderedlist: "Opstilling med tal",
unorderedlist: "Opstilling med punkttegn",
outdent: "Formindsk indrykning",
indent: "Forøg indrykning",
forecolor: "Skriftfarve",
backcolor: "Baggrundsfarve",
horizontalrule: "Horisontal linie",
createlink: "Indsæt hyperlink",
insertimage: "Indsæt billede",
inserttable: "Indsæt tabel",
htmlmode: "HTML visning",
popupeditor: "Vis editor i popup",
about: "Om htmlarea",
help: "Hjælp",
textindicator: "Anvendt stil"
}
};

View File

@ -1,79 +0,0 @@
// I18N constants
// LANG: "de", ENCODING: ISO-8859-1 for the german umlaut!
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "de",
tooltips: {
bold: "Fett",
italic: "Kursiv",
underline: "Unterstrichen",
strikethrough: "Durchgestrichen",
subscript: "Hochgestellt",
superscript: "Tiefgestellt",
justifyleft: "Linksbündig",
justifycenter: "Zentriert",
justifyright: "Rechtsbündig",
justifyfull: "Blocksatz",
orderedlist: "Nummerierung",
unorderedlist: "Aufzählungszeichen",
outdent: "Einzug verkleinern",
indent: "Einzug vergrößern",
forecolor: "Schriftfarbe",
backcolor: "Hindergrundfarbe",
hilitecolor: "Hintergrundfarbe",
horizontalrule: "Horizontale Linie",
inserthorizontalrule: "Horizontale Linie",
createlink: "Hyperlink einfügen",
insertimage: "Bild einfügen",
inserttable: "Tabelle einfügen",
htmlmode: "HTML Modus",
popupeditor: "Editor im Popup öffnen",
about: "Über htmlarea",
help: "Hilfe",
showhelp: "Hilfe",
textindicator: "Derzeitiger Stil",
undo: "Rückgängig",
redo: "Wiederholen",
cut: "Ausschneiden",
copy: "Kopieren",
paste: "Einfügen aus der Zwischenablage",
lefttoright: "Textrichtung von Links nach Rechts",
righttoleft: "Textrichtung von Rechts nach Links"
},
buttons: {
"ok": "OK",
"cancel": "Abbrechen"
},
msg: {
"Path": "Pfad",
"TEXT_MODE": "Sie sind im Text-Modus. Benutzen Sie den [<>] Knopf um in den visuellen Modus (WYSIWIG) zu gelangen.",
"Moz-Clipboard" :
"Aus Sicherheitsgründen dürfen Skripte normalerweise nicht programmtechnisch auf " +
"Ausschneiden/Kopieren/Einfügen zugreifen. Bitte klicken Sie OK um die technische " +
"Erläuterung auf mozilla.org zu öffnen, in der erklärt wird, wie einem Skript Zugriff " +
"gewährt werden kann."
},
dialogs: {
"OK": "OK",
"Cancel": "Abbrechen",
"Insert/Modify Link": "Verknüpfung hinzufügen/ändern",
"None (use implicit)": "k.A. (implizit)",
"New window (_blank)": "Neues Fenster (_blank)",
"Same frame (_self)": "Selber Rahmen (_self)",
"Top frame (_top)": "Oberster Rahmen (_top)",
"Other": "Anderes",
"Target:": "Ziel:",
"Title (tooltip):": "Titel (Tooltip):",
"URL:": "URL:",
"You must enter the URL where this link points to": "Sie müssen eine Ziel-URL angeben für die Verknüpfung angeben"
}
};

View File

@ -1,63 +0,0 @@
// I18N constants
// LANG: "ee", ENCODING: UTF-8 | ISO-8859-1
// Author: Martin Raie, <albertvill@hot.ee>
// FOR TRANSLATORS:
//
// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE
// (at least a valid email address)
//
// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING;
// (if this is not possible, please include a comment
// that states what encoding is necessary.)
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "ee",
tooltips: {
bold: "Paks",
italic: "Kursiiv",
underline: "Allakriipsutatud",
strikethrough: "Läbikriipsutatud",
subscript: "Allindeks",
superscript: "Ülaindeks",
justifyleft: "Joonda vasakule",
justifycenter: "Joonda keskele",
justifyright: "Joonda paremale",
justifyfull: "Rööpjoonda",
orderedlist: "Nummerdus",
unorderedlist: "Täpploend",
outdent: "Vähenda taanet",
indent: "Suurenda taanet",
forecolor: "Fondi värv",
hilitecolor: "Tausta värv",
inserthorizontalrule: "Horisontaaljoon",
createlink: "Lisa viit",
insertimage: "Lisa pilt",
inserttable: "Lisa tabel",
htmlmode: "HTML/tavaline vaade",
popupeditor: "Suurenda toimeti aken",
about: "Teave toimeti kohta",
showhelp: "Spikker",
textindicator: "Kirjastiil",
undo: "Võta tagasi",
redo: "Tee uuesti",
cut: "Lõika",
copy: "Kopeeri",
paste: "Kleebi"
},
buttons: {
"ok": "OK",
"cancel": "Loobu"
},
msg: {
"Path": "Path",
"TEXT_MODE": "Sa oled tekstireziimis. Kasuta nuppu [<>] lülitamaks tagasi WYSIWIG reziimi."
}
};

View File

@ -1,75 +0,0 @@
// I18N constants
// LANG: "el", ENCODING: UTF-8 | ISO-8859-7
// Author: Dimitris Glezos, dimitris@glezos.com
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "el",
tooltips: {
bold: "Έντονα",
italic: "Πλάγια",
underline: "Υπογραμμισμένα",
strikethrough: "Διαγραμμένα",
subscript: "Δείκτης",
superscript: "Δείκτης",
justifyleft: "Στοίχιση Αριστερά",
justifycenter: "Στοίχιση Κέντρο",
justifyright: "Στοίχιση Δεξιά",
justifyfull: "Πλήρης Στοίχιση",
orderedlist: "Αρίθμηση",
unorderedlist: "Κουκκίδες",
outdent: "Μείωση Εσοχής",
indent: "Αύξηση Εσοχής",
forecolor: "Χρώμα Γραμματοσειράς",
hilitecolor: "Χρώμα Φόντου",
horizontalrule: "Οριζόντια Γραμμή",
createlink: "Εισαγωγή Συνδέσμου",
insertimage: "Εισαγωγή/Τροποποίηση Εικόνας",
inserttable: "Εισαγωγή Πίνακα",
htmlmode: "Εναλλαγή σε/από HTML",
popupeditor: "Μεγένθυνση επεξεργαστή",
about: "Πληροφορίες",
showhelp: "Βοήθεια",
textindicator: "Παρών στυλ",
undo: "Αναίρεση τελευταίας ενέργειας",
redo: "Επαναφορά από αναίρεση",
cut: "Αποκοπή",
copy: "Αντιγραφή",
paste: "Επικόλληση",
lefttoright: "Κατεύθυνση αριστερά προς δεξιά",
righttoleft: "Κατεύθυνση από δεξιά προς τα αριστερά"
},
buttons: {
"ok": "OK",
"cancel": "Ακύρωση"
},
msg: {
"Path": "Διαδρομή",
"TEXT_MODE": "Είστε σε TEXT MODE. Χρησιμοποιήστε το κουμπί [<>] για να επανέρθετε στο WYSIWIG.",
"IE-sucks-full-screen": "Η κατάσταση πλήρης οθόνης έχει προβλήματα με τον Internet Explorer, " +
"λόγω σφαλμάτων στον ίδιο τον browser. Αν το σύστημα σας είναι Windows 9x " +
"μπορεί και να χρειαστείτε reboot. Αν είστε σίγουροι, πατήστε ΟΚ."
},
dialogs: {
"Cancel" : "Ακύρωση",
"Insert/Modify Link" : "Εισαγωγή/Τροποποίηση σύνδεσμου",
"New window (_blank)" : "Νέο παράθυρο (_blank)",
"None (use implicit)" : "Κανένα (χρήση απόλυτου)",
"OK" : "Εντάξει",
"Other" : "Αλλο",
"Same frame (_self)" : "Ίδιο frame (_self)",
"Target:" : "Target:",
"Title (tooltip):" : "Τίτλος (tooltip):",
"Top frame (_top)" : "Πάνω frame (_top)",
"URL:" : "URL:",
"You must enter the URL where this link points to" : "Πρέπει να εισάγετε το URL που οδηγεί αυτός ο σύνδεσμος"
}
};

View File

@ -1,93 +0,0 @@
// I18N constants
// LANG: "en", ENCODING: UTF-8 | ISO-8859-1
// Author: Mihai Bazon, http://dynarch.com/mishoo
// FOR TRANSLATORS:
//
// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE
// (at least a valid email address)
//
// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING;
// (if this is not possible, please include a comment
// that states what encoding is necessary.)
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "en",
tooltips: {
bold: "Bold",
italic: "Italic",
underline: "Underline",
strikethrough: "Strikethrough",
subscript: "Subscript",
superscript: "Superscript",
justifyleft: "Justify Left",
justifycenter: "Justify Center",
justifyright: "Justify Right",
justifyfull: "Justify Full",
orderedlist: "Ordered List",
unorderedlist: "Bulleted List",
outdent: "Decrease Indent",
indent: "Increase Indent",
forecolor: "Font Color",
hilitecolor: "Background Color",
horizontalrule: "Horizontal Rule",
createlink: "Insert Web Link",
insertimage: "Insert/Modify Image",
inserttable: "Insert Table",
htmlmode: "Toggle HTML Source",
popupeditor: "Enlarge Editor",
about: "About this editor",
showhelp: "Help using editor",
textindicator: "Current style",
undo: "Undoes your last action",
redo: "Redoes your last action",
cut: "Cut selection",
copy: "Copy selection",
paste: "Paste from clipboard",
lefttoright: "Direction left to right",
righttoleft: "Direction right to left"
},
buttons: {
"ok": "OK",
"cancel": "Cancel"
},
msg: {
"Path": "Path",
"TEXT_MODE": "You are in TEXT MODE. Use the [<>] button to switch back to WYSIWYG.",
"IE-sucks-full-screen" :
// translate here
"The full screen mode is known to cause problems with Internet Explorer, " +
"due to browser bugs that we weren't able to workaround. You might experience garbage " +
"display, lack of editor functions and/or random browser crashes. If your system is Windows 9x " +
"it's very likely that you'll get a 'General Protection Fault' and need to reboot.\n\n" +
"You have been warned. Please press OK if you still want to try the full screen editor.",
"Moz-Clipboard" :
"Unprivileged scripts cannot access Cut/Copy/Paste programatically " +
"for security reasons. Click OK to see a technical note at mozilla.org " +
"which shows you how to allow a script to access the clipboard."
},
dialogs: {
"Cancel" : "Cancel",
"Insert/Modify Link" : "Insert/Modify Link",
"New window (_blank)" : "New window (_blank)",
"None (use implicit)" : "None (use implicit)",
"OK" : "OK",
"Other" : "Other",
"Same frame (_self)" : "Same frame (_self)",
"Target:" : "Target:",
"Title (tooltip):" : "Title (tooltip):",
"Top frame (_top)" : "Top frame (_top)",
"URL:" : "URL:",
"You must enter the URL where this link points to" : "You must enter the URL where this link points to"
}
};

View File

@ -1,51 +0,0 @@
// I18N constants
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "es",
tooltips: {
bold: "Negrita",
italic: "Cursiva",
underline: "Subrayado",
strikethrough: "Tachado",
subscript: "Subíndice",
superscript: "Superíndice",
justifyleft: "Alinear a la Izquierda",
justifycenter: "Centrar",
justifyright: "Alinear a la Derecha",
justifyfull: "Justificar",
orderedlist: "Lista Ordenada",
unorderedlist: "Lista No Ordenada",
outdent: "Aumentar Sangría",
indent: "Disminuir Sangría",
forecolor: "Color del Texto",
hilitecolor: "Color del Fondo",
inserthorizontalrule: "Línea Horizontal",
createlink: "Insertar Enlace",
insertimage: "Insertar Imagen",
inserttable: "Insertar Tabla",
htmlmode: "Ver Documento en HTML",
popupeditor: "Ampliar Editor",
about: "Acerca del Editor",
showhelp: "Ayuda",
textindicator: "Estilo Actual",
undo: "Deshacer",
redo: "Rehacer",
cut: "Cortar selección",
copy: "Copiar selección",
paste: "Pegar desde el portapapeles"
},
buttons: {
"ok": "Aceptar",
"cancel": "Cancelar"
},
msg: {
"Path": "Ruta",
"TEXT_MODE": "Esta en modo TEXTO. Use el boton [<>] para cambiar a WYSIWIG",
}
};

View File

@ -1,46 +0,0 @@
// I18N constants
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "en",
tooltips: {
bold: "Lihavoitu",
italic: "Kursivoitu",
underline: "Alleviivattu",
strikethrough: "Yliviivattu",
subscript: "Alaindeksi",
superscript: "Yläindeksi",
justifyleft: "Tasaa vasemmat reunat",
justifycenter: "Keskitä",
justifyright: "Tasaa oikeat reunat",
justifyfull: "Tasaa molemmat reunat",
orderedlist: "Numerointi",
unorderedlist: "Luettelomerkit",
outdent: "Lisää sisennystä",
indent: "Pienennä sisennystä",
forecolor: "Fontin väri",
hilitecolor: "Taustaväri",
inserthorizontalrule: "Vaakaviiva",
createlink: "Lisää Linkki",
insertimage: "Lisää Kuva",
inserttable: "Lisää Taulu",
htmlmode: "HTML Lähdekoodi vs WYSIWYG",
popupeditor: "Suurenna Editori",
about: "Tietoja Editorista",
showhelp: "Näytä Ohje",
textindicator: "Nykyinen tyyli",
undo: "Peruuta viimeinen toiminto",
redo: "Palauta viimeinen toiminto",
cut: "Leikkaa maalattu",
copy: "Kopioi maalattu",
paste: "Liitä leikepyödältä"
},
buttons: {
"ok": "Hyväksy",
"cancel": "Peruuta"
}
};

View File

@ -1,97 +0,0 @@
// I18N constants
// LANG: "fr", ENCODING: UTF-8 | ISO-8859-1
// Author: Simon Richard, s.rich@sympatico.ca
// FOR TRANSLATORS:
//
// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE
// (at least a valid email address)
//
// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING;
// (if this is not possible, please include a comment
// that states what encoding is necessary.)
// All technical terms used in this document are the ones approved
// by the Office québécois de la langue française.
// Tous les termes techniques utilisés dans ce document sont ceux
// approuvés par l'Office québécois de la langue française.
// http://www.oqlf.gouv.qc.ca/
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "fr",
tooltips: {
bold: "Gras",
italic: "Italique",
underline: "Souligné",
strikethrough: "Barré",
subscript: "Indice",
superscript: "Exposant",
justifyleft: "Aligné à gauche",
justifycenter: "Centré",
justifyright: "Aligné à droite",
justifyfull: "Justifier",
orderedlist: "Numérotation",
unorderedlist: "Puces",
outdent: "Diminuer le retrait",
indent: "Augmenter le retrait",
forecolor: "Couleur de police",
hilitecolor: "Surlignage",
horizontalrule: "Ligne horizontale",
createlink: "Insérer un hyperlien",
insertimage: "Insérer/Modifier une image",
inserttable: "Insérer un tableau",
htmlmode: "Passer au code source",
popupeditor: "Agrandir l'éditeur",
about: "À propos de cet éditeur",
showhelp: "Aide sur l'éditeur",
textindicator: "Style courant",
undo: "Annuler la dernière action",
redo: "Répéter la dernière action",
cut: "Couper la sélection",
copy: "Copier la sélection",
paste: "Coller depuis le presse-papier",
lefttoright: "Direction de gauche à droite",
righttoleft: "Direction de droite à gauche"
},
buttons: {
"ok": "OK",
"cancel": "Annuler"
},
msg: {
"Path": "Chemin",
"TEXT_MODE": "Vous êtes en MODE TEXTE. Appuyez sur le bouton [<>] pour retourner au mode tel-tel.",
"IE-sucks-full-screen" :
// translate here
"Le mode plein écran peut causer des problèmes sous Internet Explorer, " +
"ceci dû à des bogues du navigateur qui ont été impossible à contourner. " +
"Les différents symptômes peuvent être un affichage déficient, le manque de " +
"fonctions dans l'éditeur et/ou pannes aléatoires du navigateur. Si votre " +
"système est Windows 9x, il est possible que vous subissiez une erreur de type " +
"«General Protection Fault» et que vous ayez à redémarrer votre ordinateur." +
"\n\nConsidérez-vous comme ayant été avisé. Appuyez sur OK si vous désirez tout " +
"de même essayer le mode plein écran de l'éditeur."
},
dialogs: {
"Cancel" : "Annuler",
"Insert/Modify Link" : "Insérer/Modifier Lien",
"New window (_blank)" : "Nouvelle fenêtre (_blank)",
"None (use implicit)" : "Aucun (par défaut)",
"OK" : "OK",
"Other" : "Autre",
"Same frame (_self)" : "Même cadre (_self)",
"Target:" : "Cible:",
"Title (tooltip):" : "Titre (infobulle):",
"Top frame (_top)" : "Cadre du haut (_top)",
"URL:" : "Adresse Web:",
"You must enter the URL where this link points to" : "Vous devez entrer l'adresse Web du lien"
}
};

View File

@ -1,36 +0,0 @@
// I18N constants -- Chinese GB
// by Dave Lo -- dlo@interactivetools.com
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "gb",
tooltips: {
bold: "粗体",
italic: "斜体",
underline: "底线",
strikethrough: "删除线",
subscript: "下标",
superscript: "上标",
justifyleft: "位置靠左",
justifycenter: "位置居中",
justifyright: "位置靠右",
justifyfull: "位置左右平等",
orderedlist: "顺序清单",
unorderedlist: "无序清单",
outdent: "减小行前空白",
indent: "加宽行前空白",
forecolor: "文字颜色",
backcolor: "背景颜色",
horizontalrule: "水平线",
createlink: "插入连结",
insertimage: "插入图形",
inserttable: "插入表格",
htmlmode: "切换HTML原始码",
popupeditor: "放大",
about: "关於 HTMLArea",
help: "说明",
textindicator: "字体例子"
}
};

View File

@ -1,89 +0,0 @@
// I18N constants
// LANG: "he", ENCODING: UTF-8
// Author: Liron Newman, http://www.eesh.net, <plastish at ultinet dot org>
// FOR TRANSLATORS:
//
// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE
// (at least a valid email address)
//
// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING;
// (if this is not possible, please include a comment
// that states what encoding is necessary.)
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "he",
tooltips: {
bold: "מודגש",
italic: "נטוי",
underline: "קו תחתי",
strikethrough: "קו אמצע",
subscript: "כתב עילי",
superscript: "כתב תחתי",
justifyleft: " ישור לשמאל",
justifycenter: "ישור למרכז",
justifyright: "ישור לימין",
justifyfull: "ישור לשורה מלאה",
orderedlist: "רשימה ממוספרת",
unorderedlist: "רשימה לא ממוספרת",
outdent: "הקטן כניסה",
indent: "הגדל כניסה",
forecolor: "צבע גופן",
hilitecolor: "צבע רקע",
horizontalrule: "קו אנכי",
createlink: "הכנס היפר-קישור",
insertimage: "הכנס/שנה תמונה",
inserttable: "הכנס טבלה",
htmlmode: "שנה מצב קוד HTML",
popupeditor: "הגדל את העורך",
about: "אודות עורך זה",
showhelp: "עזרה לשימוש בעורך",
textindicator: "סגנון נוכחי",
undo: "מבטל את פעולתך האחרונה",
redo: "מבצע מחדש את הפעולה האחרונה שביטלת",
cut: "גזור בחירה",
copy: "העתק בחירה",
paste: "הדבק מהלוח",
lefttoright: "כיוון משמאל לימין",
righttoleft: "כיוון מימין לשמאל"
},
buttons: {
"ok": "אישור",
"cancel": "ביטול"
},
msg: {
"Path": "נתיב עיצוב",
"TEXT_MODE": "אתה במצב טקסט נקי (קוד). השתמש בכפתור [<>] כדי לחזור למצב WYSIWYG (תצוגת עיצוב).",
"IE-sucks-full-screen" :
// translate here
"מצב מסך מלא יוצר בעיות בדפדפן Internet Explorer, " +
"עקב באגים בדפדפן לא יכולנו לפתור את זה. את/ה עלול/ה לחוות תצוגת זבל, " +
"בעיות בתפקוד העורך ו/או קריסה של הדפדפן. אם המערכת שלך היא Windows 9x " +
"סביר להניח שתקבל/י 'General Protection Fault' ותאלצ/י לאתחל את המחשב.\n\n" +
"ראה/י הוזהרת. אנא לחץ/י אישור אם את/ה עדיין רוצה לנסות את העורך במסך מלא."
},
dialogs: {
"Cancel" : "ביטול",
"Insert/Modify Link" : "הוסף/שנה קישור",
"New window (_blank)" : "חלון חדש (_blank)",
"None (use implicit)" : "ללא (השתמש ב-frame הקיים)",
"OK" : "OK",
"Other" : "אחר",
"Same frame (_self)" : "אותו frame (_self)",
"Target:" : "יעד:",
"Title (tooltip):" : "כותרת (tooltip):",
"Top frame (_top)" : "Frame עליון (_top)",
"URL:" : "URL:",
"You must enter the URL where this link points to" : "חובה לכתוב URL שאליו קישור זה מצביע"
}
};

View File

@ -1,90 +0,0 @@
// I18N constants
// LANG: "hu", ENCODING: UTF-8
// Author: Miklós Somogyi, <somogyine@vnet.hu>
// FOR TRANSLATORS:
//
// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE
// (at least a valid email address)
//
// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING;
// (if this is not possible, please include a comment
// that states what encoding is necessary.)
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "hu",
tooltips: {
bold: "Félkövér",
italic: "Dőlt",
underline: "Aláhúzott",
strikethrough: "Áthúzott",
subscript: "Alsó index",
superscript: "Felső index",
justifyleft: "Balra zárt",
justifycenter: "Középre zárt",
justifyright: "Jobbra zárt",
justifyfull: "Sorkizárt",
orderedlist: "Számozott lista",
unorderedlist: "Számozatlan lista",
outdent: "Behúzás csökkentése",
indent: "Behúzás növelése",
forecolor: "Karakterszín",
hilitecolor: "Háttérszín",
horizontalrule: "Elválasztó vonal",
createlink: "Hiperhivatkozás beszúrása",
insertimage: "Kép beszúrása",
inserttable: "Táblázat beszúrása",
htmlmode: "HTML forrás be/ki",
popupeditor: "Szerkesztő külön ablakban",
about: "Névjegy",
showhelp: "Súgó",
textindicator: "Aktuális stílus",
undo: "Visszavonás",
redo: "Újra végrehajtás",
cut: "Kivágás",
copy: "Másolás",
paste: "Beillesztés",
lefttoright: "Irány balról jobbra",
righttoleft: "Irány jobbról balra"
},
buttons: {
"ok": "Rendben",
"cancel": "Mégsem"
},
msg: {
"Path": "Hierarchia",
"TEXT_MODE": "Forrás mód. Visszaváltás [<>] gomb",
"IE-sucks-full-screen" :
// translate here
"A teljesképrenyős szerkesztés hibát okozhat Internet Explorer használata esetén, " +
"ez a böngésző a hibája, amit nem tudunk kikerülni. Szemetet észlelhet a képrenyőn, " +
"illetve néhány funkció hiányozhat és/vagy véletlenszerűen lefagyhat a böngésző. " +
"Windows 9x operaciós futtatása esetén elég valószínű, hogy 'General Protection Fault' " +
"hibát okoz és újra kell indítania a számítógépet.\n\n" +
"Figyelmeztettük. Kérjük nyomja meg a Rendben gombot, ha mégis szeretné megnyitni a " +
"szerkesztőt külön ablakban."
},
dialogs: {
"Cancel" : "Mégsem",
"Insert/Modify Link" : "Hivatkozás Beszúrása/Módosítása",
"New window (_blank)" : "Új ablak (_blank)",
"None (use implicit)" : "Nincs (use implicit)",
"OK" : "OK",
"Other" : "Más",
"Same frame (_self)" : "Ugyanabba a keretbe (_self)",
"Target:" : "Cél:",
"Title (tooltip):" : "Cím (tooltip):",
"Top frame (_top)" : "Felső keret (_top)",
"URL:" : "URL:",
"You must enter the URL where this link points to" : "Be kell írnia az URL-t, ahova a hivatkozás mutasson"
}
};

View File

@ -1,79 +0,0 @@
// I18N constants
// LANG: "it", ENCODING: UTF-8 | ISO-8859-1
// Author: Fabio Rotondo <fabio@rotondo.it>
// Update for 3.0 rc1: Giovanni Premuda <gpremuda@softwerk.it>
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "it",
tooltips: {
bold: "Grassetto",
italic: "Corsivo",
underline: "Sottolineato",
strikethrough: "Barrato",
subscript: "Pedice",
superscript: "Apice",
justifyleft: "Allinea a sinistra",
justifycenter: "Allinea in centro",
justifyright: "Allinea a destra",
justifyfull: "Giustifica",
insertorderedlist: "Lista ordinata",
insertunorderedlist: "Lista puntata",
outdent: "Decrementa indentazione",
indent: "Incrementa indentazione",
forecolor: "Colore del carattere",
hilitecolor: "Colore di sfondo",
inserthorizontalrule: "Linea orizzontale",
createlink: "Inserisci un link",
insertimage: "Inserisci un'immagine",
inserttable: "Inserisci una tabella",
htmlmode: "Visualizzazione HTML",
popupeditor: "Editor a pieno schermo",
about: "Info sull'editor",
showhelp: "Aiuto sull'editor",
textindicator: "Stile corrente",
undo: "Annulla",
redo: "Ripristina",
cut: "Taglia",
copy: "Copia",
paste: "Incolla",
lefttoright: "Scrivi da sinistra a destra",
righttoleft: "Scrivi da destra a sinistra"
},
buttons: {
"ok": "OK",
"cancel": "Annulla"
},
msg: {
"Path": "Percorso",
"TEXT_MODE": "Sei in MODALITA' TESTO. Usa il bottone [<>] per tornare alla modalità WYSIWYG.",
"IE-sucks-full-screen" :
// translate here
"The full screen mode is known to cause problems with Internet Explorer, " +
"due to browser bugs that we weren't able to workaround. You might experience garbage " +
"display, lack of editor functions and/or random browser crashes. If your system is Windows 9x " +
"it's very likely that you'll get a 'General Protection Fault' and need to reboot.\n\n" +
"You have been warned. Please press OK if you still want to try the full screen editor."
},
dialogs: {
"Annulla" : "Cancel",
"Inserisci/modifica Link" : "Insert/Modify Link",
"Nuova finestra (_blank)" : "New window (_blank)",
"Nessuno (usa predefinito)" : "None (use implicit)",
"OK" : "OK",
"Altro" : "Other",
"Stessa finestra (_self)" : "Same frame (_self)",
"Target:" : "Target:",
"Title (suggerimento):" : "Title (tooltip):",
"Frame principale (_top)" : "Top frame (_top)",
"URL:" : "URL:",
"You must enter the URL where this link points to" : "Devi inserire un indirizzo per questo link"
}
};

View File

@ -1,37 +0,0 @@
// I18N constants -- Japanese EUC
// by Manabu Onoue -- tmocsys@tmocsys.com
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "ja-euc",
tooltips: {
bold: "太字",
italic: "斜体",
underline: "下線",
strikethrough: "打ち消し線",
subscript: "下付き添え字",
superscript: "上付き添え字",
justifyleft: "左寄せ",
justifycenter: "中央寄せ",
justifyright: "右寄せ",
justifyfull: "均等割付",
orderedlist: "番号付き箇条書き",
unorderedlist: "記号付き箇条書き",
outdent: "インデント解除",
indent: "インデント設定",
forecolor: "文字色",
backcolor: "背景色",
horizontalrule: "水平線",
createlink: "リンク作成",
insertimage: "画像挿入",
inserttable: "テーブル挿入",
htmlmode: "HTML表示切替",
popupeditor: "エディタ拡大",
about: "バージョン情報",
help: "ヘルプ",
textindicator: "現在のスタイル"
}
};

View File

@ -1,37 +0,0 @@
// I18N constants -- Japanese JIS
// by Manabu Onoue -- tmocsys@tmocsys.com
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "ja-jis",
tooltips: {
bold: "$BB@;z(B",
italic: "$B<PBN(B",
underline: "$B2<@~(B",
strikethrough: "$BBG$A>C$7@~(B",
subscript: "$B2<IU$-E:$(;z(B",
superscript: "$B>eIU$-E:$(;z(B",
justifyleft: "$B:84s$;(B",
justifycenter: "$BCf1{4s$;(B",
justifyright: "$B1&4s$;(B",
justifyfull: "$B6QEy3dIU(B",
orderedlist: "$BHV9fIU$-2U>r=q$-(B",
unorderedlist: "$B5-9fIU$-2U>r=q$-(B",
outdent: "$B%$%s%G%s%H2r=|(B",
indent: "$B%$%s%G%s%H@_Dj(B",
forecolor: "$BJ8;z?'(B",
backcolor: "$BGX7J?'(B",
horizontalrule: "$B?eJ?@~(B",
createlink: "$B%j%s%/:n@.(B",
insertimage: "$B2hA|A^F~(B",
inserttable: "$B%F!<%V%kA^F~(B",
htmlmode: "HTML$BI=<(@ZBX(B",
popupeditor: "$B%(%G%#%?3HBg(B",
about: "$B%P!<%8%g%s>pJs(B",
help: "$B%X%k%W(B",
textindicator: "$B8=:_$N%9%?%$%k(B"
}
};

View File

@ -1,37 +0,0 @@
// I18N constants -- Japanese Shift-JIS
// by Manabu Onoue -- tmocsys@tmocsys.com
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "ja-sjis",
tooltips: {
bold: "太字",
italic: "斜体",
underline: "下線",
strikethrough: "打ち消し線",
subscript: "下付き添え字",
superscript: "上付き添え字",
justifyleft: "左寄せ",
justifycenter: "中央寄せ",
justifyright: "右寄せ",
justifyfull: "均等割付",
orderedlist: "番号付き箇条書き",
unorderedlist: "記号付き箇条書き",
outdent: "インデント解除",
indent: "インデント設定",
forecolor: "文字色",
backcolor: "背景色",
horizontalrule: "水平線",
createlink: "リンク作成",
insertimage: "画像挿入",
inserttable: "テーブル挿入",
htmlmode: "HTML表示切替",
popupeditor: "エディタ拡大",
about: "バージョン情報",
help: "ヘルプ",
textindicator: "現在のスタイル"
}
};

View File

@ -1,37 +0,0 @@
// I18N constants -- Japanese UTF-8
// by Manabu Onoue -- tmocsys@tmocsys.com
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "ja-utf8",
tooltips: {
bold: "太字",
italic: "斜体",
underline: "下線",
strikethrough: "打ち消し線",
subscript: "下付き添え字",
superscript: "上付き添え字",
justifyleft: "左寄せ",
justifycenter: "中央寄せ",
justifyright: "右寄せ",
justifyfull: "均等割付",
orderedlist: "番号付き箇条書き",
unorderedlist: "記号付き箇条書き",
outdent: "インデント解除",
indent: "インデント設定",
forecolor: "文字色",
backcolor: "背景色",
horizontalrule: "水平線",
createlink: "リンク作成",
insertimage: "画像挿入",
inserttable: "テーブル挿入",
htmlmode: "HTML表示切替",
popupeditor: "エディタ拡大",
about: "バージョン情報",
help: "ヘルプ",
textindicator: "現在のスタイル"
}
};

View File

@ -1,77 +0,0 @@
// I18N constants
// LANG: "lt", ENCODING: UTF-8
// Author: Jaroslav Šatkevič, <jaro@akl.lt>
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "en",
tooltips: {
bold: "Paryškinti",
italic: "Kursyvas",
underline: "Pabraukti",
strikethrough: "Perbraukti",
subscript: "Apatinis indeksas",
superscript: "Viršutinis indeksas",
justifyleft: "Lygiavimas pagal kairę",
justifycenter: "Lygiavimas pagal centrą",
justifyright: "Lygiavimas pagal dešinę",
justifyfull: "Lygiuoti pastraipą",
orderedlist: "Numeruotas sąrašas",
unorderedlist: "Suženklintas sąrašas",
outdent: "Sumažinti paraštę",
indent: "Padidinti paraštę",
forecolor: "Šrifto spalva",
hilitecolor: "Fono spalva",
horizontalrule: "Horizontali linija",
createlink: "Įterpti nuorodą",
insertimage: "Įterpti paveiksliuką",
inserttable: "Įterpti lentelę",
htmlmode: "Perjungti į HTML/WYSIWYG",
popupeditor: "Išplėstas redagavimo ekranas/Enlarge Editor",
about: "Apie redaktorių",
showhelp: "Pagalba naudojant redaktorių",
textindicator: "Dabartinis stilius",
undo: "Atšaukia paskutini jūsų veiksmą",
redo: "Pakartoja paskutinį atšauktą jūsų veiksmą",
cut: "Iškirpti",
copy: "Kopijuoti",
paste: "Įterpti"
},
buttons: {
"ok": "OK",
"cancel": "Atšaukti"
},
msg: {
"Path": "Kelias",
"TEXT_MODE": "Jūs esete teksto režime. Naudokite [<>] mygtuką grįžimui į WYSIWYG.",
"IE-sucks-full-screen" :
// translate here
"The full screen mode is known to cause problems with Internet Explorer, " +
"due to browser bugs that we weren't able to workaround. You might experience garbage " +
"display, lack of editor functions and/or random browser crashes. If your system is Windows 9x " +
"it's very likely that you'll get a 'General Protection Fault' and need to reboot.\n\n" +
"You have been warned. Please press OK if you still want to try the full screen editor."
},
dialogs: {
"Cancel" : "Atšaukti",
"Insert/Modify Link" : "Idėti/Modifikuoti",
"New window (_blank)" : "Naujas langas (_blank)",
"None (use implicit)" : "None (use implicit)",
"OK" : "OK",
"Other" : "Kitas",
"Same frame (_self)" : "Same frame (_self)",
"Target:" : "Target:",
"Title (tooltip):" : "Pavadinimas (tooltip):",
"Top frame (_top)" : "Top frame (_top)",
"URL:" : "URL:",
"You must enter the URL where this link points to" : "Jus privalote nurodyti URL į kuri rodo šitą nuoroda"
}
};

View File

@ -1,55 +0,0 @@
// I18N constants
// LANG: "lv", ENCODING: UTF-8 | ISO-8859-1
// Author: Mihai Bazon, http://dynarch.com/mishoo
// Translated by: Janis Klavins, <janis.klavins@devia.lv>
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "lv",
tooltips: {
bold: "Trekniem burtiem",
italic: "Kursîvâ",
underline: "Pasvîtrots",
strikethrough: "Pârsvîtrots",
subscript: "Novietot zem rindas",
superscript: "Novietot virs rindas",
justifyleft: "Izlîdzinât pa kreisi",
justifycenter: "Izlîdzinât centrâ",
justifyright: "Izlîdzinât pa labi",
justifyfull: "Izlîdzinât pa visu lapu",
orderedlist: "Numurçts saraksts",
unorderedlist: "Saraksts",
outdent: "Samazinât atkâpi",
indent: "Palielinât atkâpi",
forecolor: "Burtu krâsa",
hilitecolor: "Fona krâsa",
horizontalrule: "Horizontâla atdalîtâjsvîtra",
createlink: "Ievietot hipersaiti",
insertimage: "Ievietot attçlu",
inserttable: "Ievietot tabulu",
htmlmode: "Skatît HTML kodu",
popupeditor: "Palielinât Rediìçtâju",
about: "Par ðo rediìçtâju",
showhelp: "Rediìçtâja palîgs",
textindicator: "Patreizçjais stils",
undo: "Atcelt pçdçjo darbîbu",
redo: "Atkârtot pçdçjo darbîbu",
cut: "Izgriezt iezîmçto",
copy: "Kopçt iezîmçto",
paste: "Ievietot iezîmçto"
},
buttons: {
"ok": "Labi",
"cancel": "Atcelt"
},
msg: {
"Path": "Ceïð",
"TEXT_MODE": "Jûs patlaban darbojaties TEKSTA REÞÎMÂ. Lai pârietu atpakaï uz GRAFISKO REÞÎMU (WYSIWIG), lietojiet [<>] pogu."
}
};

View File

@ -1,3 +0,0 @@
<files>
<file name="*.js" />
</files>

View File

@ -1,36 +0,0 @@
// I18N constants
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "nb",
tooltips: {
bold: "Fet",
italic: "Kursiv",
underline: "Understreket",
strikethrough: "Gjennomstreket",
subscript: "Senket",
superscript: "Hevet",
justifyleft: "Venstrejuster",
justifycenter: "Midtjuster",
justifyright: "Høyrejuster",
justifyfull: "Blokkjuster",
orderedlist: "Nummerert liste",
unorderedlist: "Punktmerket liste",
outdent: "Øke innrykk",
indent: "Reduser innrykk",
forecolor: "Skriftfarge",
backcolor: "Bakgrunnsfarge",
horizontalrule: "Horisontal linje",
createlink: "Sett inn lenke",
insertimage: "Sett inn bilde",
inserttable: "Sett inn tabell",
htmlmode: "Vis HTML kode",
popupeditor: "Forstørr redigeringsvindu",
about: "Om..",
help: "Hjelp",
textindicator: "Gjeldende stil"
}
};

View File

@ -1,90 +0,0 @@
// I18N constants
// LANG: "nl", ENCODING: UTF-8 | ISO-8859-1
// Author: Michel Weegeerink (info@mmc-shop.nl), http://mmc-shop.nl
// FOR TRANSLATORS:
//
// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE
// (at least a valid email address)
//
// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING;
// (if this is not possible, please include a comment
// that states what encoding is necessary.)
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "nl",
tooltips: {
bold: "Vet",
italic: "Cursief",
underline: "Onderstrepen",
strikethrough: "Doorhalen",
subscript: "Subscript",
superscript: "Superscript",
justifyleft: "Links uitlijnen",
justifycenter: "Centreren",
justifyright: "Rechts uitlijnen",
justifyfull: "Uitvullen",
orderedlist: "Nummering",
unorderedlist: "Opsommingstekens",
outdent: "Inspringing verkleinen",
indent: "Inspringing vergroten",
forecolor: "Tekstkleur",
hilitecolor: "Achtergrondkleur",
inserthorizontalrule: "Horizontale lijn",
createlink: "Hyperlink invoegen/aanpassen",
insertimage: "Afbeelding invoegen/aanpassen",
inserttable: "Tabel invoegen",
htmlmode: "HTML broncode",
popupeditor: "Vergroot Editor",
about: "Over deze editor",
showhelp: "HTMLArea help",
textindicator: "Huidige stijl",
undo: "Ongedaan maken",
redo: "Herhalen",
cut: "Knippen",
copy: "Kopiëren",
paste: "Plakken",
lefttoright: "Tekstrichting links naar rechts",
righttoleft: "Tekstrichting rechts naar links"
},
buttons: {
"ok": "OK",
"cancel": "Annuleren"
},
msg: {
"Path": "Pad",
"TEXT_MODE": "Je bent in TEKST-mode. Gebruik de [<>] knop om terug te keren naar WYSIWYG-mode.",
"IE-sucks-full-screen" :
// translate here
"Fullscreen-mode veroorzaakt problemen met Internet Explorer door bugs in de webbrowser " +
"die we niet kunnen omzeilen. Hierdoor kunnen de volgende effecten optreden: verknoeide teksten, " +
"een verlies aan editor-functionaliteit en/of willekeurig vastlopen van de webbrowser. " +
"Als u Windows 95 of 98 gebruikt, is het zeer waarschijnlijk dat u een algemene beschermingsfout " +
"('General Protection Fault') krijgt en de computer opnieuw zal moeten opstarten.\n\n" +
"U bent gewaarschuwd. Druk OK als u toch nog de Fullscreen-editor wil gebruiken."
},
dialogs: {
"Cancel" : "Annuleren",
"Insert/Modify Link" : "Hyperlink invoegen/aanpassen",
"New window (_blank)" : "Nieuw venster (_blank)",
"None (use implicit)" : "Geen",
"OK" : "OK",
"Other" : "Ander",
"Same frame (_self)" : "Zelfde frame (_self)",
"Target:" : "Doel:",
"Title (tooltip):" : "Titel (tooltip):",
"Top frame (_top)" : "Bovenste frame (_top)",
"URL:" : "URL:",
"You must enter the URL where this link points to" : "Geef de URL in waar de link naar verwijst"
}
};

View File

@ -1,79 +0,0 @@
// Norwegian version for htmlArea v3.0 - pre1
// - translated by ses<ses@online.no>
// Additional translations by Håvard Wigtil <havardw@extend.no>
// term´s and licenses are equal to htmlarea!
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "no",
tooltips: {
bold: "Fet",
italic: "Kursiv",
underline: "Understreket",
strikethrough: "Gjennomstreket",
subscript: "Nedsenket",
superscript: "Opphøyet",
justifyleft: "Venstrejuster",
justifycenter: "Midtjuster",
justifyright: "Høyrejuster",
justifyfull: "Blokkjuster",
orderedlist: "Nummerert liste",
unorderedlist: "Punktliste",
outdent: "Reduser innrykk",
indent: "Øke innrykk",
forecolor: "Tekstfarge",
hilitecolor: "Bakgrundsfarge",
inserthorizontalrule: "Vannrett linje",
createlink: "Lag lenke",
insertimage: "Sett inn bilde",
inserttable: "Sett inn tabell",
htmlmode: "Vis kildekode",
popupeditor: "Vis i eget vindu",
about: "Om denne editor",
showhelp: "Hjelp",
textindicator: "Nåværende stil",
undo: "Angrer siste redigering",
redo: "Gjør om siste angring",
cut: "Klipp ut område",
copy: "Kopier område",
paste: "Lim inn",
lefttoright: "Fra venstre mot høyre",
righttoleft: "Fra høyre mot venstre"
},
buttons: {
"ok": "OK",
"cancel": "Avbryt"
},
msg: {
"Path": "Tekstvelger",
"TEXT_MODE": "Du er i tekstmodus Klikk på [<>] for å gå tilbake til WYSIWIG.",
"IE-sucks-full-screen" :
// translate here
"Visning i eget vindu har kjente problemer med Internet Explorer, " +
"på grunn av problemer med denne nettleseren. Mulige problemer er et uryddig " +
"skjermbilde, manglende editorfunksjoner og/eller at nettleseren crasher. Hvis du bruker Windows 95 eller Windows 98 " +
"er det også muligheter for at Windows will crashe.\n\n" +
"Trykk 'OK' hvis du vil bruke visning i eget vindu på tross av denne advarselen."
},
dialogs: {
"Cancel" : "Avbryt",
"Insert/Modify Link" : "Rediger lenke",
"New window (_blank)" : "Eget vindu (_blank)",
"None (use implicit)" : "Ingen (bruk standardinnstilling)",
"OK" : "OK",
"Other" : "Annen",
"Same frame (_self)" : "Samme ramme (_self)",
"Target:" : "Mål:",
"Title (tooltip):" : "Tittel (tooltip):",
"Top frame (_top)" : "Toppramme (_top)",
"URL:" : "Adresse:",
"You must enter the URL where this link points to" : "Du må skrive inn en adresse som denne lenken skal peke til"
}
};

View File

@ -1,36 +0,0 @@
// I18N constants
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "pl",
tooltips: {
bold: "Pogrubienie",
italic: "Pochylenie",
underline: "Podkreślenie",
strikethrough: "Przekreślenie",
subscript: "Indeks dolny",
superscript: "Indeks górny",
justifyleft: "Wyrównaj do lewej",
justifycenter: "Wyśrodkuj",
justifyright: "Wyrównaj do prawej",
justifyfull: "Wyjustuj",
orderedlist: "Numerowanie",
unorderedlist: "Wypunktowanie",
outdent: "Zmniejsz wcięcie",
indent: "Zwiększ wcięcie",
forecolor: "Kolor czcionki",
backcolor: "Kolor tła",
horizontalrule: "Linia pozioma",
createlink: "Wstaw adres sieci Web",
insertimage: "Wstaw obraz",
inserttable: "Wstaw tabelę",
htmlmode: "Edycja WYSIWYG/w źródle strony",
popupeditor: "Pełny ekran",
about: "Informacje o tym edytorze",
help: "Pomoc",
textindicator: "Obecny styl"
}
};

View File

@ -1,37 +0,0 @@
// I18N constants
// Brazilian Portuguese Translation by Alex Piaz <webmaster@globalmap.com>
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "pt_br",
tooltips: {
bold: "Negrito",
italic: "Itálico",
underline: "Sublinhado",
strikethrough: "Tachado",
subscript: "Subescrito",
superscript: "Sobrescrito",
justifyleft: "Alinhar à Esquerda",
justifycenter: "Centralizar",
justifyright: "Alinhar à Direita",
justifyfull: "Justificar",
orderedlist: "Lista Numerada",
unorderedlist: "Lista Marcadores",
outdent: "Diminuir Indentação",
indent: "Aumentar Indentação",
forecolor: "Cor da Fonte",
backcolor: "Cor do Fundo",
horizontalrule: "Linha Horizontal",
createlink: "Inserir Link",
insertimage: "Inserir Imagem",
inserttable: "Inserir Tabela",
htmlmode: "Ver Código-Fonte",
popupeditor: "Expandir Editor",
about: "Sobre",
help: "Ajuda",
textindicator: "Estilo Atual"
}
};

View File

@ -1,80 +0,0 @@
// I18N constants
// LANG: "ro", ENCODING: UTF-8
// Author: Mihai Bazon, http://dynarch.com/mishoo
// FOR TRANSLATORS:
//
// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE
// (at least a valid email address)
//
// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING;
// (if this is not possible, please include a comment
// that states what encoding is necessary.)
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "ro",
tooltips: {
bold: "Îngroşat",
italic: "Italic",
underline: "Subliniat",
strikethrough: "Tăiat",
subscript: "Indice jos",
superscript: "Indice sus",
justifyleft: "Aliniere la stânga",
justifycenter: "Aliniere pe centru",
justifyright: "Aliniere la dreapta",
justifyfull: "Aliniere în ambele părţi",
orderedlist: "Listă ordonată",
unorderedlist: "Listă marcată",
outdent: "Micşorează alineatul",
indent: "Măreşte alineatul",
forecolor: "Culoarea textului",
hilitecolor: "Culoare de fundal",
horizontalrule: "Linie orizontală",
createlink: "Inserează/modifică link",
insertimage: "Inserează/modifică imagine",
inserttable: "Inserează un tabel",
htmlmode: "Sursa HTML / WYSIWYG",
popupeditor: "Maximizează editorul",
about: "Despre editor",
showhelp: "Documentaţie (devel)",
textindicator: "Stilul curent",
undo: "Anulează ultima acţiune",
redo: "Reface ultima acţiune anulată",
cut: "Taie în clipboard",
copy: "Copie în clipboard",
paste: "Aduce din clipboard",
lefttoright: "Direcţia de scriere: stânga - dreapta",
righttoleft: "Direcţia de scriere: dreapta - stânga"
},
buttons: {
"ok": "OK",
"cancel": "Anulează"
},
msg: {
"Path": "Calea",
"TEXT_MODE": "Eşti în modul TEXT. Apasă butonul [<>] pentru a te întoarce în modul WYSIWYG."
},
dialogs: {
"Cancel" : "Renunţă",
"Insert/Modify Link" : "Inserează/modifcă link",
"New window (_blank)" : "Fereastră nouă (_blank)",
"None (use implicit)" : "Nimic (foloseşte ce-i implicit)",
"OK" : "Acceptă",
"Other" : "Alt target",
"Same frame (_self)" : "Aceeaşi fereastră (_self)",
"Target:" : "Ţinta:",
"Title (tooltip):" : "Titlul (tooltip):",
"Top frame (_top)" : "Fereastra principală (_top)",
"URL:" : "URL:",
"You must enter the URL where this link points to" : "Trebuie să introduceţi un URL"
}
};

View File

@ -1,63 +0,0 @@
// I18N constants
// LANG: "ru", ENCODING: UTF-8 | ISO-8859-1
// Author: Yulya Shtyryakova, <yulya@vdcom.ru>
// FOR TRANSLATORS:
//
// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE
// (at least a valid email address)
//
// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING;
// (if this is not possible, please include a comment
// that states what encoding is necessary.)
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "ru",
tooltips: {
bold: "Полужирный",
italic: "Наклонный",
underline: "Подчеркнутый",
strikethrough: "Перечеркнутый",
subscript: "Нижний индекс",
superscript: "Верхний индекс",
justifyleft: "По левому краю",
justifycenter: "По центру",
justifyright: "По правому краю",
justifyfull: "По ширине",
orderedlist: "Нумерованный лист",
unorderedlist: "Маркированный лист",
outdent: "Уменьшить отступ",
indent: "Увеличить отступ",
forecolor: "Цвет шрифта",
hilitecolor: "Цвет фона",
horizontalrule: "Горизонтальный разделитель",
createlink: "Вставить гиперссылку",
insertimage: "Вставить изображение",
inserttable: "Вставить таблицу",
htmlmode: "Показать Html-код",
popupeditor: "Увеличить редактор",
about: "О редакторе",
showhelp: "Помощь",
textindicator: "Текущий стиль",
undo: "Отменить",
redo: "Повторить",
cut: "Вырезать",
copy: "Копировать",
paste: "Вставить"
},
buttons: {
"ok": "OK",
"cancel": "Отмена"
},
msg: {
"Path": "Путь",
"TEXT_MODE": "Вы в режиме отображения Html-кода. нажмите кнопку [<>], чтобы переключиться в визуальный режим."
}
};

View File

@ -1,38 +0,0 @@
// Swedish version for htmlArea v3.0 - Alpha Release
// - translated by pat<pat@engvall.nu>
// term´s and licenses are equal to htmlarea!
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "se",
tooltips: {
bold: "Fet",
italic: "Kursiv",
underline: "Understruken",
strikethrough: "Genomstruken",
subscript: "Nedsänkt",
superscript: "Upphöjd",
justifyleft: "Vänsterjustera",
justifycenter: "Centrera",
justifyright: "Högerjustera",
justifyfull: "Marginaljustera",
orderedlist: "Numrerad lista",
unorderedlist: "Punktlista",
outdent: "Minska indrag",
indent: "Öka indrag",
forecolor: "Textfärg",
backcolor: "Bakgrundsfärg",
horizontalrule: "Vågrät linje",
createlink: "Infoga länk",
insertimage: "Infoga bild",
inserttable: "Infoga tabell",
htmlmode: "Visa källkod",
popupeditor: "Visa i eget fönster",
about: "Om denna editor",
help: "Hjälp",
textindicator: "Nuvarande stil"
}
};

View File

@ -1,63 +0,0 @@
// I18N constants
// LANG: "si", ENCODING: ISO-8859-2
// Author: Tomaz Kregar, x_tomo_x@email.si
// FOR TRANSLATORS:
//
// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE
// (at least a valid email address)
//
// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING;
// (if this is not possible, please include a comment
// that states what encoding is necessary.)
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "si",
tooltips: {
bold: "Krepko",
italic: "Le¾eèe",
underline: "Podèrtano",
strikethrough: "Preèrtano",
subscript: "Podpisano",
superscript: "Nadpisano",
justifyleft: "Poravnaj levo",
justifycenter: "Na sredino",
justifyright: "Poravnaj desno",
justifyfull: "Porazdeli vsebino",
orderedlist: "O¹tevilèevanje",
unorderedlist: "Oznaèevanje",
outdent: "Zmanj¹aj zamik",
indent: "Poveèaj zamik",
forecolor: "Barva pisave",
hilitecolor: "Barva ozadja",
horizontalrule: "Vodoravna èrta",
createlink: "Vstavi hiperpovezavo",
insertimage: "Vstavi sliko",
inserttable: "Vstavi tabelo",
htmlmode: "Preklopi na HTML kodo",
popupeditor: "Poveèaj urejevalnik",
about: "Vizitka za urejevalnik",
showhelp: "Pomoè za urejevalnik",
textindicator: "Trenutni slog",
undo: "Razveljavi zadnjo akcijo",
redo: "Uveljavi zadnjo akcijo",
cut: "Izre¾i",
copy: "Kopiraj",
paste: "Prilepi"
},
buttons: {
"ok": "V redu",
"cancel": "Preklièi"
},
msg: {
"Path": "Pot",
"TEXT_MODE": "Si v tekstovnem naèinu. Uporabi [<>] gumb za prklop nazaj na WYSIWYG."
}
};

View File

@ -1,51 +0,0 @@
// I18N constants : Vietnamese
// LANG: "en", ENCODING: UTF-8
// Author: Nguyễn Đình Nam, <hncryptologist@yahoo.com>
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "vn",
tooltips: {
bold: "Đậm",
italic: "Nghiêng",
underline: "Gạch Chân",
strikethrough: "Gạch Xóa",
subscript: "Viết Xuống Dưới",
superscript: "Viết Lên Trên",
justifyleft: "Căn Trái",
justifycenter: "Căn Giữa",
justifyright: "Căn Phải",
justifyfull: "Căn Đều",
orderedlist: "Danh Sách Có Thứ Tự",
unorderedlist: "Danh Sách Phi Thứ Tự",
outdent: "Lùi Ra Ngoài",
indent: "Thụt Vào Trong",
forecolor: "Màu Chữ",
backcolor: "Màu Nền",
horizontalrule: "Dòng Kẻ Ngang",
createlink: "Tạo Liên Kết",
insertimage: "Chèn Ảnh",
inserttable: "Chèn Bảng",
htmlmode: "Chế Độ Mã HTML",
popupeditor: "Phóng To Ô Soạn Thảo",
about: "Tự Giới Thiệu",
showhelp: "Giúp Đỡ",
textindicator: "Định Dạng Hiện Thời",
undo: "Undo",
redo: "Redo",
cut: "Cắt",
copy: "Copy",
paste: "Dán"
},
buttons: {
"ok": "OK",
"cancel": "Hủy"
},
msg: {
"Path": "Đường Dẫn",
"TEXT_MODE": "Bạn đang ở chế độ text. Sử dụng nút [<>] để chuyển lại chế độ WYSIWIG."
}
};

View File

@ -1,30 +0,0 @@
htmlArea License (based on BSD license)
Copyright (c) 2002-2004, interactivetools.com, inc.
Copyright (c) 2003-2004 dynarch.com
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1) Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2) Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3) Neither the name of interactivetools.com, inc. nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

View File

@ -1,2 +0,0 @@
[URL properties]
ViewMode=konq_iconview

View File

@ -1,116 +0,0 @@
// Simple CSS (className) plugin for the editor
// Sponsored by http://www.miro.com.au
// Implementation by Mihai Bazon, http://dynarch.com/mishoo.
//
// (c) dynarch.com 2003
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
//
// $Id$
function CSS(editor, params) {
this.editor = editor;
var cfg = editor.config;
var toolbar = cfg.toolbar;
var self = this;
var i18n = CSS.I18N;
var plugin_config = params[0];
var combos = plugin_config.combos;
var first = true;
for (var i = combos.length; --i >= 0;) {
var combo = combos[i];
var id = "CSS-class" + i;
var css_class = {
id : id,
options : combo.options,
action : function(editor) { self.onSelect(editor, this, combo.context, combo.updatecontextclass); },
refresh : function(editor) { self.updateValue(editor, this); },
context : combo.context
};
cfg.registerDropdown(css_class);
// prepend to the toolbar
toolbar[1].splice(0, 0, first ? "separator" : "space");
toolbar[1].splice(0, 0, id);
if (combo.label)
toolbar[1].splice(0, 0, "T[" + combo.label + "]");
first = false;
}
};
CSS._pluginInfo = {
name : "CSS",
version : "1.0",
developer : "Mihai Bazon",
developer_url : "http://dynarch.com/mishoo/",
c_owner : "Mihai Bazon",
sponsor : "Miro International",
sponsor_url : "http://www.miro.com.au",
license : "htmlArea"
};
CSS.prototype.onSelect = function(editor, obj, context, updatecontextclass) {
var tbobj = editor._toolbarObjects[obj.id];
var index = tbobj.element.selectedIndex;
var className = tbobj.element.value;
// retrieve parent element of the selection
var parent = editor.getParentElement();
var surround = true;
var is_span = (parent && parent.tagName.toLowerCase() == "span");
var update_parent = (context && updatecontextclass && parent && parent.tagName.toLowerCase() == context);
if (update_parent) {
parent.className = className;
editor.updateToolbar();
return;
}
if (is_span && index == 0 && !/\S/.test(parent.style.cssText)) {
while (parent.firstChild) {
parent.parentNode.insertBefore(parent.firstChild, parent);
}
parent.parentNode.removeChild(parent);
editor.updateToolbar();
return;
}
if (is_span) {
// maybe we could simply change the class of the parent node?
if (parent.childNodes.length == 1) {
parent.className = className;
surround = false;
// in this case we should handle the toolbar updation
// ourselves.
editor.updateToolbar();
}
}
// Other possibilities could be checked but require a lot of code. We
// can't afford to do that now.
if (surround) {
// shit happens ;-) most of the time. this method works, but
// it's dangerous when selection spans multiple block-level
// elements.
editor.surroundHTML("<span class='" + className + "'>", "</span>");
}
};
CSS.prototype.updateValue = function(editor, obj) {
var select = editor._toolbarObjects[obj.id].element;
var parent = editor.getParentElement();
if (typeof parent.className != "undefined" && /\S/.test(parent.className)) {
var options = select.options;
var value = parent.className;
for (var i = options.length; --i >= 0;) {
var option = options[i];
if (value == option.value) {
select.selectedIndex = i;
return;
}
}
}
select.selectedIndex = 0;
};

View File

@ -1,2 +0,0 @@
// none yet; this file is a stub.
CSS.I18N = {};

View File

@ -1,38 +0,0 @@
#! /usr/bin/perl -w
use strict;
my $file = 'context-menu.js';
my $outfile = $file.'-i18n';
my $langfile = 'en.js';
open FILE, "<$file";
#open OUTFILE, ">$outfile";
#open LANGFILE, ">$langfile";
my %texts = ();
while (<FILE>) {
if (/"(.*?)"/) {
my $inline = $_;
chomp $inline;
my $key = $1;
my $val = $1;
print "Key: [$key]: ";
my $line = <STDIN>;
if (defined $line) {
chomp $line;
if ($line =~ /(\S+)/) {
$key = $1;
print "-- using $key\n";
}
$texts{$val} = $key;
} else {
print " -- skipped...\n";
}
}
}
#close LANGFILE;
#close OUTFILE;
close FILE;
print "\n\n\n";
print '"', join("\"\n\"", sort keys %texts), '"', "\n";

Some files were not shown because too many files have changed in this diff Show More