Add htmlarea http://www.htmlarea.com/ tool to appdb
74
htmlarea/dialog.js
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
// htmlArea v3.0 - Copyright (c) 2003-2005 dynarch.com
|
||||||
|
// 2002-2003 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
16
htmlarea/examples/2-areas.cgi
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#! /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>";
|
||||||
162
htmlarea/examples/2-areas.html
Normal file
@@ -0,0 +1,162 @@
|
|||||||
|
<!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);
|
||||||
|
//---------------------------------------------------------------------
|
||||||
|
};
|
||||||
|
|
||||||
|
HTMLArea.init();
|
||||||
|
HTMLArea.onload = initDocument;
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body onload="">
|
||||||
|
<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">
|
||||||
|
<h3>HTMLArea #1</h3>
|
||||||
|
<p>This will submit a field named <em>text1</em>.</p>
|
||||||
|
</textarea>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<textarea id="text-area-2" name="text2" style="width: 100%; height: 12em">
|
||||||
|
<h3>Second HTMLArea</h3> <p><em>text2</em> submission. Both are
|
||||||
|
located in the same FORM element and the script action is
|
||||||
|
2-areas.cgi (see it in the examples directory)</p>
|
||||||
|
</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>
|
||||||
30
htmlarea/examples/character_map.html
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Test of CharacterMap 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("CharacterMap");
|
||||||
|
HTMLArea.onload = function() {
|
||||||
|
var editor = new HTMLArea("editor");
|
||||||
|
editor.registerPlugin(CharacterMap);
|
||||||
|
editor.generate();
|
||||||
|
}
|
||||||
|
HTMLArea.init();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body onload="">
|
||||||
|
<h1>Test of DynamicCSS plugin</h1>
|
||||||
|
|
||||||
|
<textarea id="editor" style="height: 30em; width: 100%;"></textarea>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
95
htmlarea/examples/context-menu.html
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
<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="HTMLArea.init(); HTMLArea.onload = initDocument">
|
||||||
|
<h1>Test of ContextMenu plugin</h1>
|
||||||
|
|
||||||
|
|
||||||
|
<textarea id="editor" style="height: 30em; width: 100%;">
|
||||||
|
<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"><tbody><tr><td style="border: 1px solid
|
||||||
|
rgb(255, 0, 0); background-color: rgb(0, 51, 51); background-image: none;
|
||||||
|
text-align: left; vertical-align: top;"><a
|
||||||
|
href="http://dynarch.com/mishoo/articles.epl?art_id=430"><img
|
||||||
|
src="http://127.0.0.1/~mishoo/htmlarea/examples/pieng.png" alt="" align=""
|
||||||
|
border="0" hspace="0" vspace="0" /></a></td><td
|
||||||
|
style="border: 1px solid rgb(255, 0, 0); background-color: rgb(255, 255, 0);
|
||||||
|
background-image: none; text-align: left; vertical-align: top;">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.<br /> <br /> Go on, right-click everywhere and
|
||||||
|
test our new context menus. And be thankful to <a
|
||||||
|
href="http://www.americanbible.org/">American Bible Society</a> who
|
||||||
|
sponsored the development, <a
|
||||||
|
href="http://dynarch.com/mishoo/">mishoo</a> who made it happen and
|
||||||
|
God, Who keeps mishoo alife. ;-)<br /> <br /><span
|
||||||
|
style="font-style: italic;">P.S.</span> No animals were harmed
|
||||||
|
while producing this movie.<br />
|
||||||
|
</td></tr><tr><td style="border-style: none;
|
||||||
|
background-color: rgb(255, 255, 51); background-image: none; text-align:
|
||||||
|
left; vertical-align: top;">Welcome to HTMLArea, the best online
|
||||||
|
editor.<br /></td><td>HTMLArea is a project initiated by
|
||||||
|
<a href="http://interactivetools.com/">InteractiveTools.com</a>.
|
||||||
|
Other companies contributed largely by sponsoring the development of
|
||||||
|
additional extensions. Many thanks to:<br /> <br
|
||||||
|
style="font-family: courier new,courier,monospace;" /> <div
|
||||||
|
style="margin-left: 40px;"><a href="http://www.zapatec.com/"
|
||||||
|
style="font-family: courier
|
||||||
|
new,courier,monospace;">http://www.zapatec.com</a><br
|
||||||
|
style="font-family: courier new,courier,monospace;" /> <a
|
||||||
|
href="http://www.americanbible.org/" style="font-family: courier
|
||||||
|
new,courier,monospace;">http://www.americanbible.org</a><br
|
||||||
|
style="font-family: courier new,courier,monospace;" /> <a
|
||||||
|
href="http://www.neomedia.ro/" style="font-family: courier
|
||||||
|
new,courier,monospace;">http://www.neomedia.ro</a><br
|
||||||
|
style="font-family: courier new,courier,monospace;" /> <a
|
||||||
|
href="http://www.os3.it/" style="font-family: courier
|
||||||
|
new,courier,monospace;">http://www.os3.it</a><br
|
||||||
|
style="font-family: courier new,courier,monospace;" /> <a
|
||||||
|
href="http://www.miro.com.au/" style="font-family: courier
|
||||||
|
new,courier,monospace;">http://www.miro.com.au</a><br
|
||||||
|
style="font-family: courier new,courier,monospace;" /> <a
|
||||||
|
href="http://www.thycotic.com/" style="font-family: courier
|
||||||
|
new,courier,monospace;">http://www.thycotic.com</a><br />
|
||||||
|
</div> <br /> 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.<br /> <br /><div
|
||||||
|
style="text-align: right;">-- developers and maintainers of version 3,
|
||||||
|
<a href="http://dynarch.com/">dynarch.com</a>.<br
|
||||||
|
/></div></td></tr></tbody></table>
|
||||||
|
</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>
|
||||||
184
htmlarea/examples/core.html
Normal file
@@ -0,0 +1,184 @@
|
|||||||
|
<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\"> </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="HTMLArea.init(); HTMLArea.onload = initEditor">
|
||||||
|
|
||||||
|
<h1>HTMLArea 3.0</h1>
|
||||||
|
|
||||||
|
<p>A replacement for <code>TEXTAREA</code> elements. © <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">
|
||||||
|
<p>Here is some sample text: <b>bold</b>, <i>italic</i>, <u>underline</u>. </p>
|
||||||
|
<p align=center>Different fonts, sizes and colors (all in bold):</p>
|
||||||
|
<p><b>
|
||||||
|
<font face="arial" size="7" color="#000066">arial</font>,
|
||||||
|
<font face="courier new" size="6" color="#006600">courier new</font>,
|
||||||
|
<font face="georgia" size="5" color="#006666">georgia</font>,
|
||||||
|
<font face="tahoma" size="4" color="#660000">tahoma</font>,
|
||||||
|
<font face="times new roman" size="3" color="#660066">times new roman</font>,
|
||||||
|
<font face="verdana" size="2" color="#666600">verdana</font>,
|
||||||
|
<font face="tahoma" size="1" color="#666666">tahoma</font>
|
||||||
|
</b></p>
|
||||||
|
<p>Click on <a href="http://www.interactivetools.com/">this link</a> and then on the link button to the details ... OR ... select some text and click link to create a <b>new</b> link.</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>
|
||||||
90
htmlarea/examples/css.html
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
<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="HTMLArea.init(); HTMLArea.onload = initDocument">
|
||||||
|
<h1>Test of FullPage plugin</h1>
|
||||||
|
|
||||||
|
<textarea id="editor" style="height: 30em; width: 100%;"
|
||||||
|
><h1><tt>registerDropdown</tt></h1>
|
||||||
|
|
||||||
|
<p>Here's some sample code that adds a dropdown to the toolbar. Go on, do
|
||||||
|
syntax highlighting on it ;-)</p>
|
||||||
|
|
||||||
|
<pre>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"]);</pre>
|
||||||
|
|
||||||
|
<p>Easy, eh? ;-)</p></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>
|
||||||
29
htmlarea/examples/custom.css
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
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; }
|
||||||
45
htmlarea/examples/dynamic.css
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
p {
|
||||||
|
FONT-FAMILY: Arial, Helvetica;
|
||||||
|
FONT-SIZE: 9pt;
|
||||||
|
FONT-WEIGHT: normal;
|
||||||
|
COLOR: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.p1 {
|
||||||
|
FONT-FAMILY: Arial, Helvetica;
|
||||||
|
FONT-SIZE: 11pt;
|
||||||
|
FONT-WEIGHT: normal;
|
||||||
|
COLOR: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.p2 {
|
||||||
|
FONT-FAMILY: Arial, Helvetica;
|
||||||
|
FONT-SIZE: 13pt;
|
||||||
|
FONT-WEIGHT: normal;
|
||||||
|
COLOR: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
div {
|
||||||
|
FONT-FAMILY: Arial, Helvetica;
|
||||||
|
FONT-SIZE: 9pt;
|
||||||
|
FONT-WEIGHT: bold;
|
||||||
|
COLOR: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.div1 {
|
||||||
|
FONT-FAMILY: Arial, Helvetica;
|
||||||
|
FONT-SIZE: 11pt;
|
||||||
|
FONT-WEIGHT: bold;
|
||||||
|
COLOR: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.div2 {
|
||||||
|
FONT-FAMILY: Arial, Helvetica;
|
||||||
|
FONT-SIZE: 13pt;
|
||||||
|
FONT-WEIGHT: bold;
|
||||||
|
COLOR: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quote { font-style: italic; color: #ee9; }
|
||||||
|
.highlight { background-color: yellow; color: #000; }
|
||||||
|
.deprecated { text-decoration: line-through; color: #aaa; }
|
||||||
44
htmlarea/examples/dynamic_css.html
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<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("DynamicCSS");
|
||||||
|
|
||||||
|
function initDocument() {
|
||||||
|
var editor = new HTMLArea("editor");
|
||||||
|
editor.config.pageStyle = "@import url(dynamic.css);";
|
||||||
|
editor.registerPlugin(DynamicCSS);
|
||||||
|
editor.generate();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body onload="HTMLArea.init(); HTMLArea.onload = initDocument">
|
||||||
|
<h1>Test of DynamicCSS plugin</h1>
|
||||||
|
|
||||||
|
<textarea id="editor" style="height: 30em; width: 100%;">
|
||||||
|
<p>p with default p style</p><br>
|
||||||
|
<p class="p1">p with p.class="p1"</p><br>
|
||||||
|
<p class="p2">p with p.class="p2"</p><br>
|
||||||
|
<br>
|
||||||
|
<div>div with default div class</div><br>
|
||||||
|
<div class="div1">div with div.class="div1"</div><br>
|
||||||
|
<div class="div2">div with div.class="div2"</div><br>
|
||||||
|
<br>
|
||||||
|
<span class="highlight">testtext with common class="highlight"</span>
|
||||||
|
</textarea>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
22
htmlarea/examples/empty.html
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>HTMLArea 3.0 core test</title>
|
||||||
|
<script type="text/javascript">
|
||||||
|
_editor_url = "../";
|
||||||
|
_editor_lang = "en";
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript" src="../htmlarea.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
HTMLArea.loadPlugin("ContextMenu");
|
||||||
|
HTMLArea.onload = function() {
|
||||||
|
var editor = new HTMLArea("editor");
|
||||||
|
editor.registerPlugin(ContextMenu);
|
||||||
|
editor.generate();
|
||||||
|
};
|
||||||
|
HTMLArea.init();
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<textarea id="editor" rows="20" cols="80" style="width: 100%"></textarea>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
77
htmlarea/examples/full-page.html
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
<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();
|
||||||
|
}
|
||||||
|
|
||||||
|
HTMLArea.onload = initDocument;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body onload="HTMLArea.init()">
|
||||||
|
<h1>Test of FullPage plugin</h1>
|
||||||
|
|
||||||
|
<textarea id="editor" style="height: 30em; width: 100%;">
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>FullPage plugin for HTMLArea</title>
|
||||||
|
<link rel="alternate stylesheet" href="http://dynarch.com/mishoo/css/dark.css" />
|
||||||
|
<link rel="stylesheet" href="http://dynarch.com/mishoo/css/cool-light.css" />
|
||||||
|
</head>
|
||||||
|
<body style="background-color: #ddddee; color: #000077;">
|
||||||
|
<table style="width:60%; height: 90%; margin: 2% auto 1% auto;" align="center" border="0" cellpadding="0" cellspacing="0">
|
||||||
|
<tr>
|
||||||
|
<td style="background-color: #ddeedd; border: 2px solid #002; height: 1.5em; padding: 2px; font: bold 24px Verdana;">
|
||||||
|
FullPage plugin
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="background-color: #fff; border: 1px solid #aab; padding: 1em 3em; font: 12px Verdana;">
|
||||||
|
<p>
|
||||||
|
This plugin enables one to edit a full HTML file in <a
|
||||||
|
href="http://dynarch.com/htmlarea/">HTMLArea</a>. This is not
|
||||||
|
normally possible with just the core editor since it only
|
||||||
|
retrieves the HTML inside the <code>body</code> tag.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
It provides the ability to change the <code>DOCTYPE</code> of
|
||||||
|
the document, <code>body</code> <code>bgcolor</code> and
|
||||||
|
<code>fgcolor</code> attributes as well as to add additional
|
||||||
|
<code>link</code>-ed stylesheets. Cool, eh?
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
The development of this plugin was initiated and sponsored by
|
||||||
|
<a href="http://thycotic.com">Thycotic Software Ltd.</a>.
|
||||||
|
That's also cool, isn't it? ;-)
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
</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 Aug 11 13:59:07 CEST 2004 <!-- hhmts end -->
|
||||||
|
<!-- doc-lang: English -->
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
262
htmlarea/examples/fully-loaded.html
Normal file
@@ -0,0 +1,262 @@
|
|||||||
|
<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");
|
||||||
|
HTMLArea.loadPlugin("CharacterMap");
|
||||||
|
HTMLArea.loadPlugin("DynamicCSS");
|
||||||
|
</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);
|
||||||
|
|
||||||
|
// editor.registerPlugin(CharacterMap);
|
||||||
|
editor.registerPlugin(DynamicCSS);
|
||||||
|
|
||||||
|
// 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);";
|
||||||
|
|
||||||
|
editor.generate();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
HTMLArea.onload = initEditor;
|
||||||
|
|
||||||
|
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="HTMLArea.init();">
|
||||||
|
|
||||||
|
<h1>HTMLArea 3.0</h1>
|
||||||
|
|
||||||
|
<p>A replacement for <code>TEXTAREA</code> elements. © <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">
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN">
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Passing parameters to JavaScript code</title>
|
||||||
|
<link rel="stylesheet" href="custom.css" />
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h1>Passing parameters to JavaScript code</h1>
|
||||||
|
|
||||||
|
<p>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? ;-)</p>
|
||||||
|
|
||||||
|
<p>Well, here's an original way to do it. Or at least, I think it's
|
||||||
|
original.</p>
|
||||||
|
|
||||||
|
<h2>But first...</h2>
|
||||||
|
|
||||||
|
<p>... an example. Why would I need such thing? I have a JS function that
|
||||||
|
is called on <code>BODY</code> <code>onload</code> handler. This function
|
||||||
|
tries to retrieve the element with the ID "conttoc" and, if present, it will
|
||||||
|
<a href="toc.epl" title="Automatic TOC generation">generate an index</a>.
|
||||||
|
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
|
||||||
|
<em>one</em> page. Thus, it makes sense to pass the parameter from the HTML
|
||||||
|
code on <em>that</em> page, not to affect the others.</p>
|
||||||
|
|
||||||
|
<p>The first idea that came to me was to use some attribute, like "id" or
|
||||||
|
"class". But "id" was locked already, it <em>had</em> to be "conttoc". Use
|
||||||
|
"class"? It's not elegant.. what if I really wanted to give it a class, at
|
||||||
|
some point?</p>
|
||||||
|
|
||||||
|
<h2>The idea</h2>
|
||||||
|
|
||||||
|
<p>So I thought: what are the HTML elements that do not affect the page
|
||||||
|
rendering in any way? Well, comments. I mean, <em>comments</em>, HTML
|
||||||
|
comments. You know, like <code>&lt;!-- this is a comment --&gt;</code>.</p>
|
||||||
|
|
||||||
|
<p>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 <em>can</em> affect
|
||||||
|
the way that page finally appears ;-)</p>
|
||||||
|
|
||||||
|
<h2>The code</h2>
|
||||||
|
|
||||||
|
<p>The main part was the idea. The code is simple ;-) Suppose we have the
|
||||||
|
following HTML code:</p>
|
||||||
|
|
||||||
|
<pre class="code"><span class="function-name">&lt;</span><span class="html-tag">div</span> <span class="variable-name">id=</span><span class="string">&quot;conttoc&quot;</span><span class="paren-face-match">&gt;</span><span class="function-name">&lt;</span><span class="html-tag">/div</span><span class="function-name">&gt;</span></pre>
|
||||||
|
|
||||||
|
<p>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 <code>&lt;base&gt;</code> element to specify the default
|
||||||
|
link prefix, then links like "#gen1" generated by the <a href="toc.epl">toc
|
||||||
|
generator</a> will not point to that same page as they should, but to the
|
||||||
|
page reffered from <code>&lt;base&gt;</code>.</p>
|
||||||
|
|
||||||
|
<p>So the HTML would now look like this:</p>
|
||||||
|
|
||||||
|
<pre class="code"><span class="function-name">&lt;</span><span class="html-tag">div</span> <span class="variable-name">id=</span><span class="string">&quot;conttoc&quot;</span><span class="function-name">&gt;</span><span class="comment">&lt;!-- base:link/prefix.html --&gt;</span><span class="paren-face-match">&lt;</span><span class="html-tag">/div</span><span class="paren-face-match">&gt;</span></pre>
|
||||||
|
|
||||||
|
<p>And our TOC generation function does something like this:</p>
|
||||||
|
|
||||||
|
<pre class="code"><span class="keyword">var</span> <span class="variable-name">element</span> = getElementById(&quot;<span class="string">conttoc</span>&quot;);
|
||||||
|
<span class="keyword">if</span> (element.firstChild &amp;&amp; element.firstChild.nodeType == 8) {
|
||||||
|
<span class="comment">// 8 means Node.COMMENT_NODE. We're using numeric values
|
||||||
|
</span> <span class="comment">// because IE6 does not support constant names.
|
||||||
|
</span> <span class="keyword">var</span> <span class="variable-name">parameters</span> = element.firstChild.data;
|
||||||
|
<span class="comment">// at this point &quot;parameters&quot; contains base:link/prefix.html
|
||||||
|
</span> <span class="comment">// ...
|
||||||
|
</span>}</pre>
|
||||||
|
|
||||||
|
<p>So we retrieved the value passed to the script from the HTML code. This
|
||||||
|
was the goal of this article.</p>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
<address><a href="http://students.infoiasi.ro/~mishoo/">Mihai Bazon</a></address>
|
||||||
|
<!-- hhmts start --> Last modified on Thu Apr 3 20:34:17 2003
|
||||||
|
<!-- hhmts end -->
|
||||||
|
<!-- doc-lang: English -->
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
</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>
|
||||||
43
htmlarea/examples/index.html
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
||||||
|
<html> <head>
|
||||||
|
<title>HTMLArea examples index</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h1>HTMLArea: auto-generated examples index</h1>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="2-areas.html">2-areas.html</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="character_map.html">character_map.html</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="context-menu.html">context-menu.html</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="core.html">core.html</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="css.html">css.html</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="dynamic_css.html">dynamic_css.html</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="empty.html">empty.html</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="full-page.html">full-page.html</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="fully-loaded.html">fully-loaded.html</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
<address>mihai_bazon@yahoo.com</address>
|
||||||
|
<!-- hhmts start --> Last modified: Sun Feb 1 13:30:39 EET 2004 <!-- hhmts end -->
|
||||||
|
</body> </html>
|
||||||
|
|
||||||
66
htmlarea/examples/list-type.html
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
<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="HTMLArea.init(); HTMLArea.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
|
||||||
|
"list-style-type". 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 "lower-greek", 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>
|
||||||
41
htmlarea/examples/remove-font-tags.html
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>The "htmlRemoveTags" feature</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");
|
||||||
|
// the following line ensures that FONT tags won't be reported by HTMLArea
|
||||||
|
editor.config.htmlRemoveTags = /^(font)$/i;
|
||||||
|
editor.registerPlugin(ContextMenu);
|
||||||
|
editor.registerPlugin(TableOperations);
|
||||||
|
editor.generate();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body onload="HTMLArea.init(); HTMLArea.onload = initDocument">
|
||||||
|
<h1>Remove FONT tags</h1>
|
||||||
|
|
||||||
|
|
||||||
|
<textarea id="editor" style="height: 30em; width: 100%;"></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 Apr 28 15:09:09 EEST 2004 <!-- hhmts end -->
|
||||||
|
<!-- doc-lang: English -->
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
132
htmlarea/examples/spell-checker.html
Normal file
@@ -0,0 +1,132 @@
|
|||||||
|
<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="HTMLArea.init(); HTMLArea.onload = initEditor">
|
||||||
|
|
||||||
|
<h1>HTMLArea 3.0</h1>
|
||||||
|
|
||||||
|
<p>A replacement for <code>TEXTAREA</code> elements. © <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>
|
||||||
116
htmlarea/examples/table-operations.html
Normal file
@@ -0,0 +1,116 @@
|
|||||||
|
<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="HTMLArea.init(); HTMLArea.onload = initEditor">
|
||||||
|
|
||||||
|
<h1>HTMLArea 3.0</h1>
|
||||||
|
|
||||||
|
<p>A replacement for <code>TEXTAREA</code> elements. © <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>
|
||||||
21
htmlarea/examples/test.cgi
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#! /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
|
||||||
180
htmlarea/htmlarea.css
Normal file
@@ -0,0 +1,180 @@
|
|||||||
|
.htmlarea { background: #fff; }
|
||||||
|
|
||||||
|
.htmlarea .toolbar {
|
||||||
|
cursor: default;
|
||||||
|
background: ButtonFace;
|
||||||
|
padding: 3px;
|
||||||
|
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: gray() 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; }
|
||||||
2595
htmlarea/htmlarea.js
Normal file
26
htmlarea/htmlarea_loader.js
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
_editor_url = "../htmlarea/";
|
||||||
|
_editor_lang = "en";
|
||||||
|
document.writeln('<script type="text/javascript" src="../htmlarea/htmlarea.js"></script>');
|
||||||
|
|
||||||
|
function initDocument() {
|
||||||
|
config = new HTMLArea.Config();
|
||||||
|
config.toolbar = [
|
||||||
|
[ "bold", "italic", "underline", "strikethrough", "separator",
|
||||||
|
"copy", "cut", "paste", "space", "undo", "redo", "separator",
|
||||||
|
"justifyleft", "justifycenter", "justifyright", "justifyfull", "separator",
|
||||||
|
"orderedlist", "unorderedlist", "outdent", "indent", "separator",
|
||||||
|
"forecolor", "hilitecolor", "separator",
|
||||||
|
"inserthorizontalrule", "createlink", "inserttable" ]
|
||||||
|
];
|
||||||
|
config.width = 700;
|
||||||
|
var editor = new HTMLArea("editor",config);
|
||||||
|
editor.config.pageStyle = "@import url(../application.css);";
|
||||||
|
editor.registerPlugin(DynamicCSS);
|
||||||
|
editor.generate();
|
||||||
|
}
|
||||||
|
|
||||||
|
onload = function() {
|
||||||
|
HTMLArea.loadPlugin("DynamicCSS");
|
||||||
|
HTMLArea.init();
|
||||||
|
HTMLArea.onload = initDocument;
|
||||||
|
}
|
||||||
BIN
htmlarea/images/ed_about.gif
Normal file
|
After Width: | Height: | Size: 87 B |
BIN
htmlarea/images/ed_align_center.gif
Normal file
|
After Width: | Height: | Size: 69 B |
BIN
htmlarea/images/ed_align_justify.gif
Normal file
|
After Width: | Height: | Size: 69 B |
BIN
htmlarea/images/ed_align_left.gif
Normal file
|
After Width: | Height: | Size: 69 B |
BIN
htmlarea/images/ed_align_right.gif
Normal file
|
After Width: | Height: | Size: 68 B |
BIN
htmlarea/images/ed_blank.gif
Normal file
|
After Width: | Height: | Size: 56 B |
BIN
htmlarea/images/ed_charmap.gif
Normal file
|
After Width: | Height: | Size: 143 B |
BIN
htmlarea/images/ed_color_bg.gif
Normal file
|
After Width: | Height: | Size: 181 B |
BIN
htmlarea/images/ed_color_fg.gif
Normal file
|
After Width: | Height: | Size: 171 B |
BIN
htmlarea/images/ed_copy.gif
Normal file
|
After Width: | Height: | Size: 110 B |
BIN
htmlarea/images/ed_custom.gif
Normal file
|
After Width: | Height: | Size: 67 B |
BIN
htmlarea/images/ed_cut.gif
Normal file
|
After Width: | Height: | Size: 91 B |
BIN
htmlarea/images/ed_delete.gif
Normal file
|
After Width: | Height: | Size: 90 B |
BIN
htmlarea/images/ed_format_bold.gif
Normal file
|
After Width: | Height: | Size: 74 B |
BIN
htmlarea/images/ed_format_italic.gif
Normal file
|
After Width: | Height: | Size: 77 B |
BIN
htmlarea/images/ed_format_strike.gif
Normal file
|
After Width: | Height: | Size: 78 B |
BIN
htmlarea/images/ed_format_sub.gif
Normal file
|
After Width: | Height: | Size: 78 B |
BIN
htmlarea/images/ed_format_sup.gif
Normal file
|
After Width: | Height: | Size: 77 B |
BIN
htmlarea/images/ed_format_underline.gif
Normal file
|
After Width: | Height: | Size: 85 B |
BIN
htmlarea/images/ed_help.gif
Normal file
|
After Width: | Height: | Size: 70 B |
BIN
htmlarea/images/ed_hr.gif
Normal file
|
After Width: | Height: | Size: 70 B |
BIN
htmlarea/images/ed_html.gif
Normal file
|
After Width: | Height: | Size: 75 B |
BIN
htmlarea/images/ed_image.gif
Normal file
|
After Width: | Height: | Size: 148 B |
BIN
htmlarea/images/ed_indent_less.gif
Normal file
|
After Width: | Height: | Size: 87 B |
BIN
htmlarea/images/ed_indent_more.gif
Normal file
|
After Width: | Height: | Size: 87 B |
BIN
htmlarea/images/ed_killword.gif
Normal file
|
After Width: | Height: | Size: 154 B |
BIN
htmlarea/images/ed_left_to_right.gif
Normal file
|
After Width: | Height: | Size: 89 B |
BIN
htmlarea/images/ed_link.gif
Normal file
|
After Width: | Height: | Size: 97 B |
BIN
htmlarea/images/ed_list_bullet.gif
Normal file
|
After Width: | Height: | Size: 80 B |
BIN
htmlarea/images/ed_list_num.gif
Normal file
|
After Width: | Height: | Size: 82 B |
BIN
htmlarea/images/ed_paste.gif
Normal file
|
After Width: | Height: | Size: 139 B |
BIN
htmlarea/images/ed_print.gif
Normal file
|
After Width: | Height: | Size: 128 B |
BIN
htmlarea/images/ed_redo.gif
Normal file
|
After Width: | Height: | Size: 80 B |
BIN
htmlarea/images/ed_right_to_left.gif
Normal file
|
After Width: | Height: | Size: 88 B |
BIN
htmlarea/images/ed_rmformat.gif
Normal file
|
After Width: | Height: | Size: 118 B |
BIN
htmlarea/images/ed_save.gif
Normal file
|
After Width: | Height: | Size: 143 B |
BIN
htmlarea/images/ed_show_border.gif
Normal file
|
After Width: | Height: | Size: 104 B |
BIN
htmlarea/images/ed_splitcel.gif
Normal file
|
After Width: | Height: | Size: 143 B |
BIN
htmlarea/images/ed_undo.gif
Normal file
|
After Width: | Height: | Size: 81 B |
BIN
htmlarea/images/fullscreen_maximize.gif
Normal file
|
After Width: | Height: | Size: 97 B |
BIN
htmlarea/images/fullscreen_minimize.gif
Normal file
|
After Width: | Height: | Size: 97 B |
BIN
htmlarea/images/insert_table.gif
Normal file
|
After Width: | Height: | Size: 121 B |
190
htmlarea/index.html
Normal file
@@ -0,0 +1,190 @@
|
|||||||
|
<!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>3.0</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="label">Release:</td><td>RC3 (<a href="release-notes.html">release notes</a>)</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="label bline">Compiled at:</td><td class="bline">Jan , 2005 [23:43] GMT</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><a href="examples/">Online demos</a></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 <title>, <!DOCTYPE...> 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/HTMLArea-3.0-RC3.zip
|
||||||
|
mv HTMLArea-3.0-RC3 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 "HTMLArea-3.0-RC3", 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.htmlarea.com/forum/">on the
|
||||||
|
forums</a> at InteractiveTools.com. There you should also find the
|
||||||
|
latest news.</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>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
<!-- Created: Sun Aug 3 14:11:26 EEST 2003 -->
|
||||||
|
<!-- hhmts start --> Last modified: Wed Jul 14 13:20:53 CEST 2004 <!-- hhmts end -->
|
||||||
|
<!-- doc-lang: English -->
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
|
||||||
36
htmlarea/lang/b5.js
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
// 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: "<22><><EFBFBD><EFBFBD>",
|
||||||
|
italic: "<22><><EFBFBD><EFBFBD>",
|
||||||
|
underline: "<22><><EFBFBD>u",
|
||||||
|
strikethrough: "<22>R<EFBFBD><52><EFBFBD>u",
|
||||||
|
subscript: "<22>U<EFBFBD><55>",
|
||||||
|
superscript: "<22>W<EFBFBD><57>",
|
||||||
|
justifyleft: "<22><><EFBFBD>m<EFBFBD>a<EFBFBD><61>",
|
||||||
|
justifycenter: "<22><><EFBFBD>m<EFBFBD>~<7E><>",
|
||||||
|
justifyright: "<22><><EFBFBD>m<EFBFBD>a<EFBFBD>k",
|
||||||
|
justifyfull: "<22><><EFBFBD>m<EFBFBD><6D><EFBFBD>k<EFBFBD><6B><EFBFBD><EFBFBD>",
|
||||||
|
orderedlist: "<22><><EFBFBD>DzM<C7B2><4D>",
|
||||||
|
unorderedlist: "<22>L<EFBFBD>DzM<C7B2><4D>",
|
||||||
|
outdent: "<22><><EFBFBD>p<EFBFBD><70><EFBFBD>e<EFBFBD>ť<EFBFBD>",
|
||||||
|
indent: "<22>[<5B>e<EFBFBD><65><EFBFBD>e<EFBFBD>ť<EFBFBD>",
|
||||||
|
forecolor: "<22><><EFBFBD>r<EFBFBD>C<EFBFBD><43>",
|
||||||
|
backcolor: "<22>I<EFBFBD><49><EFBFBD>C<EFBFBD><43>",
|
||||||
|
horizontalrule: "<22><><EFBFBD><EFBFBD><EFBFBD>u",
|
||||||
|
createlink: "<22><><EFBFBD>J<EFBFBD>s<EFBFBD><73>",
|
||||||
|
insertimage: "<22><><EFBFBD>J<EFBFBD>ϧ<EFBFBD>",
|
||||||
|
inserttable: "<22><><EFBFBD>J<EFBFBD><4A><EFBFBD><EFBFBD>",
|
||||||
|
htmlmode: "<22><><EFBFBD><EFBFBD>HTML<4D><4C><EFBFBD>l<EFBFBD>X",
|
||||||
|
popupeditor: "<22><><EFBFBD>j",
|
||||||
|
about: "<22><><EFBFBD><EFBFBD> HTMLArea",
|
||||||
|
help: "<22><><EFBFBD><EFBFBD>",
|
||||||
|
textindicator: "<22>r<EFBFBD><72><EFBFBD>Ҥl"
|
||||||
|
}
|
||||||
|
};
|
||||||
83
htmlarea/lang/ch.js
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
// 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" : "你必須輸入你要连结的網址"
|
||||||
|
}
|
||||||
|
};
|
||||||
63
htmlarea/lang/cz.js
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
// 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",
|
||||||
38
htmlarea/lang/da.js
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
// danish version for htmlArea v3.0 - Alpha Release
|
||||||
|
// - translated by rene<rene@laerke.net>
|
||||||
|
// term<72>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<6F>g indrykning",
|
||||||
|
forecolor: "Skriftfarve",
|
||||||
|
backcolor: "Baggrundsfarve",
|
||||||
|
horizontalrule: "Horisontal linie",
|
||||||
|
createlink: "Inds<64>t hyperlink",
|
||||||
|
insertimage: "Inds<64>t billede",
|
||||||
|
inserttable: "Inds<64>t tabel",
|
||||||
|
htmlmode: "HTML visning",
|
||||||
|
popupeditor: "Vis editor i popup",
|
||||||
|
about: "Om htmlarea",
|
||||||
|
help: "Hj<48>lp",
|
||||||
|
textindicator: "Anvendt stil"
|
||||||
|
}
|
||||||
|
};
|
||||||
80
htmlarea/lang/de.js
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
// 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<73>ndig",
|
||||||
|
justifycenter: "Zentriert",
|
||||||
|
justifyright: "Rechtsb<73>ndig",
|
||||||
|
justifyfull: "Blocksatz",
|
||||||
|
orderedlist: "Nummerierung",
|
||||||
|
unorderedlist: "Aufz<66>hlungszeichen",
|
||||||
|
outdent: "Einzug verkleinern",
|
||||||
|
indent: "Einzug vergr<67><72>ern",
|
||||||
|
forecolor: "Schriftfarbe",
|
||||||
|
backcolor: "Hindergrundfarbe",
|
||||||
|
hilitecolor: "Hintergrundfarbe",
|
||||||
|
horizontalrule: "Horizontale Linie",
|
||||||
|
inserthorizontalrule: "Horizontale Linie",
|
||||||
|
createlink: "Hyperlink einf<6E>gen",
|
||||||
|
insertimage: "Bild einf<6E>gen",
|
||||||
|
inserttable: "Tabelle einf<6E>gen",
|
||||||
|
htmlmode: "HTML Modus",
|
||||||
|
popupeditor: "Editor im Popup <20>ffnen",
|
||||||
|
about: "<22>ber htmlarea",
|
||||||
|
help: "Hilfe",
|
||||||
|
showhelp: "Hilfe",
|
||||||
|
textindicator: "Derzeitiger Stil",
|
||||||
|
undo: "R<>ckg<6B>ngig",
|
||||||
|
redo: "Wiederholen",
|
||||||
|
cut: "Ausschneiden",
|
||||||
|
copy: "Kopieren",
|
||||||
|
paste: "Einf<6E>gen aus der Zwischenablage",
|
||||||
|
lefttoright: "Textrichtung von Links nach Rechts",
|
||||||
|
righttoleft: "Textrichtung von Rechts nach Links",
|
||||||
|
removeformat: "Formatierung entfernen"
|
||||||
|
},
|
||||||
|
|
||||||
|
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<67>nden d<>rfen Skripte normalerweise nicht programmtechnisch auf " +
|
||||||
|
"Ausschneiden/Kopieren/Einf<6E>gen zugreifen. Bitte klicken Sie OK um die technische " +
|
||||||
|
"Erl<72>uterung auf mozilla.org zu <20>ffnen, in der erkl<6B>rt wird, wie einem Skript Zugriff " +
|
||||||
|
"gew<65>hrt werden kann."
|
||||||
|
},
|
||||||
|
|
||||||
|
dialogs: {
|
||||||
|
"OK": "OK",
|
||||||
|
"Cancel": "Abbrechen",
|
||||||
|
"Insert/Modify Link": "Verkn<6B>pfung hinzuf<75>gen/<2F>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<6B>pfung angeben"
|
||||||
|
}
|
||||||
|
};
|
||||||
63
htmlarea/lang/ee.js
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
// 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: "<22>laindeks",
|
||||||
|
justifyleft: "Joonda vasakule",
|
||||||
|
justifycenter: "Joonda keskele",
|
||||||
|
justifyright: "Joonda paremale",
|
||||||
|
justifyfull: "R<><52>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."
|
||||||
|
}
|
||||||
|
};
|
||||||
75
htmlarea/lang/el.js
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
// 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 που οδηγεί αυτός ο σύνδεσμος"
|
||||||
|
}
|
||||||
|
};
|
||||||
147
htmlarea/lang/en.js
Normal file
@@ -0,0 +1,147 @@
|
|||||||
|
// 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",
|
||||||
|
removeformat: "Remove formatting",
|
||||||
|
print: "Print document",
|
||||||
|
killword: "Clear MSOffice tags"
|
||||||
|
},
|
||||||
|
|
||||||
|
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: {
|
||||||
|
// Common
|
||||||
|
"OK" : "OK",
|
||||||
|
"Cancel" : "Cancel",
|
||||||
|
|
||||||
|
"Alignment:" : "Alignment:",
|
||||||
|
"Not set" : "Not set",
|
||||||
|
"Left" : "Left",
|
||||||
|
"Right" : "Right",
|
||||||
|
"Texttop" : "Texttop",
|
||||||
|
"Absmiddle" : "Absmiddle",
|
||||||
|
"Baseline" : "Baseline",
|
||||||
|
"Absbottom" : "Absbottom",
|
||||||
|
"Bottom" : "Bottom",
|
||||||
|
"Middle" : "Middle",
|
||||||
|
"Top" : "Top",
|
||||||
|
|
||||||
|
"Layout" : "Layout",
|
||||||
|
"Spacing" : "Spacing",
|
||||||
|
"Horizontal:" : "Horizontal:",
|
||||||
|
"Horizontal padding" : "Horizontal padding",
|
||||||
|
"Vertical:" : "Vertical:",
|
||||||
|
"Vertical padding" : "Vertical padding",
|
||||||
|
"Border thickness:" : "Border thickness:",
|
||||||
|
"Leave empty for no border" : "Leave empty for no border",
|
||||||
|
|
||||||
|
// Insert Link
|
||||||
|
"Insert/Modify Link" : "Insert/Modify Link",
|
||||||
|
"None (use implicit)" : "None (use implicit)",
|
||||||
|
"New window (_blank)" : "New window (_blank)",
|
||||||
|
"Same frame (_self)" : "Same frame (_self)",
|
||||||
|
"Top frame (_top)" : "Top frame (_top)",
|
||||||
|
"Other" : "Other",
|
||||||
|
"Target:" : "Target:",
|
||||||
|
"Title (tooltip):" : "Title (tooltip):",
|
||||||
|
"URL:" : "URL:",
|
||||||
|
"You must enter the URL where this link points to" : "You must enter the URL where this link points to",
|
||||||
|
// Insert Table
|
||||||
|
"Insert Table" : "Insert Table",
|
||||||
|
"Rows:" : "Rows:",
|
||||||
|
"Number of rows" : "Number of rows",
|
||||||
|
"Cols:" : "Cols:",
|
||||||
|
"Number of columns" : "Number of columns",
|
||||||
|
"Width:" : "Width:",
|
||||||
|
"Width of the table" : "Width of the table",
|
||||||
|
"Percent" : "Percent",
|
||||||
|
"Pixels" : "Pixels",
|
||||||
|
"Em" : "Em",
|
||||||
|
"Width unit" : "Width unit",
|
||||||
|
"Positioning of this table" : "Positioning of this table",
|
||||||
|
"Cell spacing:" : "Cell spacing:",
|
||||||
|
"Space between adjacent cells" : "Space between adjacent cells",
|
||||||
|
"Cell padding:" : "Cell padding:",
|
||||||
|
"Space between content and border in cell" : "Space between content and border in cell",
|
||||||
|
// Insert Image
|
||||||
|
"Insert Image" : "Insert Image",
|
||||||
|
"Image URL:" : "Image URL:",
|
||||||
|
"Enter the image URL here" : "Enter the image URL here",
|
||||||
|
"Preview" : "Preview",
|
||||||
|
"Preview the image in a new window" : "Preview the image in a new window",
|
||||||
|
"Alternate text:" : "Alternate text:",
|
||||||
|
"For browsers that don't support images" : "For browsers that don't support images",
|
||||||
|
"Positioning of this image" : "Positioning of this image",
|
||||||
|
"Image Preview:" : "Image Preview:"
|
||||||
|
}
|
||||||
|
};
|
||||||
51
htmlarea/lang/es.js
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
// 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<75>ndice",
|
||||||
|
superscript: "Super<65>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<67>a",
|
||||||
|
indent: "Disminuir Sangr<67>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<63>n",
|
||||||
|
copy: "Copiar selecci<63>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",
|
||||||
|
}
|
||||||
|
};
|
||||||
46
htmlarea/lang/fi.js
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
// 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<59>indeksi",
|
||||||
|
justifyleft: "Tasaa vasemmat reunat",
|
||||||
|
justifycenter: "Keskit<69>",
|
||||||
|
justifyright: "Tasaa oikeat reunat",
|
||||||
|
justifyfull: "Tasaa molemmat reunat",
|
||||||
|
orderedlist: "Numerointi",
|
||||||
|
unorderedlist: "Luettelomerkit",
|
||||||
|
outdent: "Lis<69><73> sisennyst<73>",
|
||||||
|
indent: "Pienenn<6E> sisennyst<73>",
|
||||||
|
forecolor: "Fontin v<>ri",
|
||||||
|
hilitecolor: "Taustav<61>ri",
|
||||||
|
inserthorizontalrule: "Vaakaviiva",
|
||||||
|
createlink: "Lis<69><73> Linkki",
|
||||||
|
insertimage: "Lis<69><73> Kuva",
|
||||||
|
inserttable: "Lis<69><73> Taulu",
|
||||||
|
htmlmode: "HTML L<>hdekoodi vs WYSIWYG",
|
||||||
|
popupeditor: "Suurenna Editori",
|
||||||
|
about: "Tietoja Editorista",
|
||||||
|
showhelp: "N<>yt<79> Ohje",
|
||||||
|
textindicator: "Nykyinen tyyli",
|
||||||
|
undo: "Peruuta viimeinen toiminto",
|
||||||
|
redo: "Palauta viimeinen toiminto",
|
||||||
|
cut: "Leikkaa maalattu",
|
||||||
|
copy: "Kopioi maalattu",
|
||||||
|
paste: "Liit<69> leikepy<70>d<EFBFBD>lt<6C>"
|
||||||
|
},
|
||||||
|
|
||||||
|
buttons: {
|
||||||
|
"ok": "Hyv<79>ksy",
|
||||||
|
"cancel": "Peruuta"
|
||||||
|
}
|
||||||
|
};
|
||||||
97
htmlarea/lang/fr.js
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
// 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<71>b<EFBFBD>cois de la langue fran<61>aise.
|
||||||
|
// Tous les termes techniques utilis<69>s dans ce document sont ceux
|
||||||
|
// approuv<75>s par l'Office qu<71>b<EFBFBD>cois de la langue fran<61>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<67>",
|
||||||
|
strikethrough: "Barr<72>",
|
||||||
|
subscript: "Indice",
|
||||||
|
superscript: "Exposant",
|
||||||
|
justifyleft: "Align<67> <20> gauche",
|
||||||
|
justifycenter: "Centr<74>",
|
||||||
|
justifyright: "Align<67> <20> droite",
|
||||||
|
justifyfull: "Justifier",
|
||||||
|
orderedlist: "Num<75>rotation",
|
||||||
|
unorderedlist: "Puces",
|
||||||
|
outdent: "Diminuer le retrait",
|
||||||
|
indent: "Augmenter le retrait",
|
||||||
|
forecolor: "Couleur de police",
|
||||||
|
hilitecolor: "Surlignage",
|
||||||
|
horizontalrule: "Ligne horizontale",
|
||||||
|
createlink: "Ins<6E>rer un hyperlien",
|
||||||
|
insertimage: "Ins<6E>rer/Modifier une image",
|
||||||
|
inserttable: "Ins<6E>rer un tableau",
|
||||||
|
htmlmode: "Passer au code source",
|
||||||
|
popupeditor: "Agrandir l'<27>diteur",
|
||||||
|
about: "<22> propos de cet <20>diteur",
|
||||||
|
showhelp: "Aide sur l'<27>diteur",
|
||||||
|
textindicator: "Style courant",
|
||||||
|
undo: "Annuler la derni<6E>re action",
|
||||||
|
redo: "R<>p<EFBFBD>ter la derni<6E>re action",
|
||||||
|
cut: "Couper la s<>lection",
|
||||||
|
copy: "Copier la s<>lection",
|
||||||
|
paste: "Coller depuis le presse-papier",
|
||||||
|
lefttoright: "Direction de gauche <20> droite",
|
||||||
|
righttoleft: "Direction de droite <20> gauche"
|
||||||
|
},
|
||||||
|
|
||||||
|
buttons: {
|
||||||
|
"ok": "OK",
|
||||||
|
"cancel": "Annuler"
|
||||||
|
},
|
||||||
|
|
||||||
|
msg: {
|
||||||
|
"Path": "Chemin",
|
||||||
|
"TEXT_MODE": "Vous <20>tes en MODE TEXTE. Appuyez sur le bouton [<>] pour retourner au mode tel-tel.",
|
||||||
|
|
||||||
|
"IE-sucks-full-screen" :
|
||||||
|
// translate here
|
||||||
|
"Le mode plein <20>cran peut causer des probl<62>mes sous Internet Explorer, " +
|
||||||
|
"ceci d<> <20> des bogues du navigateur qui ont <20>t<EFBFBD> impossible <20> contourner. " +
|
||||||
|
"Les diff<66>rents sympt<70>mes peuvent <20>tre un affichage d<>ficient, le manque de " +
|
||||||
|
"fonctions dans l'<27>diteur et/ou pannes al<61>atoires du navigateur. Si votre " +
|
||||||
|
"syst<73>me est Windows 9x, il est possible que vous subissiez une erreur de type " +
|
||||||
|
"<22>General Protection Fault<6C> et que vous ayez <20> red<65>marrer votre ordinateur." +
|
||||||
|
"\n\nConsid<69>rez-vous comme ayant <20>t<EFBFBD> avis<69>. Appuyez sur OK si vous d<>sirez tout " +
|
||||||
|
"de m<>me essayer le mode plein <20>cran de l'<27>diteur."
|
||||||
|
},
|
||||||
|
|
||||||
|
dialogs: {
|
||||||
|
"Cancel" : "Annuler",
|
||||||
|
"Insert/Modify Link" : "Ins<6E>rer/Modifier Lien",
|
||||||
|
"New window (_blank)" : "Nouvelle fen<65>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"
|
||||||
|
}
|
||||||
|
};
|
||||||
36
htmlarea/lang/gb.js
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
// 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: "<22><><EFBFBD><EFBFBD>",
|
||||||
|
italic: "б<><D0B1>",
|
||||||
|
underline: "<22><><EFBFBD><EFBFBD>",
|
||||||
|
strikethrough: "ɾ<><C9BE><EFBFBD><EFBFBD>",
|
||||||
|
subscript: "<22>±<EFBFBD>",
|
||||||
|
superscript: "<22>ϱ<EFBFBD>",
|
||||||
|
justifyleft: "λ<>ÿ<EFBFBD><C3BF><EFBFBD>",
|
||||||
|
justifycenter: "λ<>þ<EFBFBD><C3BE><EFBFBD>",
|
||||||
|
justifyright: "λ<>ÿ<EFBFBD><C3BF><EFBFBD>",
|
||||||
|
justifyfull: "λ<><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ<EFBFBD><C6BD>",
|
||||||
|
orderedlist: "˳<><CBB3><EFBFBD>嵥",
|
||||||
|
unorderedlist: "<22><><EFBFBD><EFBFBD><EFBFBD>嵥",
|
||||||
|
outdent: "<22><>С<EFBFBD><D0A1>ǰ<EFBFBD>հ<EFBFBD>",
|
||||||
|
indent: "<22>ӿ<EFBFBD><D3BF><EFBFBD>ǰ<EFBFBD>հ<EFBFBD>",
|
||||||
|
forecolor: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ",
|
||||||
|
backcolor: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ",
|
||||||
|
horizontalrule: "ˮƽ<CBAE><C6BD>",
|
||||||
|
createlink: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
insertimage: "<22><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC>",
|
||||||
|
inserttable: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
htmlmode: "<22>л<EFBFBD>HTMLԭʼ<D4AD><CABC>",
|
||||||
|
popupeditor: "<22>Ŵ<EFBFBD>",
|
||||||
|
about: "<22><><EFBFBD><EFBFBD> HTMLArea",
|
||||||
|
help: "˵<><CBB5>",
|
||||||
|
textindicator: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||||
|
}
|
||||||
|
};
|
||||||
89
htmlarea/lang/he.js
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
// 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: "עזרה לשימוש בעורך",
|
||||||
90
htmlarea/lang/hu.js
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
// 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"
|
||||||
|
}
|
||||||
|
};
|
||||||
79
htmlarea/lang/it.js
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
// 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"
|
||||||
|
}
|
||||||
|
};
|
||||||
37
htmlarea/lang/ja-euc.js
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
// 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: "<22><><EFBFBD><EFBFBD>",
|
||||||
|
italic: "<22><><EFBFBD><EFBFBD>",
|
||||||
|
underline: "<22><><EFBFBD><EFBFBD>",
|
||||||
|
strikethrough: "<22>Ǥ<EFBFBD><C7A4>ä<EFBFBD><C3A4><EFBFBD>",
|
||||||
|
subscript: "<22><><EFBFBD>դ<EFBFBD>ź<EFBFBD><C5BA><EFBFBD><EFBFBD>",
|
||||||
|
superscript: "<22><><EFBFBD>դ<EFBFBD>ź<EFBFBD><C5BA><EFBFBD><EFBFBD>",
|
||||||
|
justifyleft: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
justifycenter: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
justifyright: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
justifyfull: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
orderedlist: "<22>ֹ<EFBFBD><D6B9>դ<EFBFBD><D5A4>վ<EFBFBD><D5BE><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
unorderedlist: "<22><><EFBFBD><EFBFBD><EFBFBD>դ<EFBFBD><D5A4>վ<EFBFBD><D5BE><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
outdent: "<22><><EFBFBD><EFBFBD><EFBFBD>ǥ<EFBFBD><C7A5>Ȳ<EFBFBD><C8B2><EFBFBD>",
|
||||||
|
indent: "<22><><EFBFBD><EFBFBD><EFBFBD>ǥ<EFBFBD><C7A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
forecolor: "ʸ<><CAB8><EFBFBD><EFBFBD>",
|
||||||
|
backcolor: "<22>طʿ<D8B7>",
|
||||||
|
horizontalrule: "<22><>ʿ<EFBFBD><CABF>",
|
||||||
|
createlink: "<22><><EFBFBD><EFBFBD><F3A5AFBA><EFBFBD>",
|
||||||
|
insertimage: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
inserttable: "<22>ơ<EFBFBD><C6A1>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
htmlmode: "HTMLɽ<4C><C9BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
popupeditor: "<22><><EFBFBD>ǥ<EFBFBD><C7A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
about: "<22>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
help: "<22>إ<EFBFBD><D8A5><EFBFBD>",
|
||||||
|
textindicator: "<22><><EFBFBD>ߤΥ<DFA4><CEA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||||
|
}
|
||||||
|
};
|
||||||
37
htmlarea/lang/ja-jis.js
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
// 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"
|
||||||
|
}
|
||||||
|
};
|
||||||
37
htmlarea/lang/ja-sjis.js
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
// 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: "<22><><EFBFBD><EFBFBD>",
|
||||||
|
italic: "<22>Α<EFBFBD>",
|
||||||
|
underline: "<22><><EFBFBD><EFBFBD>",
|
||||||
|
strikethrough: "<22>ł<EFBFBD><C582><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
subscript: "<22><><EFBFBD>t<EFBFBD><74><EFBFBD>Y<EFBFBD><59><EFBFBD><EFBFBD>",
|
||||||
|
superscript: "<22><><EFBFBD>t<EFBFBD><74><EFBFBD>Y<EFBFBD><59><EFBFBD><EFBFBD>",
|
||||||
|
justifyleft: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
justifycenter: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
justifyright: "<22>E<EFBFBD><45><EFBFBD><EFBFBD>",
|
||||||
|
justifyfull: "<22>ϓ<EFBFBD><CF93><EFBFBD><EFBFBD>t",
|
||||||
|
orderedlist: "<22>ԍ<EFBFBD><D48D>t<EFBFBD><74><EFBFBD>ӏ<EFBFBD><D38F><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
unorderedlist: "<22>L<EFBFBD><4C><EFBFBD>t<EFBFBD><74><EFBFBD>ӏ<EFBFBD><D38F><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
outdent: "<22>C<EFBFBD><43><EFBFBD>f<EFBFBD><66><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD>",
|
||||||
|
indent: "<22>C<EFBFBD><43><EFBFBD>f<EFBFBD><66><EFBFBD>g<EFBFBD>ݒ<EFBFBD>",
|
||||||
|
forecolor: "<22><><EFBFBD><EFBFBD><EFBFBD>F",
|
||||||
|
backcolor: "<22>w<EFBFBD>i<EFBFBD>F",
|
||||||
|
horizontalrule: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
createlink: "<22><><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>쐬",
|
||||||
|
insertimage: "<22>摜<EFBFBD>}<7D><>",
|
||||||
|
inserttable: "<22>e<EFBFBD>[<5B>u<EFBFBD><75><EFBFBD>}<7D><>",
|
||||||
|
htmlmode: "HTML<4D>\<5C><><EFBFBD>ؑ<EFBFBD>",
|
||||||
|
popupeditor: "<22>G<EFBFBD>f<EFBFBD>B<EFBFBD>^<5E>g<EFBFBD><67>",
|
||||||
|
about: "<22>o<EFBFBD>[<5B>W<EFBFBD><57><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||||
|
help: "<22>w<EFBFBD><77><EFBFBD>v",
|
||||||
|
textindicator: "<22><><EFBFBD>݂̃X<CC83>^<5E>C<EFBFBD><43>"
|
||||||
|
}
|
||||||
|
};
|
||||||
37
htmlarea/lang/ja-utf8.js
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
// 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: "現在のスタイル"
|
||||||
|
}
|
||||||
|
};
|
||||||
77
htmlarea/lang/lt.js
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
// 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"
|
||||||
|
}
|
||||||
|
};
|
||||||
55
htmlarea/lang/lv.js
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
// 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<72>v<EFBFBD>",
|
||||||
|
|
||||||
|
underline: "Pasv<73>trots",
|
||||||
|
|
||||||
|
strikethrough: "P<>rsv<73>trots",
|
||||||
|
|
||||||
|
subscript: "Novietot zem rindas",
|
||||||
|
|
||||||
|
superscript: "Novietot virs rindas",
|
||||||
|
|
||||||
|
justifyleft: "Izl<7A>dzin<69>t pa kreisi",
|
||||||
|
|
||||||
|
justifycenter: "Izl<7A>dzin<69>t centr<74>",
|
||||||
|
|
||||||
|
justifyright: "Izl<7A>dzin<69>t pa labi",
|
||||||
|
|
||||||
|
justifyfull: "Izl<7A>dzin<69>t pa visu lapu",
|
||||||
|
|
||||||
|
orderedlist: "Numur<75>ts saraksts",
|
||||||
|
|
||||||
|
unorderedlist: "Saraksts",
|
||||||
|
|
||||||
|
outdent: "Samazin<69>t atk<74>pi",
|
||||||
|
|
||||||
|
indent: "Palielin<69>t atk<74>pi",
|
||||||
|
|
||||||
|
forecolor: "Burtu kr<6B>sa",
|
||||||
36
htmlarea/lang/nb.js
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
// 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: "<22>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<73>rr redigeringsvindu",
|
||||||
|
about: "Om..",
|
||||||
|
help: "Hjelp",
|
||||||
|
textindicator: "Gjeldende stil"
|
||||||
|
}
|
||||||
|
};
|
||||||
90
htmlarea/lang/nl.js
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
// 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",
|
||||||
|
|
||||||
79
htmlarea/lang/no.js
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
// Norwegian version for htmlArea v3.0 - pre1
|
||||||
|
|
||||||
|
// - translated by ses<ses@online.no>
|
||||||
|
|
||||||
|
// Additional translations by H<>vard Wigtil <havardw@extend.no>
|
||||||
|
|
||||||
|
// term<72>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<70>yet",
|
||||||
|
|
||||||
|
justifyleft: "Venstrejuster",
|
||||||
|
|
||||||
|
justifycenter: "Midtjuster",
|
||||||
|
|
||||||
|
justifyright: "H<>yrejuster",
|
||||||
|
|
||||||
|
justifyfull: "Blokkjuster",
|
||||||
|
|
||||||
|
orderedlist: "Nummerert liste",
|
||||||
|
|
||||||
|
unorderedlist: "Punktliste",
|
||||||
|
|
||||||
|
outdent: "Reduser innrykk",
|
||||||
|
|
||||||
|
indent: "<22>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<EFBFBD>rende stil",
|
||||||
|
|
||||||
|
undo: "Angrer siste redigering",
|
||||||
|
|
||||||
|
redo: "Gj<47>r om siste angring",
|
||||||
|
|
||||||
|
cut: "Klipp ut omr<6D>de",
|
||||||
36
htmlarea/lang/pl.js
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
// 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<72>lenie",
|
||||||
|
|
||||||
|
strikethrough: "Przekre<72>lenie",
|
||||||
|
|
||||||
|
subscript: "Indeks dolny",
|
||||||
|
|
||||||
|
superscript: "Indeks g<>rny",
|
||||||
|
|
||||||
|
justifyleft: "Wyr<79>wnaj do lewej",
|
||||||
|
|
||||||
|
justifycenter: "Wy<57>rodkuj",
|
||||||
|
|
||||||
|
justifyright: "Wyr<79>wnaj do prawej",
|
||||||
|
|
||||||
|
justifyfull: "Wyjustuj",
|
||||||
|
|
||||||
|
orderedlist: "Numerowanie",
|
||||||
|
|
||||||
|
unorderedlist: "Wypunktowanie",
|
||||||
37
htmlarea/lang/pt_br.js
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
// 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<49>lico",
|
||||||
|
|
||||||
|
underline: "Sublinhado",
|
||||||
|
|
||||||
|
strikethrough: "Tachado",
|
||||||
|
|
||||||
|
subscript: "Subescrito",
|
||||||
|
|
||||||
|
superscript: "Sobrescrito",
|
||||||
|
|
||||||
|
justifyleft: "Alinhar <20> Esquerda",
|
||||||
|
|
||||||
|
justifycenter: "Centralizar",
|
||||||
|
|
||||||
|
justifyright: "Alinhar <20> Direita",
|
||||||
|
|
||||||
|
justifyfull: "Justificar",
|
||||||
|
|
||||||
|
orderedlist: "Lista Numerada",
|
||||||
|
|
||||||
80
htmlarea/lang/ro.js
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
// 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"
|
||||||
|
}
|
||||||
|
};
|
||||||
63
htmlarea/lang/ru.js
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
// 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: "Нумерованный лист",
|
||||||
38
htmlarea/lang/se.js
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
// Swedish version for htmlArea v3.0 - Alpha Release
|
||||||
|
|
||||||
|
// - translated by pat<pat@engvall.nu>
|
||||||
|
|
||||||
|
// term<72>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<64>nkt",
|
||||||
|
|
||||||
|
superscript: "Upph<70>jd",
|
||||||
|
|
||||||
|
justifyleft: "V<>nsterjustera",
|
||||||
|
|
||||||
|
justifycenter: "Centrera",
|
||||||
|
|
||||||
|
justifyright: "H<>gerjustera",
|
||||||
|
|
||||||
|
justifyfull: "Marginaljustera",
|
||||||
|
|
||||||
|
orderedlist: "Numrerad lista",
|
||||||
63
htmlarea/lang/si.js
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
// 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<4C>e<EFBFBD>e",
|
||||||
|
|
||||||
|
underline: "Pod<6F>rtano",
|
||||||
|
|
||||||
|
strikethrough: "Pre<72>rtano",
|
||||||
|
|
||||||
|
subscript: "Podpisano",
|
||||||
|
|
||||||
|
superscript: "Nadpisano",
|
||||||
|
|
||||||
|
justifyleft: "Poravnaj levo",
|
||||||
|
|
||||||
|
justifycenter: "Na sredino",
|
||||||
|
|
||||||
|
justifyright: "Poravnaj desno",
|
||||||
|
|
||||||
|
justifyfull: "Porazdeli vsebino",
|
||||||
|
|
||||||
|
orderedlist: "O<>tevil<69>evanje",
|
||||||
77
htmlarea/lang/vn.js
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
// I18N constants : Vietnamese
|
||||||
|
// LANG: "en", ENCODING: UTF-8
|
||||||
|
// Author: Nguyễn Đình Nam, <hncryptologist@yahoo.com>
|
||||||
|
// Modified 21/07/2004 by Phạm Mai Quân <pmquan@4vn.org>
|
||||||
|
|
||||||
|
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",
|
||||||
|
insertorderedlist: "Danh Sách Có Thứ Tự (1, 2, 3)",
|
||||||
|
insertunorderedlist: "Danh Sách Phi Thứ Tự (Chấm đầu dòng)",
|
||||||
|
outdent: "Lùi Ra Ngoài",
|
||||||
|
indent: "Thụt Vào Trong",
|
||||||
|
forecolor: "Màu Chữ",
|
||||||
|
hilitecolor: "Màu Nền",
|
||||||
|
inserthorizontalrule: "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: "Hủy thao tác trước",
|
||||||
|
redo: "Lấy lại thao tác vừa bỏ",
|
||||||
|
cut: "Cắt",
|
||||||
|
copy: "Sao chép",
|
||||||
|
paste: "Dán",
|
||||||
|
lefttoright: "Viết từ trái sang phải",
|
||||||
|
righttoleft: "Viết từ phải sang trái"
|
||||||
|
},
|
||||||
|
buttons: {
|
||||||
|
"ok": "Đồng ý",
|
||||||
|
"cancel": "Hủy",
|
||||||
|
|
||||||
|
"IE-sucks-full-screen" :
|
||||||
|
// translate here
|
||||||
|
"Chế độ phóng to ô soạn thảo có thể gây lỗi với Internet Explorer vì một số lỗi của trình duyệt này," +
|
||||||
|
" vì thế chế độ này có thể sẽ không chạy. Hiển thị không đúng, lộn xộn, không có đầy đủ chức năng," +
|
||||||
|
" và cũng có thể làm trình duyệt của bạn bị tắt ngang. Nếu bạn đang sử dụng Windows 9x " +
|
||||||
|
"bạn có thể bị báo lỗi 'General Protection Fault' và máy tính của bạn buộc phải khởi động lại.\n\n" +
|
||||||
|
"Chúng tôi đã cảnh báo bạn. Nhấn nút 'Đồng ý' nếu bạn vẫn muốn sử dụng tính năng này."
|
||||||
|
},
|
||||||
|
msg: {
|
||||||
|
"Path": "Đường Dẫn",
|
||||||
|
"TEXT_MODE": "Bạn đang ở chế độ text. Sử dụng nút [<>] để chuyển lại chế độ WYSIWIG."
|
||||||
|
},
|
||||||
|
|
||||||
|
dialogs: {
|
||||||
|
"Cancel" : "Hủy",
|
||||||
|
"Insert/Modify Link" : "Thêm/Chỉnh sửa đường dẫn",
|
||||||
|
"New window (_blank)" : "Cửa sổ mới (_blank)",
|
||||||
|
"None (use implicit)" : "Không (sử dụng implicit)",
|
||||||
|
"OK" : "Đồng ý",
|
||||||
|
"Other" : "Khác",
|
||||||
|
"Same frame (_self)" : "Trên cùng khung (_self)",
|
||||||
|
"Target:" : "Nơi hiện thị:",
|
||||||
|
"Title (tooltip):" : "Tiêu đề (của hướng dẫn):",
|
||||||
|
"Top frame (_top)" : "Khung trên cùng (_top)",
|
||||||
|
"URL:" : "URL:",
|
||||||
|
"You must enter the URL where this link points to" : "Bạn phải điền địa chỉ (URL) mà đường dẫn sẽ liên kết tới"
|
||||||
|
}
|
||||||
|
};
|
||||||
30
htmlarea/license.txt
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
htmlArea License (based on BSD license)
|
||||||
|
|
||||||
|
Copyright (c) 2002-2004, interactivetools.com, inc.
|
||||||
|
|
||||||
|
Copyright (c) 2003-2005 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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
116
htmlarea/plugins/CSS/css.js
Normal file
@@ -0,0 +1,116 @@
|
|||||||
|
// 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-2005.
|
||||||
|
// 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;
|
||||||
|
};
|
||||||
2
htmlarea/plugins/CSS/lang/en.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// none yet; this file is a stub.
|
||||||
|
CSS.I18N = {};
|
||||||
70
htmlarea/plugins/CharacterMap/character-map.js
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
// Character Map plugin for HTMLArea
|
||||||
|
// Sponsored by http://www.systemconcept.de
|
||||||
|
// Implementation by Holger Hees based on HTMLArea XTD 1.5 (http://mosforge.net/projects/htmlarea3xtd/)
|
||||||
|
// Original Author - Bernhard Pfeifer novocaine@gmx.net
|
||||||
|
//
|
||||||
|
// (c) systemconcept.de 2004
|
||||||
|
// Distributed under the same terms as HTMLArea itself.
|
||||||
|
// This notice MUST stay intact for use (see license.txt).
|
||||||
|
|
||||||
|
function CharacterMap(editor) {
|
||||||
|
this.editor = editor;
|
||||||
|
|
||||||
|
var cfg = editor.config;
|
||||||
|
var toolbar = cfg.toolbar;
|
||||||
|
var self = this;
|
||||||
|
var i18n = CharacterMap.I18N;
|
||||||
|
|
||||||
|
cfg.registerButton({
|
||||||
|
id : "insertcharacter",
|
||||||
|
tooltip : i18n["CharacterMapTooltip"],
|
||||||
|
image : editor.imgURL("ed_charmap.gif", "CharacterMap"),
|
||||||
|
textMode : false,
|
||||||
|
action : function(editor) {
|
||||||
|
self.buttonPress(editor);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
var a, i, j, found = false;
|
||||||
|
for (i = 0; !found && i < toolbar.length; ++i) {
|
||||||
|
a = toolbar[i];
|
||||||
|
for (j = 0; j < a.length; ++j) {
|
||||||
|
if (a[j] == "inserthorizontalrule") {
|
||||||
|
found = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (found)
|
||||||
|
a.splice(j, 0, "insertcharacter");
|
||||||
|
else{
|
||||||
|
toolbar[1].splice(0, 0, "separator");
|
||||||
|
toolbar[1].splice(0, 0, "insertcharacter");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
CharacterMap._pluginInfo = {
|
||||||
|
name : "CharacterMap",
|
||||||
|
version : "1.0",
|
||||||
|
developer : "Holger Hees & Bernhard Pfeifer",
|
||||||
|
developer_url : "http://www.systemconcept.de/",
|
||||||
|
c_owner : "Holger Hees & Bernhard Pfeifer",
|
||||||
|
sponsor : "System Concept GmbH & Bernhard Pfeifer",
|
||||||
|
sponsor_url : "http://www.systemconcept.de/",
|
||||||
|
license : "htmlArea"
|
||||||
|
};
|
||||||
|
|
||||||
|
CharacterMap.prototype.buttonPress = function(editor) {
|
||||||
|
editor._popupDialog( "plugin://CharacterMap/select_character", function( entity )
|
||||||
|
{
|
||||||
|
if ( !entity )
|
||||||
|
{
|
||||||
|
//user must have pressed Cancel
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
editor.insertHTML( entity );
|
||||||
|
|
||||||
|
}, null);
|
||||||
|
}
|
||||||
|
|
||||||