code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231 values | license stringclasses 13 values | size int64 1 2.01M |
|---|---|---|---|---|---|
<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;
}
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>
<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>
| zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/examples/table-operations.html | HTML | art | 4,013 |
#! /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
| zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/examples/test.cgi | Perl | art | 225 |
<html>
<head>
<title>Test of CSS plugin</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
_editor_url = "../";
_editor_lang = "en";
</script>
<!-- load the main HTMLArea files -->
<script type="text/javascript" src="../htmlarea.js"></script>
<script type="text/javascript">
HTMLArea.loadPlugin("CSS");
function initDocument() {
var editor = new HTMLArea("editor");
editor.config.pageStyle = "@import url(custom.css);";
editor.registerPlugin(CSS, {
combos : [
{ label: "Syntax",
// menu text // CSS class
options: { "None" : "",
"Code" : "code",
"String" : "string",
"Comment" : "comment",
"Variable name" : "variable-name",
"Type" : "type",
"Reference" : "reference",
"Preprocessor" : "preprocessor",
"Keyword" : "keyword",
"Function name" : "function-name",
"Html tag" : "html-tag",
"Html italic" : "html-helper-italic",
"Warning" : "warning",
"Html bold" : "html-helper-bold"
},
context: "pre"
},
{ label: "Info",
options: { "None" : "",
"Quote" : "quote",
"Highlight" : "highlight",
"Deprecated" : "deprecated"
}
}
]
});
editor.generate();
}
</script>
</head>
<body onload="initDocument()">
<h1>Test of FullPage plugin</h1>
<textarea id="editor" style="height: 30em; width: 100%;"
><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>
| zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/examples/css.html | HTML | art | 2,978 |
<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="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>
| zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/examples/dynamic_css.html | HTML | art | 1,274 |
<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>
| zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/examples/fully-loaded.html | HTML | art | 10,546 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Fullscreen HTMLArea</title>
<script type="text/javascript">
_editor_url = window.opener._editor_url || '../';
_editor_lang = window.opener._editor_lang;
_editor_css = window.opener._editor_css;
var BASE = window.opener.document.baseURI || window.opener.document.URL;
var head = document.getElementsByTagName("head")[0];
var base = document.createElement("base");
base.href = BASE;
head.appendChild(base);
</script>
<script type="text/javascript">
document.write('<scr' + 'ipt type="text/javascript" src="' + _editor_url + 'htmlarea.js"></scr' + 'ipt>');
</script>
<script type="text/javascript">
// load HTMLArea scripts that are present in the opener frame
var scripts = window.opener.HTMLArea._scripts;
for (var i = 3; i < scripts.length; ++i) {
//document.write("<scr" + "ipt type='text/javascript' src='" + scripts[i] + "'></scr" + "ipt>");
HTMLArea.loadScript(scripts[i]);
}
</script>
<!-- browser takes a coffee break here -->
<script type="text/javascript">
var parent_object = null;
var editor = null; // to be initialized later [ function init() ]
/* ---------------------------------------------------------------------- *\
Function :
Description :
\* ---------------------------------------------------------------------- */
function _CloseOnEsc(ev) {
ev || (ev = window.event) || (ev = editor._iframe.contentWindow.event);
if (ev.keyCode == 27) {
// update_parent();
window.close();
return;
}
}
/* ---------------------------------------------------------------------- *\
Function : resize_editor
Description : resize the editor when the user resizes the popup
\* ---------------------------------------------------------------------- */
function resize_editor() { // resize editor to fix window
var newHeight;
if (document.all) {
// IE
newHeight = document.body.offsetHeight - editor._toolbar.offsetHeight;
if (newHeight < 0) { newHeight = 0; }
} else {
// Gecko
newHeight = window.innerHeight - editor._toolbar.offsetHeight;
}
if (editor.config.statusBar) {
newHeight -= editor._statusBar.offsetHeight;
}
editor._textArea.style.height = editor._iframe.style.height = newHeight - (HTMLArea.is_gecko ? 8 : 0) + "px";
}
function WatchPlugin(editor) {
this.editor = editor;
this.onUpdateToolbar = update_parent; // 7-)
};
WatchPlugin._pluginInfo = {
name : "WATCH",
version : "1.0",
developer : "Dynarch LLC",
developer_url : "http://dynarch.com/mishoo/",
c_owner : "Mihai Bazon",
sponsor : "www.dynarch.com",
sponsor_url : "http://dynarch.com/",
license : "htmlArea"
};
/* ---------------------------------------------------------------------- *\
Function : init
Description : run this code on page load
\* ---------------------------------------------------------------------- */
function init() {
parent_object = opener.HTMLArea._object;
var config = HTMLArea.cloneObject( parent_object.config );
config.width = "100%";
config.height = "auto";
// change maximize button to minimize button
config.btnList["popupeditor"] = [ 'Minimize Editor', _editor_url + 'images/fullscreen_minimize.gif', true,
function() { window.close(); } ];
// generate editor and resize it
editor = new HTMLArea("editor", config);
// register the plugins, if any
for (var i in parent_object.plugins) {
var plugin = parent_object.plugins[i];
try {
eval(plugin.name);
// ObjectInspector not compatible with FullScreen
if (plugin.name != "ObjectInspector")
editor.registerPlugin2(plugin.name, plugin.args);
} catch(e) {};
}
// and restore the original toolbar
config.toolbar = parent_object.config.toolbar;
editor.generate();
editor._iframe.style.width = "100%";
editor._textArea.style.width = "100%";
resize_editor();
editor.doctype = parent_object.doctype;
// set child window contents and event handlers, after a small delay
setTimeout(function() {
editor.setHTML(parent_object.getInnerHTML());
// switch mode if needed
if (parent_object._mode == "textmode") { editor.setMode("textmode"); }
// continuously update parent editor window
// setInterval(update_parent, 500);
// setup event handlers
document.body.onkeypress = _CloseOnEsc;
editor._doc.body.onkeypress = _CloseOnEsc;
editor._textArea.onkeypress = _CloseOnEsc;
window.onresize = resize_editor;
editor.registerPlugin(WatchPlugin);
}, 333); // give it some time to meet the new frame
}
/* ---------------------------------------------------------------------- *\
Function : update_parent
Description : update parent window editor field with contents from child window
\* ---------------------------------------------------------------------- */
function update_parent() {
// use the fast version
parent_object.setHTML(editor.getInnerHTML());
}
window.onbeforeunload = null;
</script>
<style type="text/css"> html, body { height: 100%; margin: 0px; border: 0px; background-color: buttonface; } </style>
</head>
<body scroll="no" onload="HTMLArea.onload = init; HTMLArea.init();" onunload="update_parent()">
<form style="margin: 0px; border: 1px solid; border-color: threedshadow threedhighlight threedhighlight threedshadow;">
<textarea name="editor" id="editor" style="width:100%; height:300px"> </textarea>
</form>
</body>
</html>
| zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/popups/fullscreen.html | HTML | art | 5,960 |
<html>
<head>
<title>Insert/Modify Link</title>
<script type="text/javascript" src="popup.js"></script>
<script type="text/javascript">
window.resizeTo(400, 200);
I18N = window.opener.HTMLArea.I18N.dialogs;
function i18n(str) {
return (I18N[str] || str);
};
function onTargetChanged() {
var f = document.getElementById("f_other_target");
if (this.value == "_other") {
f.style.visibility = "visible";
f.select();
f.focus();
} else f.style.visibility = "hidden";
};
function Init() {
__dlg_translate(I18N);
__dlg_init();
var param = window.dialogArguments;
var target_select = document.getElementById("f_target");
var use_target = true;
if (param) {
if ( typeof param["f_usetarget"] != "undefined" ) {
use_target = param["f_usetarget"];
}
if ( typeof param["f_href"] != "undefined" ) {
document.getElementById("f_href").value = param["f_href"];
document.getElementById("f_title").value = param["f_title"];
comboSelectValue(target_select, param["f_target"]);
if (target_select.value != param.f_target) {
var opt = document.createElement("option");
opt.value = param.f_target;
opt.innerHTML = opt.value;
target_select.appendChild(opt);
opt.selected = true;
}
}
}
if (! use_target) {
document.getElementById("f_target_label").style.visibility = "hidden";
document.getElementById("f_target").style.visibility = "hidden";
document.getElementById("f_target_other").style.visibility = "hidden";
}
var opt = document.createElement("option");
opt.value = "_other";
opt.innerHTML = i18n("Other");
target_select.appendChild(opt);
target_select.onchange = onTargetChanged;
document.getElementById("f_href").focus();
document.getElementById("f_href").select();
};
function onOK() {
var required = {
// f_href shouldn't be required or otherwise removing the link by entering an empty
// url isn't possible anymore.
// "f_href": i18n("You must enter the URL where this link points to")
};
for (var i in required) {
var el = document.getElementById(i);
if (!el.value) {
alert(required[i]);
el.focus();
return false;
}
}
// pass data back to the calling window
var fields = ["f_href", "f_title", "f_target" ];
var param = new Object();
for (var i in fields) {
var id = fields[i];
var el = document.getElementById(id);
param[id] = el.value;
}
if (param.f_target == "_other")
param.f_target = document.getElementById("f_other_target").value;
__dlg_close(param);
return false;
};
function onCancel() {
__dlg_close(null);
return false;
};
</script>
<style type="text/css">
html, body {
background: ButtonFace;
color: ButtonText;
font: 11px Tahoma,Verdana,sans-serif;
margin: 0px;
padding: 0px;
}
body { padding: 5px; }
table {
font: 11px Tahoma,Verdana,sans-serif;
}
select, input, button { font: 11px Tahoma,Verdana,sans-serif; }
button { width: 70px; }
table .label { text-align: right; width: 8em; }
.title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px;
border-bottom: 1px solid black; letter-spacing: 2px;
}
#buttons {
margin-top: 1em; border-top: 1px solid #999;
padding: 2px; text-align: right;
}
</style>
</head>
<body onload="Init()">
<div class="title">Insert/Modify Link</div>
<form>
<table border="0" style="width: 100%;">
<tr>
<td class="label">URL:</td>
<td><input type="text" id="f_href" style="width: 100%" /></td>
</tr>
<tr>
<td class="label">Title (tooltip):</td>
<td><input type="text" id="f_title" style="width: 100%" /></td>
</tr>
<tr>
<td class="label"><span id="f_target_label">Target:</span></td>
<td><select id="f_target">
<option value="">None (use implicit)</option>
<option value="_blank">New window (_blank)</option>
<option value="_self">Same frame (_self)</option>
<option value="_top">Top frame (_top)</option>
</select>
<input type="text" name="f_other_target" id="f_other_target" size="10" style="visibility: hidden" />
</td>
</tr>
</table>
<div id="buttons">
<button type="submit" name="ok" onclick="return onOK();">OK</button>
<button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
</div>
</form>
</body>
</html>
| zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/popups/link.html | HTML | art | 4,382 |
<html style="width:300px; Height: 60px;">
<head>
<title>Select Phrase</title>
<script language="javascript">
var myTitle = window.dialogArguments;
document.title = myTitle;
function returnSelected() {
var idx = document.all.textPulldown.selectedIndex;
var text = document.all.textPulldown[idx].text;
window.returnValue = text; // set return value
window.close(); // close dialog
}
</script>
</head>
<body bgcolor="#FFFFFF" topmargin=15 leftmargin=0>
<form method=get onSubmit="Set(document.all.ColorHex.value); return false;">
<div align=center>
<select name="textPulldown">
<option>The quick brown</option>
<option>fox jumps over</option>
<option>the lazy dog.</option>
</select>
<input type="button" value=" Go " onClick="returnSelected()">
</div>
</form>
</body></html> | zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/popups/custom2.html | HTML | art | 856 |
<html>
</html> | zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/popups/blank.html | HTML | art | 15 |
<html>
<head>
<title>Insert Image</title>
<script type="text/javascript" src="popup.js"></script>
<script type="text/javascript">
window.resizeTo(400, 100);
function Init() {
__dlg_init();
var param = window.dialogArguments;
if (param) {
document.getElementById("f_url").value = param["f_url"];
document.getElementById("f_alt").value = param["f_alt"];
document.getElementById("f_border").value = param["f_border"];
document.getElementById("f_align").value = param["f_align"];
document.getElementById("f_vert").value = param["f_vert"];
document.getElementById("f_horiz").value = param["f_horiz"];
window.ipreview.location.replace(getURL(param.f_url));
}
document.getElementById("f_url").focus();
};
function getURL(url) {
if (!/^https?:\/\//i.test(url) && !/^\//.test(url)) {
var base = window.opener.document.URL;
base = base.replace(/\/([^\/]+)$/, '/');
url = base + url;
}
return url;
};
function onOK() {
var required = {
"f_url": "You must enter the URL"
};
for (var i in required) {
var el = document.getElementById(i);
if (!el.value) {
alert(required[i]);
el.focus();
return false;
}
}
// pass data back to the calling window
var fields = ["f_url", "f_alt", "f_align", "f_border",
"f_horiz", "f_vert"];
var param = new Object();
for (var i in fields) {
var id = fields[i];
var el = document.getElementById(id);
param[id] = el.value;
}
__dlg_close(param);
return false;
};
function onCancel() {
__dlg_close(null);
return false;
};
function onPreview() {
var f_url = document.getElementById("f_url");
var url = f_url.value;
if (!url) {
alert("You have to enter an URL first");
f_url.focus();
return false;
}
window.ipreview.location.replace(getURL(url));
return false;
};
</script>
<style type="text/css">
html, body {
background: ButtonFace;
color: ButtonText;
font: 11px Tahoma,Verdana,sans-serif;
margin: 0px;
padding: 0px;
}
body { padding: 5px; }
table {
font: 11px Tahoma,Verdana,sans-serif;
}
form p {
margin-top: 5px;
margin-bottom: 5px;
}
.fl { width: 9em; float: left; padding: 2px 5px; text-align: right; }
.fr { width: 6em; float: left; padding: 2px 5px; text-align: right; }
fieldset { padding: 0px 10px 5px 5px; }
select, input, button { font: 11px Tahoma,Verdana,sans-serif; }
button { width: 70px; }
.space { padding: 2px; }
.title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px;
border-bottom: 1px solid black; letter-spacing: 2px;
}
form { padding: 0px; margin: 0px; }
</style>
</head>
<body onload="Init()">
<div class="title">Insert Image</div>
<!--- new stuff --->
<form action="" method="get">
<table border="0" width="100%" style="padding: 0px; margin: 0px">
<tbody>
<tr>
<td style="width: 7em; text-align: right">Image URL:</td>
<td><input type="text" name="url" id="f_url" style="width:75%"
title="Enter the image URL here" />
<button name="preview" onclick="return onPreview();"
title="Preview the image in a new window">Preview</button>
</td>
</tr>
<tr>
<td style="width: 7em; text-align: right">Alternate text:</td>
<td><input type="text" name="alt" id="f_alt" style="width:100%"
title="For browsers that don't support images" /></td>
</tr>
</tbody>
</table>
<p />
<fieldset style="float: left; margin-left: 5px;">
<legend>Layout</legend>
<div class="space"></div>
<div class="fl">Alignment:</div>
<select size="1" name="align" id="f_align"
title="Positioning of this image">
<option value="" >Not set</option>
<option value="left" >Left</option>
<option value="right" >Right</option>
<option value="texttop" >Texttop</option>
<option value="absmiddle" >Absmiddle</option>
<option value="baseline" selected="1" >Baseline</option>
<option value="absbottom" >Absbottom</option>
<option value="bottom" >Bottom</option>
<option value="middle" >Middle</option>
<option value="top" >Top</option>
</select>
<p />
<div class="fl">Border thickness:</div>
<input type="text" name="border" id="f_border" size="5"
title="Leave empty for no border" />
<div class="space"></div>
</fieldset>
<fieldset style="float:right; margin-right: 5px;">
<legend>Spacing</legend>
<div class="space"></div>
<div class="fr">Horizontal:</div>
<input type="text" name="horiz" id="f_horiz" size="5"
title="Horizontal padding" />
<p />
<div class="fr">Vertical:</div>
<input type="text" name="vert" id="f_vert" size="5"
title="Vertical padding" />
<div class="space"></div>
</fieldset>
<br clear="all" />
<table width="100%" style="margin-bottom: 0.2em">
<tr>
<td valign="bottom">
Image Preview:<br />
<iframe name="ipreview" id="ipreview" frameborder="0" style="border : 1px solid gray;" height="200" width="300" src=""></iframe>
</td>
<td valign="bottom" style="text-align: right">
<button type="button" name="ok" onclick="return onOK();">OK</button><br>
<button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
</td>
</tr>
</table>
</form>
</body>
</html>
| zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/popups/insert_image.html | HTML | art | 5,579 |
<html>
<head><title>Fullscreen Editor</title>
<style type="text/css"> body { margin: 0px; border: 0px; background-color: buttonface; } </style>
<script>
// if we pass the "window" object as a argument and then set opener to
// equal that we can refer to dialogWindows and popupWindows the same way
if (window.dialogArguments) { opener = window.dialogArguments; }
var _editor_url = "../";
document.write('<scr'+'ipt src="' +_editor_url+ 'editor.js" language="Javascript1.2"></scr'+'ipt>');
var parent_objname = location.search.substring(1,location.search.length); // parent editor objname
var parent_config = opener.document.all[parent_objname].config;
var config = cloneObject( parent_config );
var objname = 'editor'; // name of this editor
// DOMViewerObj = config;
// DOMViewerName = 'config';
// window.open('/innerHTML/domviewer.htm');
/* ---------------------------------------------------------------------- *\
Function :
Description :
\* ---------------------------------------------------------------------- */
function _CloseOnEsc() {
if (event.keyCode == 27) {
update_parent();
window.close();
return;
}
}
/* ---------------------------------------------------------------------- *\
Function : cloneObject
Description : copy an object by value instead of by reference
Usage : var newObj = cloneObject(oldObj);
\* ---------------------------------------------------------------------- */
function cloneObject(obj) {
var newObj = new Object;
// check for array objects
if (obj.constructor.toString().indexOf('function Array(') == 1) {
newObj = obj.constructor();
}
for (var n in obj) {
var node = obj[n];
if (typeof node == 'object') { newObj[n] = cloneObject(node); }
else { newObj[n] = node; }
}
return newObj;
}
/* ---------------------------------------------------------------------- *\
Function : resize_editor
Description : resize the editor when the user resizes the popup
\* ---------------------------------------------------------------------- */
function resize_editor() { // resize editor to fix window
var editor = document.all['_editor_editor'];
newWidth = document.body.offsetWidth;
newHeight = document.body.offsetHeight - editor.offsetTop;
if (newWidth < 0) { newWidth = 0; }
if (newHeight < 0) { newHeight = 0; }
editor.style.width = newWidth;
editor.style.height = newHeight;
}
/* ---------------------------------------------------------------------- *\
Function : init
Description : run this code on page load
\* ---------------------------------------------------------------------- */
function init() {
// change maximize button to minimize button
config.btnList["popupeditor"] = ['popupeditor', 'Minimize Editor', 'update_parent(); window.close();', 'fullscreen_minimize.gif'];
// set htmlmode button to refer to THIS editor
config.btnList["htmlmode"] = ['HtmlMode', 'View HTML Source', 'editor_setmode(\'editor\')', 'ed_html.gif'];
// change image url to be relative to current path
config.imgURL = "../images/";
// generate editor and resize it
editor_generate('editor', config);
resize_editor();
// switch mode if needed
if (parent_config.mode == 'textedit') { editor_setmode(objname, 'textedit'); }
// set child window contents
var parentHTML = opener.editor_getHTML(parent_objname);
editor_setHTML(objname, parentHTML);
// continuously update parent editor window
window.setInterval(update_parent, 333);
// setup event handlers
document.body.onkeypress = _CloseOnEsc;
window.onresize = resize_editor;
}
/* ---------------------------------------------------------------------- *\
Function : update_parent
Description : update parent window editor field with contents from child window
\* ---------------------------------------------------------------------- */
function update_parent() {
var childHTML = editor_getHTML(objname);
opener.editor_setHTML(parent_objname, childHTML);
}
</script>
</head>
<body scroll="no" onload="init()" onunload="update_parent()">
<div style="margin: 0 0 0 0; border-width: 1; border-style: solid; border-color: threedshadow threedhighlight threedhighlight threedshadow; "></div>
<textarea name="editor" style="width:100%; height:300px"></textarea><br>
</body></html> | zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/popups/old-fullscreen.html | HTML | art | 4,519 |
<!--
(c) dynarch.com, 2003-2005
Author: Mihai Bazon, http://dynarch.com/mishoo
Distributed as part of HTMLArea 3.0
"You are not expected to understand this... I don't neither."
(from The Linux Kernel Source Code,
./arch/x86_64/ia32/ptrace.c:90)
;-)
-->
<html style="height: 100%">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>About HTMLArea</title>
<script type="text/javascript" src="popup.js"></script>
<script type="text/javascript">
window.resizeTo(450, 250);
var TABS = [];
var CURRENT_TAB = 0;
var CONTENT_HEIGHT_DIFF = 0;
var CONTENT_WIDTH_DIFF = 0;
function selectTab(idx) {
var ct = TABS[CURRENT_TAB];
ct.className = ct.className.replace(/\s*tab-current\s*/, ' ');
ct = TABS[CURRENT_TAB = idx];
ct.className += ' tab-current';
for (var i = TABS.length; --i >= 0;) {
var area = document.getElementById("tab-area-" + i);
if (CURRENT_TAB == i) {
area.style.display = "block";
} else {
area.style.display = "none";
}
}
document.body.style.visibility = "hidden";
document.body.style.visibility = "visible";
document.cookie = "HTMLAREA-ABOUT-TAB=" + idx;
}
var editor = null;
function initDocument() {
editor = window.dialogArguments;
HTMLArea = window.opener.HTMLArea;
var plugins = document.getElementById("plugins");
var j = 0;
var html = "<table width='99%' cellpadding='0' style='margin-top: 1em; collapse-borders: collapse; border: 1px solid #8b8;'>" +
"<thead><tr>" +
"<td>Name</td>" +
"<td>Developer</td>" +
"<td>Developed for</td>" +
"<td>License<sup>*</sup></td>" +
"</tr></thead><tbody>";
for (var i in editor.plugins) {
var info = editor.plugins[i];
html += "<tr><td>" + info.name + " v" + info.version + "</td>" +
"<td><a href='" + info.developer_url + "' target='_blank' title='Visit developer website'>" +
info.developer + "</a></td>" +
"<td><a href='" + info.sponsor_url + "' target='_blank' title='Visit sponsor website'>" +
info.sponsor + "</a></td>" +
"<td>" + info.license + "</td></tr>";
++j;
}
if (j) {
html += "</tbody></table>" +
"<p><sup>*</sup> License \"htmlArea\" means that the plugin is distributed under the same terms " +
"as HTMLArea itself. Such plugins are likely to be those included in the official " +
"HTMLArea distribution</p>";
plugins.innerHTML = "<p>The following plugins have been loaded.</p>" + html;
} else {
plugins.innerHTML = "<p>No plugins have been loaded</p>";
}
plugins.innerHTML += "<p>User agent reports:<br/>" + navigator.userAgent + "</p>";
var content = document.getElementById("content");
if (window.innerHeight) {
CONTENT_HEIGHT_DIFF = window.innerHeight - 250;
CONTENT_WIDTH_DIFF = window.innerWidth - content.offsetWidth;
} else {
CONTENT_HEIGHT_DIFF = document.body.offsetHeight - 250;
CONTENT_WIDTH_DIFF = document.body.offsetWidth - 400;
}
window.onresize();
var bar = document.getElementById("tabbar");
j = 0;
for (var i = bar.firstChild; i; i = i.nextSibling) {
TABS.push(i);
i.__msh_tab = j;
i.onmousedown = function(ev) { selectTab(this.__msh_tab); HTMLArea._stopEvent(ev || window.event); };
var area = document.getElementById("tab-area-" + j);
if (/tab-current/.test(i.className)) {
CURRENT_TAB = j;
area.style.display = "block";
} else {
area.style.display = "none";
}
++j;
}
if (document.cookie.match(/HTMLAREA-ABOUT-TAB=([0-9]+)/))
selectTab(RegExp.$1);
}
window.onresize = function() {
var content = document.getElementById("content");
if (window.innerHeight) {
content.style.height = (window.innerHeight - CONTENT_HEIGHT_DIFF) + "px";
content.style.width = (window.innerWidth - CONTENT_WIDTH_DIFF) + "px";
} else {
content.style.height = (document.body.offsetHeight - CONTENT_HEIGHT_DIFF) + "px";
//content.style.width = (document.body.offsetWidth - CONTENT_WIDTH_DIFF) + "px";
}
}
</script>
<style>
html,body,textarea,table { font-family: tahoma,verdana,arial; font-size: 11px;
padding: 0px; margin: 0px; }
tt { font-size: 120%; }
body { padding: 0px; background: #cea; color: 000; }
a:link, a:visited { color: #00f; }
a:hover { color: #f00; }
a:active { color: #f80; }
button { font: 11px tahoma,verdana,sans-serif; background-color: #cea;
border-width: 1px; }
p { margin: 0.5em 0px; }
h1 { font: bold 130% georgia,"times new roman",serif; margin: 0px; border-bottom: 1px solid #6a6; }
h2 { font: bold 110% georgia,"times new roman",serif; margin: 0.7em 0px; }
thead {
font-weight: bold;
background-color: #dfb;
}
.logo, .logo-hover {
white-space: nowrap;
background-color: #8f4; color: #040; padding: 3px; border-bottom: 1px solid #555;
height: 5em;
}
.logo .brand, .logo-hover .brand {
margin-left: 0.5em; margin-right: 0.5em; padding-bottom: 0.1em;
font-family: impact,'arial black',arial,sans-serif; font-size: 28px;
border-bottom: 1px solid #595; text-align: center;
cursor: pointer;
}
.logo-hover {
background-color: #fff;
}
.logo-hover .brand {
color: #800;
border-color: #04f;
}
.logo .letter, .logo-hover .letter { position: relative; font-family: monospace; }
.logo .letter1 { top: 0.1em; }
.logo .letter2 { top: 0.05em; }
.logo .letter3 { top: -0.05em; }
.logo .letter4 { top: -0.1em; }
.logo-hover .letter1 { top: -0.1em; }
.logo-hover .letter2 { top: -0.05em; }
.logo-hover .letter3 { top: 0.05em; }
.logo-hover .letter4 { top: 0.1em; }
.logo .version, .logo-hover .version { font-family: georgia,"times new roman",serif; }
.logo .release {
font-size: 90%; margin-bottom: 1em;
text-align: center; color: #484;
}
.logo .visit { display: none; }
.logo-hover .release { display: none; }
.logo-hover .visit {
font-size: 90%; margin-bottom: 1em;
text-align: center; color: #448;
}
.buttons {
text-align: right; padding: 3px; background-color: #8f4;
border-top: 1px solid #555;
}
#tabbar {
position: relative;
left: 10px;
}
.tab {
color: #454;
cursor: pointer;
margin-left: -5px;
float: left; position: relative;
border: 1px solid #555;
top: -3px; left: -2px;
padding: 2px 10px 3px 10px;
border-top: none; background-color: #9b7;
-moz-border-radius: 0px 0px 4px 4px;
z-index: 0;
}
.tab-current {
color: #000;
top: -4px;
background-color: #cea;
padding: 3px 10px 4px 10px;
z-index: 10;
}
table.sponsors { border-top: 1px solid #aca; }
table.sponsors td {
border-bottom: 1px solid #aca; vertical-align: top;
}
table.sponsors tr td { padding: 2px 0px; }
table.sponsors tr td.sponsor { text-align: right; padding-right: 0.3em; white-space: nowrap; }
li, ol, ul { margin-top: 0px; margin-bottom: 0px; }
</style></head>
<body onload="__dlg_init(); initDocument();"
><table cellspacing="0" cellpadding="0" style="border-collapse: collapse;
width: 100%; height: 100%;">
<tr style="height: 1em"><td id="tdheader">
<div class="logo">
<div class="brand"
onmouseover="this.parentNode.className='logo-hover';"
onmouseout="this.parentNode.className='logo';"
onclick="window.open('http://dynarch.com/htmlarea/');">
<span class="letter letter1"><H</span><span
class="letter letter2">T</span><span
class="letter letter3">M</span><span
class="letter letter4">L</span>Area <span class="letter">/></span>
<span class="version">3.0 <span style="position: relative; top: -0.6em; font-size: 50%; font-weight: normal">[ rev. last-20071025 ]</span></span></div>
<div class="release">Compiled on Oct 25, 2007 14:20 GMT</div>
<div class="visit">Go to http://dynarch.com/htmlarea/ [latest milestone release]</div>
</div>
</td></tr>
<tr><td id="tdcontent" style="padding: 0.5em;">
<div style="overflow: auto; height: 250px;" id="content">
<div id="tab-areas">
<div id="tab-area-0">
<h1>HTMLArea</h1>
<p>A free WYSIWYG editor replacement for <tt><textarea></tt> fields.<br />
For Mozilla 1.3+ (any platform) or Internet Explorer 5.5+ (Windows).
</p>
<p style="text-align: center"
>© 2003-2005 <a href="http://dynarch.com" target="_blank">dynarch.com</a> LLC.<br />
© 2002-2004 <a href="http://interactivetools.com" target="_blank">interactivetools.com</a>, inc.<br />
All Rights Reserved.</p>
<h2>Project resources</h2>
<ul>
<li><a href="http://sourceforge.net/projects/itools-htmlarea/" target="_blank"
>Project page</a> (@ sourceforge.net)</li>
<li><a href="http://sourceforge.net/cvs/?group_id=69750" target="_blank"
>Anonymous CVS access</a> (@ sourceforge.net)</li>
<li><a href="http://sourceforge.net/tracker/?atid=525656&group_id=69750&func=browse" target="_blank"
>Bug system</a> (@ sourceforge.net)</li>
<li><a href="http://www.interactivetools.com/forum/gforum.cgi?forum=14;" target="_blank"
>Forum</a> (@ interactivetools.com)</li>
<li><a href="http://www.dynarch.com/htmlarea/" target="_blank"
>Last public release</a> (@ dynarch.com)</li>
</ul>
<p>
For download section please see the <a href="http://sourceforge.net/projects/itools-htmlarea/" target="_blank"
>project page @ SourceForge</a>.
</p>
<p style="margin-top: 1em; text-align: center;">Version 3.0 developed and maintained by <a
href="http://dynarch.com/mishoo/" title="http://dynarch.com/mishoo/" target="_blank">Mihai Bazon</a> / <a
href="http://dynarch.com" title="http://dynarch.com/" target="_blank">dynarch.com</a></p>
</div>
<div id="tab-area-1">
<h1>Thank you</h1>
<p>
<a href="http://dynarch.com" target="_blank">dynarch.com</a> would like to thank the following
companies/persons for their <em>donations</em> to support development of HTMLArea (listed alphabetically):
</p>
<ul>
<li><a href="http://www.computerlove.co.uk" target="_blank">Code Computer Love Ltd.</a> (UK)</li>
<li><a href="http://www.neomedia.ro" target="_blank">Neomedia</a> (Romania)</li>
<li><a href="http://www.os3.it" target="_blank">OS3</a> (Italy)</li>
<li><a href="http://www.softwerk.net" target="_blank">SoftWerk</a> (Italy)</li>
</ul>
<p>Big thank you to <a href="http://www.jot.com/" title="The Application Wiki"
target="_blank">JotSpot, Inc.</a> for keeping me occupied with their wonderful QA. ;-)</p>
<p>Also many thanks to all people at InteractiveTools.com
<a href="http://www.interactivetools.com/forum/gforum.cgi?forum=14;">HTMLArea forums</a> for
contributing translations, feedback, bug reports and fixes.</p>
<p>
Last but not least, this project wouldn't have existed without
<a href="http://interactivetools.com" target="_blank">InteractiveTools.com</a>.
</p>
</div>
<div id="tab-area-2">
<h1>htmlArea License (based on BSD license)</h1>
<p style="text-align: center">
© 2003-2005 dynarch.com LLC<br />
© 2002-2004, interactivetools.com, inc.<br />
All rights reserved.</p>
<p>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
</p>
<ol>
<li>
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
</li>
<li>
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.
</li>
<li>
Neither the name of interactivetools.com, inc. nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
</li>
</ol>
<p>
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
</p>
</div>
<div id="tab-area-3">
<h1>Plugins</h1>
<div id="plugins">
</div>
</div>
</div></div>
</tr></td>
<tr style="height: 1em"><td id="tdfooter">
<div class="buttons">
<div id="tabbar"
><div class="tab tab-current"
>About</div><div class="tab"
>Thanks</div><div class="tab"
>License</div><div class="tab"
>Plugins</div></div>
<button type="button" onclick="__dlg_close(null);">I agree it's cool</button>
</div>
</td></tr></table>
</body></html>
| zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/popups/about.html | HTML | art | 12,933 |
<!-- based on insimage.dlg -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML 3.2//EN">
<HTML id=dlgImage STYLE="width: 432px; height: 194px; ">
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="MSThemeCompatible" content="Yes">
<TITLE>Insert Image</TITLE>
<style>
html, body, button, div, input, select, fieldset { font-family: MS Shell Dlg; font-size: 8pt; position: absolute; };
</style>
<SCRIPT defer>
function _CloseOnEsc() {
if (event.keyCode == 27) { window.close(); return; }
}
function _getTextRange(elm) {
var r = elm.parentTextEdit.createTextRange();
r.moveToElementText(elm);
return r;
}
window.onerror = HandleError
function HandleError(message, url, line) {
var str = "An error has occurred in this dialog." + "\n\n"
+ "Error: " + line + "\n" + message;
alert(str);
window.close();
return true;
}
function Init() {
var elmSelectedImage;
var htmlSelectionControl = "Control";
var globalDoc = window.dialogArguments;
var grngMaster = globalDoc.selection.createRange();
// event handlers
document.body.onkeypress = _CloseOnEsc;
btnOK.onclick = new Function("btnOKClick()");
txtFileName.fImageLoaded = false;
txtFileName.intImageWidth = 0;
txtFileName.intImageHeight = 0;
if (globalDoc.selection.type == htmlSelectionControl) {
if (grngMaster.length == 1) {
elmSelectedImage = grngMaster.item(0);
if (elmSelectedImage.tagName == "IMG") {
txtFileName.fImageLoaded = true;
if (elmSelectedImage.src) {
txtFileName.value = elmSelectedImage.src.replace(/^[^*]*(\*\*\*)/, "$1"); // fix placeholder src values that editor converted to abs paths
txtFileName.intImageHeight = elmSelectedImage.height;
txtFileName.intImageWidth = elmSelectedImage.width;
txtVertical.value = elmSelectedImage.vspace;
txtHorizontal.value = elmSelectedImage.hspace;
txtBorder.value = elmSelectedImage.border;
txtAltText.value = elmSelectedImage.alt;
selAlignment.value = elmSelectedImage.align;
}
}
}
}
txtFileName.value = txtFileName.value || "http://";
txtFileName.focus();
}
function _isValidNumber(txtBox) {
var val = parseInt(txtBox);
if (isNaN(val) || val < 0 || val > 999) { return false; }
return true;
}
function btnOKClick() {
var elmImage;
var intAlignment;
var htmlSelectionControl = "Control";
var globalDoc = window.dialogArguments;
var grngMaster = globalDoc.selection.createRange();
// error checking
if (!txtFileName.value || txtFileName.value == "http://") {
alert("Image URL must be specified.");
txtFileName.focus();
return;
}
if (txtHorizontal.value && !_isValidNumber(txtHorizontal.value)) {
alert("Horizontal spacing must be a number between 0 and 999.");
txtHorizontal.focus();
return;
}
if (txtBorder.value && !_isValidNumber(txtBorder.value)) {
alert("Border thickness must be a number between 0 and 999.");
txtBorder.focus();
return;
}
if (txtVertical.value && !_isValidNumber(txtVertical.value)) {
alert("Vertical spacing must be a number between 0 and 999.");
txtVertical.focus();
return;
}
// delete selected content and replace with image
if (globalDoc.selection.type == htmlSelectionControl && !txtFileName.fImageLoaded) {
grngMaster.execCommand('Delete');
grngMaster = globalDoc.selection.createRange();
}
idstr = "\" id=\"556e697175657e537472696e67"; // new image creation ID
if (!txtFileName.fImageLoaded) {
grngMaster.execCommand("InsertImage", false, idstr);
elmImage = globalDoc.all['556e697175657e537472696e67'];
elmImage.removeAttribute("id");
elmImage.removeAttribute("src");
grngMaster.moveStart("character", -1);
} else {
elmImage = grngMaster.item(0);
if (elmImage.src != txtFileName.value) {
grngMaster.execCommand('Delete');
grngMaster = globalDoc.selection.createRange();
grngMaster.execCommand("InsertImage", false, idstr);
elmImage = globalDoc.all['556e697175657e537472696e67'];
elmImage.removeAttribute("id");
elmImage.removeAttribute("src");
grngMaster.moveStart("character", -1);
txtFileName.fImageLoaded = false;
}
grngMaster = _getTextRange(elmImage);
}
if (txtFileName.fImageLoaded) {
elmImage.style.width = txtFileName.intImageWidth;
elmImage.style.height = txtFileName.intImageHeight;
}
if (txtFileName.value.length > 2040) {
txtFileName.value = txtFileName.value.substring(0,2040);
}
elmImage.src = txtFileName.value;
if (txtHorizontal.value != "") { elmImage.hspace = parseInt(txtHorizontal.value); }
else { elmImage.hspace = 0; }
if (txtVertical.value != "") { elmImage.vspace = parseInt(txtVertical.value); }
else { elmImage.vspace = 0; }
elmImage.alt = txtAltText.value;
if (txtBorder.value != "") { elmImage.border = parseInt(txtBorder.value); }
else { elmImage.border = 0; }
elmImage.align = selAlignment.value;
grngMaster.collapse(false);
grngMaster.select();
window.close();
}
</SCRIPT>
</HEAD>
<BODY id=bdy onload="Init()" style="background: threedface; color: windowtext;" scroll=no>
<DIV id=divFileName style="left: 0.98em; top: 1.2168em; width: 7em; height: 1.2168em; ">Image URL:</DIV>
<INPUT ID=txtFileName type=text style="left: 8.54em; top: 1.0647em; width: 21.5em;height: 2.1294em; " tabIndex=10 onfocus="select()">
<DIV id=divAltText style="left: 0.98em; top: 4.1067em; width: 6.58em; height: 1.2168em; ">Alternate Text:</DIV>
<INPUT type=text ID=txtAltText tabIndex=15 style="left: 8.54em; top: 3.8025em; width: 21.5em; height: 2.1294em; " onfocus="select()">
<FIELDSET id=fldLayout style="left: .9em; top: 7.1em; width: 17.08em; height: 7.6em;">
<LEGEND id=lgdLayout>Layout</LEGEND>
</FIELDSET>
<FIELDSET id=fldSpacing style="left: 18.9em; top: 7.1em; width: 11em; height: 7.6em;">
<LEGEND id=lgdSpacing>Spacing</LEGEND>
</FIELDSET>
<DIV id=divAlign style="left: 1.82em; top: 9.126em; width: 4.76em; height: 1.2168em; ">Alignment:</DIV>
<SELECT size=1 ID=selAlignment tabIndex=20 style="left: 10.36em; top: 8.8218em; width: 6.72em; height: 1.2168em; ">
<OPTION id=optNotSet value=""> Not set </OPTION>
<OPTION id=optLeft value=left> Left </OPTION>
<OPTION id=optRight value=right> Right </OPTION>
<OPTION id=optTexttop value=textTop> Texttop </OPTION>
<OPTION id=optAbsMiddle value=absMiddle> Absmiddle </OPTION>
<OPTION id=optBaseline value=baseline SELECTED> Baseline </OPTION>
<OPTION id=optAbsBottom value=absBottom> Absbottom </OPTION>
<OPTION id=optBottom value=bottom> Bottom </OPTION>
<OPTION id=optMiddle value=middle> Middle </OPTION>
<OPTION id=optTop value=top> Top </OPTION>
</SELECT>
<DIV id=divHoriz style="left: 19.88em; top: 9.126em; width: 4.76em; height: 1.2168em; ">Horizontal:</DIV>
<INPUT ID=txtHorizontal style="left: 24.92em; top: 8.8218em; width: 4.2em; height: 2.1294em; ime-mode: disabled;" type=text size=3 maxlength=3 value="" tabIndex=25 onfocus="select()">
<DIV id=divBorder style="left: 1.82em; top: 12.0159em; width: 8.12em; height: 1.2168em; ">Border Thickness:</DIV>
<INPUT ID=txtBorder style="left: 10.36em; top: 11.5596em; width: 6.72em; height: 2.1294em; ime-mode: disabled;" type=text size=3 maxlength=3 value="" tabIndex=21 onfocus="select()">
<DIV id=divVert style="left: 19.88em; top: 12.0159em; width: 3.64em; height: 1.2168em; ">Vertical:</DIV>
<INPUT ID=txtVertical style="left: 24.92em; top: 11.5596em; width: 4.2em; height: 2.1294em; ime-mode: disabled;" type=text size=3 maxlength=3 value="" tabIndex=30 onfocus="select()">
<BUTTON ID=btnOK style="left: 31.36em; top: 1.0647em; width: 7em; height: 2.2em; " type=submit tabIndex=40>OK</BUTTON>
<BUTTON ID=btnCancel style="left: 31.36em; top: 3.6504em; width: 7em; height: 2.2em; " type=reset tabIndex=45 onClick="window.close();">Cancel</BUTTON>
</BODY>
</HTML> | zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/popups/old_insert_image.html | HTML | art | 8,258 |
<html>
<head>
<title>Editor Help</title>
<style>
body, td, p, div { font-family: arial; font-size: x-small; }
</style>
</head>
<body>
<h2>Editor Help<hr></h2>
Todo...
</body>
</html> | zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/popups/editor_help.html | HTML | art | 213 |
<html>
<head>
<title>Insert Table</title>
<script type="text/javascript" src="popup.js"></script>
<script type="text/javascript">
window.resizeTo(400, 100);
function Init() {
i18n = window.opener.HTMLArea.I18N.dialogs; // load the HTMLArea plugin and lang file
__dlg_translate(i18n);
__dlg_init();
document.getElementById("f_rows").focus();
};
function onOK() {
var required = {
"f_rows": "You must enter a number of rows",
"f_cols": "You must enter a number of columns"
};
for (var i in required) {
var el = document.getElementById(i);
if (!el.value) {
alert(required[i]);
el.focus();
return false;
}
}
var fields = ["f_rows", "f_cols", "f_width", "f_unit", "f_fixed",
"f_align", "f_border", "f_spacing", "f_padding"];
var param = new Object();
for (var i in fields) {
var id = fields[i];
var el = document.getElementById(id);
param[id] = (el.type == "checkbox") ? el.checked : el.value;
}
__dlg_close(param);
return false;
};
function onCancel() {
__dlg_close(null);
return false;
};
</script>
<style type="text/css">
html, body {
background: ButtonFace;
color: ButtonText;
font: 11px Tahoma,Verdana,sans-serif;
margin: 0px;
padding: 0px;
}
body { padding: 5px; }
table {
font: 11px Tahoma,Verdana,sans-serif;
}
form p {
margin-top: 5px;
margin-bottom: 5px;
}
.fl { width: 9em; float: left; padding: 2px 5px; text-align: right; }
.fr { width: 7em; float: left; padding: 2px 5px; text-align: right; }
fieldset { padding: 0px 10px 5px 5px; }
select, input, button { font: 11px Tahoma,Verdana,sans-serif; }
button { width: 70px; }
.space { padding: 2px; }
.title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px;
border-bottom: 1px solid black; letter-spacing: 2px;
}
form { padding: 0px; margin: 0px; }
</style>
</head>
<body onload="Init()">
<div class="title">Insert Table</div>
<form action="" method="get">
<table border="0" style="padding: 0px; margin: 0px">
<tbody>
<tr>
<td style="width: 4em; text-align: right">Rows:</td>
<td><input type="text" name="rows" id="f_rows" size="5" title="Number of rows" value="2" /></td>
<td style="width: 4em; text-align: right">Width:</td>
<td><input type="text" name="width" id="f_width" size="5" title="Width of the table" value="100" /></td>
<td><select size="1" name="unit" id="f_unit" title="Width unit">
<option value="%" selected="1" >Percent</option>
<option value="px" >Pixels</option>
<option value="em" >Em</option>
</select></td>
</tr>
<tr>
<td style="width: 4em; text-align: right">Cols:</td>
<td><input type="text" name="cols" id="f_cols" size="5" title="Number of columns" value="4" /></td>
<td style="text-align: right"><input type="checkbox" checked="checked" name="fixed" id="f_fixed" /></td>
<td colspan="2"><label for="f_fixed"
>Fixed width columns</label></td>
</tr>
</tbody>
</table>
<p />
<fieldset style="float: left; margin-left: 5px;">
<legend>Layout</legend>
<div class="space"></div>
<div class="fl">Alignment:</div>
<select size="1" name="align" id="f_align"
title="Positioning of this table">
<option value="" selected="1" >Not set</option>
<option value="left" >Left</option>
<option value="right" >Right</option>
<option value="texttop" >Texttop</option>
<option value="absmiddle" >Absmiddle</option>
<option value="baseline" >Baseline</option>
<option value="absbottom" >Absbottom</option>
<option value="bottom" >Bottom</option>
<option value="middle" >Middle</option>
<option value="top" >Top</option>
</select>
<p />
<div class="fl">Border thickness:</div>
<input type="text" name="border" id="f_border" size="5" value="1"
title="Leave empty for no border" />
<!--
<p />
<div class="fl">Collapse borders:</div>
<input type="checkbox" name="collapse" id="f_collapse" />
-->
<div class="space"></div>
</fieldset>
<fieldset style="float:right; margin-right: 5px;">
<legend>Spacing</legend>
<div class="space"></div>
<div class="fr">Cell spacing:</div>
<input type="text" name="spacing" id="f_spacing" size="5" value="1"
title="Space between adjacent cells" />
<p />
<div class="fr">Cell padding:</div>
<input type="text" name="padding" id="f_padding" size="5" value="1"
title="Space between content and border in cell" />
<div class="space"></div>
</fieldset>
<div style="margin-top: 85px; border-top: 1px solid #999; padding: 2px; text-align: right;">
<button type="button" name="ok" onclick="return onOK();">OK</button>
<button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
</div>
</form>
</body>
</html>
| zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/popups/insert_table.html | HTML | art | 4,949 |
<!-- note: this version of the color picker is optimized for IE 5.5+ only -->
<html><head><title>Select Color</title>
<script type="text/javascript" src="popup.js"></script>
<script type="text/javascript">
window.resizeTo(240, 182);
function _CloseOnEsc() {
if (event.keyCode == 27) { window.close(); return; }
}
function Init() { // run on page load
__dlg_init(); // <!-- this can be found in popup.js -->
document.body.onkeypress = _CloseOnEsc;
var color = window.dialogArguments;
color = ValidateColor(color) || '000000';
View(color); // set default color
}
function View(color) { // preview color
document.getElementById("ColorPreview").style.backgroundColor = '#' + color;
document.getElementById("ColorHex").value = '#' + color;
}
function Set(string) { // select color
var color = ValidateColor(string);
if (color == null) { alert("Invalid color code: " + string); } // invalid color
else { // valid color
View(color); // show selected color
__dlg_close(color);
}
}
function ValidateColor(string) { // return valid color code
string = string || '';
string = string + "";
string = string.toUpperCase();
var chars = '0123456789ABCDEF';
var out = '';
for (var i=0; i<string.length; i++) { // remove invalid color chars
var schar = string.charAt(i);
if (chars.indexOf(schar) != -1) { out += schar; }
}
if (out.length != 6) { return null; } // check length
return out;
}
</script>
</head>
<body style="background:ButtonFace; margin:0px; padding:0px" onload="Init()">
<form method="get" style="margin:0px; padding:0px" onSubmit="Set(document.getElementById('ColorHex').value); return false;">
<table border="0px" cellspacing="0px" cellpadding="4" width="100%">
<tr>
<td style="background:buttonface" valign=center><div style="background-color: #000000; padding: 1; height: 21px; width: 50px"><div id="ColorPreview" style="height: 100%; width: 100%"></div></div></td>
<td style="background:buttonface" valign=center><input type="text" name="ColorHex"
id="ColorHex" value="" maxlength="7" size=15 style="font-size: 12px"></td>
<td style="background:buttonface" width=100%></td>
</tr>
</table>
</form>
<table border="0" cellspacing="1px" cellpadding="0px" width="100%" bgcolor="#000000" style="cursor: hand;">
<tr>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#003300 onMouseOver=View('003300') onClick=Set('003300') height="10px" width="10px"></td>
<td bgcolor=#006600 onMouseOver=View('006600') onClick=Set('006600') height="10px" width="10px"></td>
<td bgcolor=#009900 onMouseOver=View('009900') onClick=Set('009900') height="10px" width="10px"></td>
<td bgcolor=#00CC00 onMouseOver=View('00CC00') onClick=Set('00CC00') height="10px" width="10px"></td>
<td bgcolor=#00FF00 onMouseOver=View('00FF00') onClick=Set('00FF00') height="10px" width="10px"></td>
<td bgcolor=#330000 onMouseOver=View('330000') onClick=Set('330000') height="10px" width="10px"></td>
<td bgcolor=#333300 onMouseOver=View('333300') onClick=Set('333300') height="10px" width="10px"></td>
<td bgcolor=#336600 onMouseOver=View('336600') onClick=Set('336600') height="10px" width="10px"></td>
<td bgcolor=#339900 onMouseOver=View('339900') onClick=Set('339900') height="10px" width="10px"></td>
<td bgcolor=#33CC00 onMouseOver=View('33CC00') onClick=Set('33CC00') height="10px" width="10px"></td>
<td bgcolor=#33FF00 onMouseOver=View('33FF00') onClick=Set('33FF00') height="10px" width="10px"></td>
<td bgcolor=#660000 onMouseOver=View('660000') onClick=Set('660000') height="10px" width="10px"></td>
<td bgcolor=#663300 onMouseOver=View('663300') onClick=Set('663300') height="10px" width="10px"></td>
<td bgcolor=#666600 onMouseOver=View('666600') onClick=Set('666600') height="10px" width="10px"></td>
<td bgcolor=#669900 onMouseOver=View('669900') onClick=Set('669900') height="10px" width="10px"></td>
<td bgcolor=#66CC00 onMouseOver=View('66CC00') onClick=Set('66CC00') height="10px" width="10px"></td>
<td bgcolor=#66FF00 onMouseOver=View('66FF00') onClick=Set('66FF00') height="10px" width="10px"></td>
</tr>
<tr>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#333333 onMouseOver=View('333333') onClick=Set('333333') height="10px" width="10px"></td>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#000033 onMouseOver=View('000033') onClick=Set('000033') height="10px" width="10px"></td>
<td bgcolor=#003333 onMouseOver=View('003333') onClick=Set('003333') height="10px" width="10px"></td>
<td bgcolor=#006633 onMouseOver=View('006633') onClick=Set('006633') height="10px" width="10px"></td>
<td bgcolor=#009933 onMouseOver=View('009933') onClick=Set('009933') height="10px" width="10px"></td>
<td bgcolor=#00CC33 onMouseOver=View('00CC33') onClick=Set('00CC33') height="10px" width="10px"></td>
<td bgcolor=#00FF33 onMouseOver=View('00FF33') onClick=Set('00FF33') height="10px" width="10px"></td>
<td bgcolor=#330033 onMouseOver=View('330033') onClick=Set('330033') height="10px" width="10px"></td>
<td bgcolor=#333333 onMouseOver=View('333333') onClick=Set('333333') height="10px" width="10px"></td>
<td bgcolor=#336633 onMouseOver=View('336633') onClick=Set('336633') height="10px" width="10px"></td>
<td bgcolor=#339933 onMouseOver=View('339933') onClick=Set('339933') height="10px" width="10px"></td>
<td bgcolor=#33CC33 onMouseOver=View('33CC33') onClick=Set('33CC33') height="10px" width="10px"></td>
<td bgcolor=#33FF33 onMouseOver=View('33FF33') onClick=Set('33FF33') height="10px" width="10px"></td>
<td bgcolor=#660033 onMouseOver=View('660033') onClick=Set('660033') height="10px" width="10px"></td>
<td bgcolor=#663333 onMouseOver=View('663333') onClick=Set('663333') height="10px" width="10px"></td>
<td bgcolor=#666633 onMouseOver=View('666633') onClick=Set('666633') height="10px" width="10px"></td>
<td bgcolor=#669933 onMouseOver=View('669933') onClick=Set('669933') height="10px" width="10px"></td>
<td bgcolor=#66CC33 onMouseOver=View('66CC33') onClick=Set('66CC33') height="10px" width="10px"></td>
<td bgcolor=#66FF33 onMouseOver=View('66FF33') onClick=Set('66FF33') height="10px" width="10px"></td>
</tr>
<tr>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#666666 onMouseOver=View('666666') onClick=Set('666666') height="10px" width="10px"></td>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#000066 onMouseOver=View('000066') onClick=Set('000066') height="10px" width="10px"></td>
<td bgcolor=#003366 onMouseOver=View('003366') onClick=Set('003366') height="10px" width="10px"></td>
<td bgcolor=#006666 onMouseOver=View('006666') onClick=Set('006666') height="10px" width="10px"></td>
<td bgcolor=#009966 onMouseOver=View('009966') onClick=Set('009966') height="10px" width="10px"></td>
<td bgcolor=#00CC66 onMouseOver=View('00CC66') onClick=Set('00CC66') height="10px" width="10px"></td>
<td bgcolor=#00FF66 onMouseOver=View('00FF66') onClick=Set('00FF66') height="10px" width="10px"></td>
<td bgcolor=#330066 onMouseOver=View('330066') onClick=Set('330066') height="10px" width="10px"></td>
<td bgcolor=#333366 onMouseOver=View('333366') onClick=Set('333366') height="10px" width="10px"></td>
<td bgcolor=#336666 onMouseOver=View('336666') onClick=Set('336666') height="10px" width="10px"></td>
<td bgcolor=#339966 onMouseOver=View('339966') onClick=Set('339966') height="10px" width="10px"></td>
<td bgcolor=#33CC66 onMouseOver=View('33CC66') onClick=Set('33CC66') height="10px" width="10px"></td>
<td bgcolor=#33FF66 onMouseOver=View('33FF66') onClick=Set('33FF66') height="10px" width="10px"></td>
<td bgcolor=#660066 onMouseOver=View('660066') onClick=Set('660066') height="10px" width="10px"></td>
<td bgcolor=#663366 onMouseOver=View('663366') onClick=Set('663366') height="10px" width="10px"></td>
<td bgcolor=#666666 onMouseOver=View('666666') onClick=Set('666666') height="10px" width="10px"></td>
<td bgcolor=#669966 onMouseOver=View('669966') onClick=Set('669966') height="10px" width="10px"></td>
<td bgcolor=#66CC66 onMouseOver=View('66CC66') onClick=Set('66CC66') height="10px" width="10px"></td>
<td bgcolor=#66FF66 onMouseOver=View('66FF66') onClick=Set('66FF66') height="10px" width="10px"></td>
</tr>
<tr>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#999999 onMouseOver=View('999999') onClick=Set('999999') height="10px" width="10px"></td>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#000099 onMouseOver=View('000099') onClick=Set('000099') height="10px" width="10px"></td>
<td bgcolor=#003399 onMouseOver=View('003399') onClick=Set('003399') height="10px" width="10px"></td>
<td bgcolor=#006699 onMouseOver=View('006699') onClick=Set('006699') height="10px" width="10px"></td>
<td bgcolor=#009999 onMouseOver=View('009999') onClick=Set('009999') height="10px" width="10px"></td>
<td bgcolor=#00CC99 onMouseOver=View('00CC99') onClick=Set('00CC99') height="10px" width="10px"></td>
<td bgcolor=#00FF99 onMouseOver=View('00FF99') onClick=Set('00FF99') height="10px" width="10px"></td>
<td bgcolor=#330099 onMouseOver=View('330099') onClick=Set('330099') height="10px" width="10px"></td>
<td bgcolor=#333399 onMouseOver=View('333399') onClick=Set('333399') height="10px" width="10px"></td>
<td bgcolor=#336699 onMouseOver=View('336699') onClick=Set('336699') height="10px" width="10px"></td>
<td bgcolor=#339999 onMouseOver=View('339999') onClick=Set('339999') height="10px" width="10px"></td>
<td bgcolor=#33CC99 onMouseOver=View('33CC99') onClick=Set('33CC99') height="10px" width="10px"></td>
<td bgcolor=#33FF99 onMouseOver=View('33FF99') onClick=Set('33FF99') height="10px" width="10px"></td>
<td bgcolor=#660099 onMouseOver=View('660099') onClick=Set('660099') height="10px" width="10px"></td>
<td bgcolor=#663399 onMouseOver=View('663399') onClick=Set('663399') height="10px" width="10px"></td>
<td bgcolor=#666699 onMouseOver=View('666699') onClick=Set('666699') height="10px" width="10px"></td>
<td bgcolor=#669999 onMouseOver=View('669999') onClick=Set('669999') height="10px" width="10px"></td>
<td bgcolor=#66CC99 onMouseOver=View('66CC99') onClick=Set('66CC99') height="10px" width="10px"></td>
<td bgcolor=#66FF99 onMouseOver=View('66FF99') onClick=Set('66FF99') height="10px" width="10px"></td>
</tr>
<tr>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#CCCCCC onMouseOver=View('CCCCCC') onClick=Set('CCCCCC') height="10px" width="10px"></td>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#0000CC onMouseOver=View('0000CC') onClick=Set('0000CC') height="10px" width="10px"></td>
<td bgcolor=#0033CC onMouseOver=View('0033CC') onClick=Set('0033CC') height="10px" width="10px"></td>
<td bgcolor=#0066CC onMouseOver=View('0066CC') onClick=Set('0066CC') height="10px" width="10px"></td>
<td bgcolor=#0099CC onMouseOver=View('0099CC') onClick=Set('0099CC') height="10px" width="10px"></td>
<td bgcolor=#00CCCC onMouseOver=View('00CCCC') onClick=Set('00CCCC') height="10px" width="10px"></td>
<td bgcolor=#00FFCC onMouseOver=View('00FFCC') onClick=Set('00FFCC') height="10px" width="10px"></td>
<td bgcolor=#3300CC onMouseOver=View('3300CC') onClick=Set('3300CC') height="10px" width="10px"></td>
<td bgcolor=#3333CC onMouseOver=View('3333CC') onClick=Set('3333CC') height="10px" width="10px"></td>
<td bgcolor=#3366CC onMouseOver=View('3366CC') onClick=Set('3366CC') height="10px" width="10px"></td>
<td bgcolor=#3399CC onMouseOver=View('3399CC') onClick=Set('3399CC') height="10px" width="10px"></td>
<td bgcolor=#33CCCC onMouseOver=View('33CCCC') onClick=Set('33CCCC') height="10px" width="10px"></td>
<td bgcolor=#33FFCC onMouseOver=View('33FFCC') onClick=Set('33FFCC') height="10px" width="10px"></td>
<td bgcolor=#6600CC onMouseOver=View('6600CC') onClick=Set('6600CC') height="10px" width="10px"></td>
<td bgcolor=#6633CC onMouseOver=View('6633CC') onClick=Set('6633CC') height="10px" width="10px"></td>
<td bgcolor=#6666CC onMouseOver=View('6666CC') onClick=Set('6666CC') height="10px" width="10px"></td>
<td bgcolor=#6699CC onMouseOver=View('6699CC') onClick=Set('6699CC') height="10px" width="10px"></td>
<td bgcolor=#66CCCC onMouseOver=View('66CCCC') onClick=Set('66CCCC') height="10px" width="10px"></td>
<td bgcolor=#66FFCC onMouseOver=View('66FFCC') onClick=Set('66FFCC') height="10px" width="10px"></td>
</tr>
<tr>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#FFFFFF onMouseOver=View('FFFFFF') onClick=Set('FFFFFF') height="10px" width="10px"></td>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#0000FF onMouseOver=View('0000FF') onClick=Set('0000FF') height="10px" width="10px"></td>
<td bgcolor=#0033FF onMouseOver=View('0033FF') onClick=Set('0033FF') height="10px" width="10px"></td>
<td bgcolor=#0066FF onMouseOver=View('0066FF') onClick=Set('0066FF') height="10px" width="10px"></td>
<td bgcolor=#0099FF onMouseOver=View('0099FF') onClick=Set('0099FF') height="10px" width="10px"></td>
<td bgcolor=#00CCFF onMouseOver=View('00CCFF') onClick=Set('00CCFF') height="10px" width="10px"></td>
<td bgcolor=#00FFFF onMouseOver=View('00FFFF') onClick=Set('00FFFF') height="10px" width="10px"></td>
<td bgcolor=#3300FF onMouseOver=View('3300FF') onClick=Set('3300FF') height="10px" width="10px"></td>
<td bgcolor=#3333FF onMouseOver=View('3333FF') onClick=Set('3333FF') height="10px" width="10px"></td>
<td bgcolor=#3366FF onMouseOver=View('3366FF') onClick=Set('3366FF') height="10px" width="10px"></td>
<td bgcolor=#3399FF onMouseOver=View('3399FF') onClick=Set('3399FF') height="10px" width="10px"></td>
<td bgcolor=#33CCFF onMouseOver=View('33CCFF') onClick=Set('33CCFF') height="10px" width="10px"></td>
<td bgcolor=#33FFFF onMouseOver=View('33FFFF') onClick=Set('33FFFF') height="10px" width="10px"></td>
<td bgcolor=#6600FF onMouseOver=View('6600FF') onClick=Set('6600FF') height="10px" width="10px"></td>
<td bgcolor=#6633FF onMouseOver=View('6633FF') onClick=Set('6633FF') height="10px" width="10px"></td>
<td bgcolor=#6666FF onMouseOver=View('6666FF') onClick=Set('6666FF') height="10px" width="10px"></td>
<td bgcolor=#6699FF onMouseOver=View('6699FF') onClick=Set('6699FF') height="10px" width="10px"></td>
<td bgcolor=#66CCFF onMouseOver=View('66CCFF') onClick=Set('66CCFF') height="10px" width="10px"></td>
<td bgcolor=#66FFFF onMouseOver=View('66FFFF') onClick=Set('66FFFF') height="10px" width="10px"></td>
</tr>
<tr>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#FF0000 onMouseOver=View('FF0000') onClick=Set('FF0000') height="10px" width="10px"></td>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#990000 onMouseOver=View('990000') onClick=Set('990000') height="10px" width="10px"></td>
<td bgcolor=#993300 onMouseOver=View('993300') onClick=Set('993300') height="10px" width="10px"></td>
<td bgcolor=#996600 onMouseOver=View('996600') onClick=Set('996600') height="10px" width="10px"></td>
<td bgcolor=#999900 onMouseOver=View('999900') onClick=Set('999900') height="10px" width="10px"></td>
<td bgcolor=#99CC00 onMouseOver=View('99CC00') onClick=Set('99CC00') height="10px" width="10px"></td>
<td bgcolor=#99FF00 onMouseOver=View('99FF00') onClick=Set('99FF00') height="10px" width="10px"></td>
<td bgcolor=#CC0000 onMouseOver=View('CC0000') onClick=Set('CC0000') height="10px" width="10px"></td>
<td bgcolor=#CC3300 onMouseOver=View('CC3300') onClick=Set('CC3300') height="10px" width="10px"></td>
<td bgcolor=#CC6600 onMouseOver=View('CC6600') onClick=Set('CC6600') height="10px" width="10px"></td>
<td bgcolor=#CC9900 onMouseOver=View('CC9900') onClick=Set('CC9900') height="10px" width="10px"></td>
<td bgcolor=#CCCC00 onMouseOver=View('CCCC00') onClick=Set('CCCC00') height="10px" width="10px"></td>
<td bgcolor=#CCFF00 onMouseOver=View('CCFF00') onClick=Set('CCFF00') height="10px" width="10px"></td>
<td bgcolor=#FF0000 onMouseOver=View('FF0000') onClick=Set('FF0000') height="10px" width="10px"></td>
<td bgcolor=#FF3300 onMouseOver=View('FF3300') onClick=Set('FF3300') height="10px" width="10px"></td>
<td bgcolor=#FF6600 onMouseOver=View('FF6600') onClick=Set('FF6600') height="10px" width="10px"></td>
<td bgcolor=#FF9900 onMouseOver=View('FF9900') onClick=Set('FF9900') height="10px" width="10px"></td>
<td bgcolor=#FFCC00 onMouseOver=View('FFCC00') onClick=Set('FFCC00') height="10px" width="10px"></td>
<td bgcolor=#FFFF00 onMouseOver=View('FFFF00') onClick=Set('FFFF00') height="10px" width="10px"></td>
</tr>
<tr>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#00FF00 onMouseOver=View('00FF00') onClick=Set('00FF00') height="10px" width="10px"></td>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#990033 onMouseOver=View('990033') onClick=Set('990033') height="10px" width="10px"></td>
<td bgcolor=#993333 onMouseOver=View('993333') onClick=Set('993333') height="10px" width="10px"></td>
<td bgcolor=#996633 onMouseOver=View('996633') onClick=Set('996633') height="10px" width="10px"></td>
<td bgcolor=#999933 onMouseOver=View('999933') onClick=Set('999933') height="10px" width="10px"></td>
<td bgcolor=#99CC33 onMouseOver=View('99CC33') onClick=Set('99CC33') height="10px" width="10px"></td>
<td bgcolor=#99FF33 onMouseOver=View('99FF33') onClick=Set('99FF33') height="10px" width="10px"></td>
<td bgcolor=#CC0033 onMouseOver=View('CC0033') onClick=Set('CC0033') height="10px" width="10px"></td>
<td bgcolor=#CC3333 onMouseOver=View('CC3333') onClick=Set('CC3333') height="10px" width="10px"></td>
<td bgcolor=#CC6633 onMouseOver=View('CC6633') onClick=Set('CC6633') height="10px" width="10px"></td>
<td bgcolor=#CC9933 onMouseOver=View('CC9933') onClick=Set('CC9933') height="10px" width="10px"></td>
<td bgcolor=#CCCC33 onMouseOver=View('CCCC33') onClick=Set('CCCC33') height="10px" width="10px"></td>
<td bgcolor=#CCFF33 onMouseOver=View('CCFF33') onClick=Set('CCFF33') height="10px" width="10px"></td>
<td bgcolor=#FF0033 onMouseOver=View('FF0033') onClick=Set('FF0033') height="10px" width="10px"></td>
<td bgcolor=#FF3333 onMouseOver=View('FF3333') onClick=Set('FF3333') height="10px" width="10px"></td>
<td bgcolor=#FF6633 onMouseOver=View('FF6633') onClick=Set('FF6633') height="10px" width="10px"></td>
<td bgcolor=#FF9933 onMouseOver=View('FF9933') onClick=Set('FF9933') height="10px" width="10px"></td>
<td bgcolor=#FFCC33 onMouseOver=View('FFCC33') onClick=Set('FFCC33') height="10px" width="10px"></td>
<td bgcolor=#FFFF33 onMouseOver=View('FFFF33') onClick=Set('FFFF33') height="10px" width="10px"></td>
</tr>
<tr>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#0000FF onMouseOver=View('0000FF') onClick=Set('0000FF') height="10px" width="10px"></td>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#990066 onMouseOver=View('990066') onClick=Set('990066') height="10px" width="10px"></td>
<td bgcolor=#993366 onMouseOver=View('993366') onClick=Set('993366') height="10px" width="10px"></td>
<td bgcolor=#996666 onMouseOver=View('996666') onClick=Set('996666') height="10px" width="10px"></td>
<td bgcolor=#999966 onMouseOver=View('999966') onClick=Set('999966') height="10px" width="10px"></td>
<td bgcolor=#99CC66 onMouseOver=View('99CC66') onClick=Set('99CC66') height="10px" width="10px"></td>
<td bgcolor=#99FF66 onMouseOver=View('99FF66') onClick=Set('99FF66') height="10px" width="10px"></td>
<td bgcolor=#CC0066 onMouseOver=View('CC0066') onClick=Set('CC0066') height="10px" width="10px"></td>
<td bgcolor=#CC3366 onMouseOver=View('CC3366') onClick=Set('CC3366') height="10px" width="10px"></td>
<td bgcolor=#CC6666 onMouseOver=View('CC6666') onClick=Set('CC6666') height="10px" width="10px"></td>
<td bgcolor=#CC9966 onMouseOver=View('CC9966') onClick=Set('CC9966') height="10px" width="10px"></td>
<td bgcolor=#CCCC66 onMouseOver=View('CCCC66') onClick=Set('CCCC66') height="10px" width="10px"></td>
<td bgcolor=#CCFF66 onMouseOver=View('CCFF66') onClick=Set('CCFF66') height="10px" width="10px"></td>
<td bgcolor=#FF0066 onMouseOver=View('FF0066') onClick=Set('FF0066') height="10px" width="10px"></td>
<td bgcolor=#FF3366 onMouseOver=View('FF3366') onClick=Set('FF3366') height="10px" width="10px"></td>
<td bgcolor=#FF6666 onMouseOver=View('FF6666') onClick=Set('FF6666') height="10px" width="10px"></td>
<td bgcolor=#FF9966 onMouseOver=View('FF9966') onClick=Set('FF9966') height="10px" width="10px"></td>
<td bgcolor=#FFCC66 onMouseOver=View('FFCC66') onClick=Set('FFCC66') height="10px" width="10px"></td>
<td bgcolor=#FFFF66 onMouseOver=View('FFFF66') onClick=Set('FFFF66') height="10px" width="10px"></td>
</tr>
<tr>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#FFFF00 onMouseOver=View('FFFF00') onClick=Set('FFFF00') height="10px" width="10px"></td>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#990099 onMouseOver=View('990099') onClick=Set('990099') height="10px" width="10px"></td>
<td bgcolor=#993399 onMouseOver=View('993399') onClick=Set('993399') height="10px" width="10px"></td>
<td bgcolor=#996699 onMouseOver=View('996699') onClick=Set('996699') height="10px" width="10px"></td>
<td bgcolor=#999999 onMouseOver=View('999999') onClick=Set('999999') height="10px" width="10px"></td>
<td bgcolor=#99CC99 onMouseOver=View('99CC99') onClick=Set('99CC99') height="10px" width="10px"></td>
<td bgcolor=#99FF99 onMouseOver=View('99FF99') onClick=Set('99FF99') height="10px" width="10px"></td>
<td bgcolor=#CC0099 onMouseOver=View('CC0099') onClick=Set('CC0099') height="10px" width="10px"></td>
<td bgcolor=#CC3399 onMouseOver=View('CC3399') onClick=Set('CC3399') height="10px" width="10px"></td>
<td bgcolor=#CC6699 onMouseOver=View('CC6699') onClick=Set('CC6699') height="10px" width="10px"></td>
<td bgcolor=#CC9999 onMouseOver=View('CC9999') onClick=Set('CC9999') height="10px" width="10px"></td>
<td bgcolor=#CCCC99 onMouseOver=View('CCCC99') onClick=Set('CCCC99') height="10px" width="10px"></td>
<td bgcolor=#CCFF99 onMouseOver=View('CCFF99') onClick=Set('CCFF99') height="10px" width="10px"></td>
<td bgcolor=#FF0099 onMouseOver=View('FF0099') onClick=Set('FF0099') height="10px" width="10px"></td>
<td bgcolor=#FF3399 onMouseOver=View('FF3399') onClick=Set('FF3399') height="10px" width="10px"></td>
<td bgcolor=#FF6699 onMouseOver=View('FF6699') onClick=Set('FF6699') height="10px" width="10px"></td>
<td bgcolor=#FF9999 onMouseOver=View('FF9999') onClick=Set('FF9999') height="10px" width="10px"></td>
<td bgcolor=#FFCC99 onMouseOver=View('FFCC99') onClick=Set('FFCC99') height="10px" width="10px"></td>
<td bgcolor=#FFFF99 onMouseOver=View('FFFF99') onClick=Set('FFFF99') height="10px" width="10px"></td>
</tr>
<tr>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#00FFFF onMouseOver=View('00FFFF') onClick=Set('00FFFF') height="10px" width="10px"></td>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#9900CC onMouseOver=View('9900CC') onClick=Set('9900CC') height="10px" width="10px"></td>
<td bgcolor=#9933CC onMouseOver=View('9933CC') onClick=Set('9933CC') height="10px" width="10px"></td>
<td bgcolor=#9966CC onMouseOver=View('9966CC') onClick=Set('9966CC') height="10px" width="10px"></td>
<td bgcolor=#9999CC onMouseOver=View('9999CC') onClick=Set('9999CC') height="10px" width="10px"></td>
<td bgcolor=#99CCCC onMouseOver=View('99CCCC') onClick=Set('99CCCC') height="10px" width="10px"></td>
<td bgcolor=#99FFCC onMouseOver=View('99FFCC') onClick=Set('99FFCC') height="10px" width="10px"></td>
<td bgcolor=#CC00CC onMouseOver=View('CC00CC') onClick=Set('CC00CC') height="10px" width="10px"></td>
<td bgcolor=#CC33CC onMouseOver=View('CC33CC') onClick=Set('CC33CC') height="10px" width="10px"></td>
<td bgcolor=#CC66CC onMouseOver=View('CC66CC') onClick=Set('CC66CC') height="10px" width="10px"></td>
<td bgcolor=#CC99CC onMouseOver=View('CC99CC') onClick=Set('CC99CC') height="10px" width="10px"></td>
<td bgcolor=#CCCCCC onMouseOver=View('CCCCCC') onClick=Set('CCCCCC') height="10px" width="10px"></td>
<td bgcolor=#CCFFCC onMouseOver=View('CCFFCC') onClick=Set('CCFFCC') height="10px" width="10px"></td>
<td bgcolor=#FF00CC onMouseOver=View('FF00CC') onClick=Set('FF00CC') height="10px" width="10px"></td>
<td bgcolor=#FF33CC onMouseOver=View('FF33CC') onClick=Set('FF33CC') height="10px" width="10px"></td>
<td bgcolor=#FF66CC onMouseOver=View('FF66CC') onClick=Set('FF66CC') height="10px" width="10px"></td>
<td bgcolor=#FF99CC onMouseOver=View('FF99CC') onClick=Set('FF99CC') height="10px" width="10px"></td>
<td bgcolor=#FFCCCC onMouseOver=View('FFCCCC') onClick=Set('FFCCCC') height="10px" width="10px"></td>
<td bgcolor=#FFFFCC onMouseOver=View('FFFFCC') onClick=Set('FFFFCC') height="10px" width="10px"></td>
</tr>
<tr>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#FF00FF onMouseOver=View('FF00FF') onClick=Set('FF00FF') height="10px" width="10px"></td>
<td bgcolor=#000000 onMouseOver=View('000000') onClick=Set('000000') height="10px" width="10px"></td>
<td bgcolor=#9900FF onMouseOver=View('9900FF') onClick=Set('9900FF') height="10px" width="10px"></td>
<td bgcolor=#9933FF onMouseOver=View('9933FF') onClick=Set('9933FF') height="10px" width="10px"></td>
<td bgcolor=#9966FF onMouseOver=View('9966FF') onClick=Set('9966FF') height="10px" width="10px"></td>
<td bgcolor=#9999FF onMouseOver=View('9999FF') onClick=Set('9999FF') height="10px" width="10px"></td>
<td bgcolor=#99CCFF onMouseOver=View('99CCFF') onClick=Set('99CCFF') height="10px" width="10px"></td>
<td bgcolor=#99FFFF onMouseOver=View('99FFFF') onClick=Set('99FFFF') height="10px" width="10px"></td>
<td bgcolor=#CC00FF onMouseOver=View('CC00FF') onClick=Set('CC00FF') height="10px" width="10px"></td>
<td bgcolor=#CC33FF onMouseOver=View('CC33FF') onClick=Set('CC33FF') height="10px" width="10px"></td>
<td bgcolor=#CC66FF onMouseOver=View('CC66FF') onClick=Set('CC66FF') height="10px" width="10px"></td>
<td bgcolor=#CC99FF onMouseOver=View('CC99FF') onClick=Set('CC99FF') height="10px" width="10px"></td>
<td bgcolor=#CCCCFF onMouseOver=View('CCCCFF') onClick=Set('CCCCFF') height="10px" width="10px"></td>
<td bgcolor=#CCFFFF onMouseOver=View('CCFFFF') onClick=Set('CCFFFF') height="10px" width="10px"></td>
<td bgcolor=#FF00FF onMouseOver=View('FF00FF') onClick=Set('FF00FF') height="10px" width="10px"></td>
<td bgcolor=#FF33FF onMouseOver=View('FF33FF') onClick=Set('FF33FF') height="10px" width="10px"></td>
<td bgcolor=#FF66FF onMouseOver=View('FF66FF') onClick=Set('FF66FF') height="10px" width="10px"></td>
<td bgcolor=#FF99FF onMouseOver=View('FF99FF') onClick=Set('FF99FF') height="10px" width="10px"></td>
<td bgcolor=#FFCCFF onMouseOver=View('FFCCFF') onClick=Set('FFCCFF') height="10px" width="10px"></td>
<td bgcolor=#FFFFFF onMouseOver=View('FFFFFF') onClick=Set('FFFFFF') height="10px" width="10px"></td>
</tr>
</table>
</body></html>
| zzh-simple-hr | ZJs/webapp/html-editor/HTMLArea/popups/select_color.html | HTML | art | 28,784 |
/* NicEdit - Micro Inline WYSIWYG
* Copyright 2007-2008 Brian Kirchoff
*
* NicEdit is distributed under the terms of the MIT license
* For more information visit http://nicedit.com/
* Do not remove this copyright message
*/
var bkExtend = function(){
var args = arguments;
if (args.length == 1) args = [this, args[0]];
for (var prop in args[1]) args[0][prop] = args[1][prop];
return args[0];
};
function bkClass() { }
bkClass.prototype.construct = function() {};
bkClass.extend = function(def) {
var classDef = function() {
if (arguments[0] !== bkClass) { return this.construct.apply(this, arguments); }
};
var proto = new this(bkClass);
bkExtend(proto,def);
classDef.prototype = proto;
classDef.extend = this.extend;
return classDef;
};
var bkElement = bkClass.extend({
construct : function(elm,d) {
if(typeof(elm) == "string") {
elm = (d || document).createElement(elm);
}
elm = $BK(elm);
return elm;
},
appendTo : function(elm) {
elm.appendChild(this);
return this;
},
appendBefore : function(elm) {
elm.parentNode.insertBefore(this,elm);
return this;
},
addEvent : function(type, fn) {
bkLib.addEvent(this,type,fn);
return this;
},
setContent : function(c) {
this.innerHTML = c;
return this;
},
pos : function() {
var curleft = curtop = 0;
var o = obj = this;
if (obj.offsetParent) {
do {
curleft += obj.offsetLeft;
curtop += obj.offsetTop;
} while (obj = obj.offsetParent);
}
var b = (!window.opera) ? parseInt(this.getStyle('border-width') || this.style.border) || 0 : 0;
return [curleft+b,curtop+b+this.offsetHeight];
},
noSelect : function() {
bkLib.noSelect(this);
return this;
},
parentTag : function(t) {
var elm = this;
do {
if(elm && elm.nodeName && elm.nodeName.toUpperCase() == t) {
return elm;
}
elm = elm.parentNode;
} while(elm);
return false;
},
hasClass : function(cls) {
return this.className.match(new RegExp('(\\s|^)nicEdit-'+cls+'(\\s|$)'));
},
addClass : function(cls) {
if (!this.hasClass(cls)) { this.className += " nicEdit-"+cls };
return this;
},
removeClass : function(cls) {
if (this.hasClass(cls)) {
this.className = this.className.replace(new RegExp('(\\s|^)nicEdit-'+cls+'(\\s|$)'),' ');
}
return this;
},
setStyle : function(st) {
var elmStyle = this.style;
for(var itm in st) {
switch(itm) {
case 'float':
elmStyle['cssFloat'] = elmStyle['styleFloat'] = st[itm];
break;
case 'opacity':
elmStyle.opacity = st[itm];
elmStyle.filter = "alpha(opacity=" + Math.round(st[itm]*100) + ")";
break;
case 'className':
this.className = st[itm];
break;
default:
//if(document.compatMode || itm != "cursor") { // Nasty Workaround for IE 5.5
elmStyle[itm] = st[itm];
//}
}
}
return this;
},
getStyle : function( cssRule, d ) {
var doc = (!d) ? document.defaultView : d;
if(this.nodeType == 1)
return (doc && doc.getComputedStyle) ? doc.getComputedStyle( this, null ).getPropertyValue(cssRule) : this.currentStyle[ bkLib.camelize(cssRule) ];
},
remove : function() {
this.parentNode.removeChild(this);
return this;
},
setAttributes : function(at) {
for(var itm in at) {
this[itm] = at[itm];
}
return this;
}
});
var bkLib = {
isMSIE : (navigator.appVersion.indexOf("MSIE") != -1),
addEvent : function(obj, type, fn) {
(obj.addEventListener) ? obj.addEventListener( type, fn, false ) : obj.attachEvent("on"+type, fn);
},
toArray : function(iterable) {
var length = iterable.length, results = new Array(length);
while (length--) { results[length] = iterable[length] };
return results;
},
noSelect : function(element) {
if(element.setAttribute && element.nodeName.toLowerCase() != 'input' && element.nodeName.toLowerCase() != 'textarea') {
element.setAttribute('unselectable','on');
}
for(var i=0;i<element.childNodes.length;i++) {
bkLib.noSelect(element.childNodes[i]);
}
},
camelize : function(s) {
return s.replace(/\-(.)/g, function(m, l){return l.toUpperCase()});
},
inArray : function(arr,item) {
return (bkLib.search(arr,item) != null);
},
search : function(arr,itm) {
for(var i=0; i < arr.length; i++) {
if(arr[i] == itm)
return i;
}
return null;
},
cancelEvent : function(e) {
e = e || window.event;
if(e.preventDefault && e.stopPropagation) {
e.preventDefault();
e.stopPropagation();
}
return false;
},
domLoad : [],
domLoaded : function() {
if (arguments.callee.done) return;
arguments.callee.done = true;
for (i = 0;i < bkLib.domLoad.length;i++) bkLib.domLoad[i]();
},
onDomLoaded : function(fireThis) {
this.domLoad.push(fireThis);
if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", bkLib.domLoaded, null);
} else if(bkLib.isMSIE) {
document.write("<style>.nicEdit-main p { margin: 0; }</style><scr"+"ipt id=__ie_onload defer " + ((location.protocol == "https:") ? "src='javascript:void(0)'" : "src=//0") + "><\/scr"+"ipt>");
$BK("__ie_onload").onreadystatechange = function() {
if (this.readyState == "complete"){bkLib.domLoaded();}
};
}
window.onload = bkLib.domLoaded;
}
};
function $BK(elm) {
if(typeof(elm) == "string") {
elm = document.getElementById(elm);
}
return (elm && !elm.appendTo) ? bkExtend(elm,bkElement.prototype) : elm;
}
var bkEvent = {
addEvent : function(evType, evFunc) {
if(evFunc) {
this.eventList = this.eventList || {};
this.eventList[evType] = this.eventList[evType] || [];
this.eventList[evType].push(evFunc);
}
return this;
},
fireEvent : function() {
var args = bkLib.toArray(arguments), evType = args.shift();
if(this.eventList && this.eventList[evType]) {
for(var i=0;i<this.eventList[evType].length;i++) {
this.eventList[evType][i].apply(this,args);
}
}
}
};
function __(s) {
return s;
}
Function.prototype.closure = function() {
var __method = this, args = bkLib.toArray(arguments), obj = args.shift();
return function() { if(typeof(bkLib) != 'undefined') { return __method.apply(obj,args.concat(bkLib.toArray(arguments))); } };
}
Function.prototype.closureListener = function() {
var __method = this, args = bkLib.toArray(arguments), object = args.shift();
return function(e) {
e = e || window.event;
if(e.target) { var target = e.target; } else { var target = e.srcElement };
return __method.apply(object, [e,target].concat(args) );
};
}
/* START CONFIG */
var nicEditorConfig = bkClass.extend({
buttons : {
'bold' : {name : __('Click to Bold'), command : 'Bold', tags : ['B','STRONG'], css : {'font-weight' : 'bold'}, key : 'b'},
'italic' : {name : __('Click to Italic'), command : 'Italic', tags : ['EM','I'], css : {'font-style' : 'italic'}, key : 'i'},
'underline' : {name : __('Click to Underline'), command : 'Underline', tags : ['U'], css : {'text-decoration' : 'underline'}, key : 'u'},
'left' : {name : __('Left Align'), command : 'justifyleft', noActive : true},
'center' : {name : __('Center Align'), command : 'justifycenter', noActive : true},
'right' : {name : __('Right Align'), command : 'justifyright', noActive : true},
'justify' : {name : __('Justify Align'), command : 'justifyfull', noActive : true},
'ol' : {name : __('Insert Ordered List'), command : 'insertorderedlist', tags : ['OL']},
'ul' : {name : __('Insert Unordered List'), command : 'insertunorderedlist', tags : ['UL']},
'subscript' : {name : __('Click to Subscript'), command : 'subscript', tags : ['SUB']},
'superscript' : {name : __('Click to Superscript'), command : 'superscript', tags : ['SUP']},
'strikethrough' : {name : __('Click to Strike Through'), command : 'strikeThrough', css : {'text-decoration' : 'line-through'}},
'removeformat' : {name : __('Remove Formatting'), command : 'removeformat', noActive : true},
'indent' : {name : __('Indent Text'), command : 'indent', noActive : true},
'outdent' : {name : __('Remove Indent'), command : 'outdent', noActive : true},
'hr' : {name : __('Horizontal Rule'), command : 'insertHorizontalRule', noActive : true}
},
iconsPath : '../nicEditorIcons.gif',
buttonList : ['save','bold','italic','underline','left','center','right','justify','ol','ul','fontSize','fontFamily','fontFormat','indent','outdent','image','upload','link','unlink','forecolor','bgcolor'],
iconList : {"xhtml":1,"bgcolor":2,"forecolor":3,"bold":4,"center":5,"hr":6,"indent":7,"italic":8,"justify":9,"left":10,"ol":11,"outdent":12,"removeformat":13,"right":14,"save":25,"strikethrough":16,"subscript":17,"superscript":18,"ul":19,"underline":20,"image":21,"link":22,"unlink":23,"close":24,"arrow":26,"upload":27}
});
/* END CONFIG */
var nicEditors = {
nicPlugins : [],
editors : [],
registerPlugin : function(plugin,options) {
this.nicPlugins.push({p : plugin, o : options});
},
allTextAreas : function(nicOptions) {
var textareas = document.getElementsByTagName("textarea");
for(var i=0;i<textareas.length;i++) {
nicEditors.editors.push(new nicEditor(nicOptions).panelInstance(textareas[i]));
}
return nicEditors.editors;
},
findEditor : function(e) {
var editors = nicEditors.editors;
for(var i=0;i<editors.length;i++) {
if(editors[i].instanceById(e)) {
return editors[i].instanceById(e);
}
}
}
};
var nicEditor = bkClass.extend({
construct : function(o) {
this.options = new nicEditorConfig();
bkExtend(this.options,o);
this.nicInstances = new Array();
this.loadedPlugins = new Array();
var plugins = nicEditors.nicPlugins;
for(var i=0;i<plugins.length;i++) {
this.loadedPlugins.push(new plugins[i].p(this,plugins[i].o));
}
nicEditors.editors.push(this);
bkLib.addEvent(document.body,'mousedown', this.selectCheck.closureListener(this) );
},
panelInstance : function(e,o) {
e = this.checkReplace($BK(e));
var panelElm = new bkElement('DIV').setStyle({width : (parseInt(e.getStyle('width')) || e.clientWidth)+'px'}).appendBefore(e);
this.setPanel(panelElm);
return this.addInstance(e,o);
},
checkReplace : function(e) {
var r = nicEditors.findEditor(e);
if(r) {
r.removeInstance(e);
r.removePanel();
}
return e;
},
addInstance : function(e,o) {
e = this.checkReplace($BK(e));
if( e.contentEditable || !!window.opera ) {
var newInstance = new nicEditorInstance(e,o,this);
} else {
var newInstance = new nicEditorIFrameInstance(e,o,this);
}
this.nicInstances.push(newInstance);
return this;
},
removeInstance : function(e) {
e = $BK(e);
var instances = this.nicInstances;
for(var i=0;i<instances.length;i++) {
if(instances[i].e == e) {
instances[i].remove();
this.nicInstances.splice(i,1);
}
}
},
removePanel : function(e) {
if(this.nicPanel) {
this.nicPanel.remove();
this.nicPanel = null;
}
},
instanceById : function(e) {
e = $BK(e);
var instances = this.nicInstances;
for(var i=0;i<instances.length;i++) {
if(instances[i].e == e) {
return instances[i];
}
}
},
setPanel : function(e) {
this.nicPanel = new nicEditorPanel($BK(e),this.options,this);
this.fireEvent('panel',this.nicPanel);
return this;
},
nicCommand : function(cmd,args) {
if(this.selectedInstance) {
this.selectedInstance.nicCommand(cmd,args);
}
},
getIcon : function(iconName,options) {
var icon = this.options.iconList[iconName];
var file = (options.iconFiles) ? options.iconFiles[iconName] : '';
return {backgroundImage : "url('"+((icon) ? this.options.iconsPath : file)+"')", backgroundPosition : ((icon) ? ((icon-1)*-18) : 0)+'px 0px'};
},
selectCheck : function(e,t) {
var found = false;
do{
if(t.className && t.className.indexOf('nicEdit') != -1) {
return false;
}
} while(t = t.parentNode);
this.fireEvent('blur',this.selectedInstance,t);
this.lastSelectedInstance = this.selectedInstance;
this.selectedInstance = null;
return false;
}
});
nicEditor = nicEditor.extend(bkEvent);
var nicEditorInstance = bkClass.extend({
isSelected : false,
construct : function(e,options,nicEditor) {
this.ne = nicEditor;
this.elm = this.e = e;
this.options = options || {};
newX = parseInt(e.getStyle('width')) || e.clientWidth;
newY = parseInt(e.getStyle('height')) || e.clientHeight;
this.initialHeight = newY-8;
var isTextarea = (e.nodeName.toLowerCase() == "textarea");
if(isTextarea || this.options.hasPanel) {
var ie7s = (bkLib.isMSIE && !((typeof document.body.style.maxHeight != "undefined") && document.compatMode == "CSS1Compat"))
var s = {width: newX+'px', border : '1px solid #ccc', borderTop : 0, overflowY : 'auto', overflowX: 'hidden' };
s[(ie7s) ? 'height' : 'maxHeight'] = (this.ne.options.maxHeight) ? this.ne.options.maxHeight+'px' : null;
this.editorContain = new bkElement('DIV').setStyle(s).appendBefore(e);
var editorElm = new bkElement('DIV').setStyle({width : (newX-8)+'px', margin: '4px', minHeight : newY+'px'}).addClass('main').appendTo(this.editorContain);
e.setStyle({display : 'none'});
editorElm.innerHTML = e.innerHTML;
if(isTextarea) {
editorElm.setContent(e.value);
this.copyElm = e;
var f = e.parentTag('FORM');
if(f) { bkLib.addEvent( f, 'submit', this.saveContent.closure(this)); }
}
editorElm.setStyle((ie7s) ? {height : newY+'px'} : {overflow: 'hidden'});
this.elm = editorElm;
}
this.ne.addEvent('blur',this.blur.closure(this));
this.init();
this.blur();
},
init : function() {
this.elm.setAttribute('contentEditable','true');
if(this.getContent() == "") {
this.setContent('<br />');
}
this.instanceDoc = document.defaultView;
this.elm.addEvent('mousedown',this.selected.closureListener(this)).addEvent('keypress',this.keyDown.closureListener(this)).addEvent('focus',this.selected.closure(this)).addEvent('blur',this.blur.closure(this)).addEvent('keyup',this.selected.closure(this));
this.ne.fireEvent('add',this);
},
remove : function() {
this.saveContent();
if(this.copyElm || this.options.hasPanel) {
this.editorContain.remove();
this.e.setStyle({'display' : 'block'});
this.ne.removePanel();
}
this.disable();
this.ne.fireEvent('remove',this);
},
disable : function() {
this.elm.setAttribute('contentEditable','false');
},
getSel : function() {
return (window.getSelection) ? window.getSelection() : document.selection;
},
getRng : function() {
var s = this.getSel();
if(!s) { return null; }
return (s.rangeCount > 0) ? s.getRangeAt(0) : s.createRange();
},
selRng : function(rng,s) {
if(window.getSelection) {
s.removeAllRanges();
s.addRange(rng);
} else {
rng.select();
}
},
selElm : function() {
var r = this.getRng();
if(r.startContainer) {
var contain = r.startContainer;
if(r.cloneContents().childNodes.length == 1) {
for(var i=0;i<contain.childNodes.length;i++) {
var rng = contain.childNodes[i].ownerDocument.createRange();
rng.selectNode(contain.childNodes[i]);
if(r.compareBoundaryPoints(Range.START_TO_START,rng) != 1 &&
r.compareBoundaryPoints(Range.END_TO_END,rng) != -1) {
return $BK(contain.childNodes[i]);
}
}
}
return $BK(contain);
} else {
return $BK((this.getSel().type == "Control") ? r.item(0) : r.parentElement());
}
},
saveRng : function() {
this.savedRange = this.getRng();
this.savedSel = this.getSel();
},
restoreRng : function() {
if(this.savedRange) {
this.selRng(this.savedRange,this.savedSel);
}
},
keyDown : function(e,t) {
if(e.ctrlKey) {
this.ne.fireEvent('key',this,e);
}
},
selected : function(e,t) {
if(!t) {t = this.selElm()}
if(!e.ctrlKey) {
var selInstance = this.ne.selectedInstance;
if(selInstance != this) {
if(selInstance) {
this.ne.fireEvent('blur',selInstance,t);
}
this.ne.selectedInstance = this;
this.ne.fireEvent('focus',selInstance,t);
}
this.ne.fireEvent('selected',selInstance,t);
this.isFocused = true;
this.elm.addClass('selected');
}
return false;
},
blur : function() {
this.isFocused = false;
this.elm.removeClass('selected');
},
saveContent : function() {
if(this.copyElm || this.options.hasPanel) {
this.ne.fireEvent('save',this);
(this.copyElm) ? this.copyElm.value = this.getContent() : this.e.innerHTML = this.getContent();
}
},
getElm : function() {
return this.elm;
},
getContent : function() {
this.content = this.getElm().innerHTML;
this.ne.fireEvent('get',this);
return this.content;
},
setContent : function(e) {
this.content = e;
this.ne.fireEvent('set',this);
this.elm.innerHTML = this.content;
},
nicCommand : function(cmd,args) {
document.execCommand(cmd,false,args);
}
});
var nicEditorIFrameInstance = nicEditorInstance.extend({
savedStyles : [],
init : function() {
var c = this.elm.innerHTML.replace(/^\s+|\s+$/g, '');
this.elm.innerHTML = '';
(!c) ? c = "<br />" : c;
this.initialContent = c;
this.elmFrame = new bkElement('iframe').setAttributes({'src' : 'javascript:;', 'frameBorder' : 0, 'allowTransparency' : 'true', 'scrolling' : 'no'}).setStyle({height: '100px', width: '100%'}).addClass('frame').appendTo(this.elm);
if(this.copyElm) { this.elmFrame.setStyle({width : (this.elm.offsetWidth-4)+'px'}); }
var styleList = ['font-size','font-family','font-weight','color'];
for(itm in styleList) {
this.savedStyles[bkLib.camelize(itm)] = this.elm.getStyle(itm);
}
setTimeout(this.initFrame.closure(this),50);
},
disable : function() {
this.elm.innerHTML = this.getContent();
},
initFrame : function() {
var fd = $BK(this.elmFrame.contentWindow.document);
fd.designMode = "on";
fd.open();
var css = this.ne.options.externalCSS;
fd.write('<html><head>'+((css) ? '<link href="'+css+'" rel="stylesheet" type="text/css" />' : '')+'</head><body id="nicEditContent" style="margin: 0 !important; background-color: transparent !important;">'+this.initialContent+'</body></html>');
fd.close();
this.frameDoc = fd;
this.frameWin = $BK(this.elmFrame.contentWindow);
this.frameContent = $BK(this.frameWin.document.body).setStyle(this.savedStyles);
this.instanceDoc = this.frameWin.document.defaultView;
this.heightUpdate();
this.frameDoc.addEvent('mousedown', this.selected.closureListener(this)).addEvent('keyup',this.heightUpdate.closureListener(this)).addEvent('keydown',this.keyDown.closureListener(this)).addEvent('keyup',this.selected.closure(this));
this.ne.fireEvent('add',this);
},
getElm : function() {
return this.frameContent;
},
setContent : function(c) {
this.content = c;
this.ne.fireEvent('set',this);
this.frameContent.innerHTML = this.content;
this.heightUpdate();
},
getSel : function() {
return (this.frameWin) ? this.frameWin.getSelection() : this.frameDoc.selection;
},
heightUpdate : function() {
this.elmFrame.style.height = Math.max(this.frameContent.offsetHeight,this.initialHeight)+'px';
},
nicCommand : function(cmd,args) {
this.frameDoc.execCommand(cmd,false,args);
setTimeout(this.heightUpdate.closure(this),100);
}
});
var nicEditorPanel = bkClass.extend({
construct : function(e,options,nicEditor) {
this.elm = e;
this.options = options;
this.ne = nicEditor;
this.panelButtons = new Array();
this.buttonList = bkExtend([],this.ne.options.buttonList);
this.panelContain = new bkElement('DIV').setStyle({overflow : 'hidden', width : '100%', border : '1px solid #cccccc', backgroundColor : '#efefef'}).addClass('panelContain');
this.panelElm = new bkElement('DIV').setStyle({margin : '2px', marginTop : '0px', zoom : 1, overflow : 'hidden'}).addClass('panel').appendTo(this.panelContain);
this.panelContain.appendTo(e);
var opt = this.ne.options;
var buttons = opt.buttons;
for(button in buttons) {
this.addButton(button,opt,true);
}
this.reorder();
e.noSelect();
},
addButton : function(buttonName,options,noOrder) {
var button = options.buttons[buttonName];
var type = (button['type']) ? eval('(typeof('+button['type']+') == "undefined") ? null : '+button['type']+';') : nicEditorButton;
var hasButton = bkLib.inArray(this.buttonList,buttonName);
if(type && (hasButton || this.ne.options.fullPanel)) {
this.panelButtons.push(new type(this.panelElm,buttonName,options,this.ne));
if(!hasButton) {
this.buttonList.push(buttonName);
}
}
},
findButton : function(itm) {
for(var i=0;i<this.panelButtons.length;i++) {
if(this.panelButtons[i].name == itm)
return this.panelButtons[i];
}
},
reorder : function() {
var bl = this.buttonList;
for(var i=0;i<bl.length;i++) {
var button = this.findButton(bl[i]);
if(button) {
this.panelElm.appendChild(button.margin);
}
}
},
remove : function() {
this.elm.remove();
}
});
var nicEditorButton = bkClass.extend({
construct : function(e,buttonName,options,nicEditor) {
this.options = options.buttons[buttonName];
this.name = buttonName;
this.ne = nicEditor;
this.elm = e;
this.margin = new bkElement('DIV').setStyle({'float' : 'left', marginTop : '2px'}).appendTo(e);
this.contain = new bkElement('DIV').setStyle({width : '20px', height : '20px'}).addClass('buttonContain').appendTo(this.margin);
this.border = new bkElement('DIV').setStyle({backgroundColor : '#efefef', border : '1px solid #efefef'}).appendTo(this.contain);
this.button = new bkElement('DIV').setStyle({width : '18px', height : '18px', overflow : 'hidden', zoom : 1, cursor : 'pointer'}).addClass('button').setStyle(this.ne.getIcon(buttonName,options)).appendTo(this.border);
this.button.addEvent('mouseover', this.hoverOn.closure(this)).addEvent('mouseout',this.hoverOff.closure(this)).addEvent('mousedown',this.mouseClick.closure(this)).noSelect();
if(!window.opera) {
this.button.onmousedown = this.button.onclick = bkLib.cancelEvent;
}
nicEditor.addEvent('selected', this.enable.closure(this)).addEvent('blur', this.disable.closure(this)).addEvent('key',this.key.closure(this));
this.disable();
this.init();
},
init : function() { },
hide : function() {
this.contain.setStyle({display : 'none'});
},
updateState : function() {
if(this.isDisabled) { this.setBg(); }
else if(this.isHover) { this.setBg('hover'); }
else if(this.isActive) { this.setBg('active'); }
else { this.setBg(); }
},
setBg : function(state) {
switch(state) {
case 'hover':
var stateStyle = {border : '1px solid #666', backgroundColor : '#ddd'};
break;
case 'active':
var stateStyle = {border : '1px solid #666', backgroundColor : '#ccc'};
break;
default:
var stateStyle = {border : '1px solid #efefef', backgroundColor : '#efefef'};
}
this.border.setStyle(stateStyle).addClass('button-'+state);
},
checkNodes : function(e) {
var elm = e;
do {
if(this.options.tags && bkLib.inArray(this.options.tags,elm.nodeName)) {
this.activate();
return true;
}
} while(elm = elm.parentNode && elm.className != "nicEdit");
elm = $BK(e);
while(elm.nodeType == 3) {
elm = $BK(elm.parentNode);
}
if(this.options.css) {
for(itm in this.options.css) {
if(elm.getStyle(itm,this.ne.selectedInstance.instanceDoc) == this.options.css[itm]) {
this.activate();
return true;
}
}
}
this.deactivate();
return false;
},
activate : function() {
if(!this.isDisabled) {
this.isActive = true;
this.updateState();
this.ne.fireEvent('buttonActivate',this);
}
},
deactivate : function() {
this.isActive = false;
this.updateState();
if(!this.isDisabled) {
this.ne.fireEvent('buttonDeactivate',this);
}
},
enable : function(ins,t) {
this.isDisabled = false;
this.contain.setStyle({'opacity' : 1}).addClass('buttonEnabled');
this.updateState();
this.checkNodes(t);
},
disable : function(ins,t) {
this.isDisabled = true;
this.contain.setStyle({'opacity' : 0.6}).removeClass('buttonEnabled');
this.updateState();
},
toggleActive : function() {
(this.isActive) ? this.deactivate() : this.activate();
},
hoverOn : function() {
if(!this.isDisabled) {
this.isHover = true;
this.updateState();
this.ne.fireEvent("buttonOver",this);
}
},
hoverOff : function() {
this.isHover = false;
this.updateState();
this.ne.fireEvent("buttonOut",this);
},
mouseClick : function() {
if(this.options.command) {
this.ne.nicCommand(this.options.command,this.options.commandArgs);
if(!this.options.noActive) {
this.toggleActive();
}
}
this.ne.fireEvent("buttonClick",this);
},
key : function(nicInstance,e) {
if(this.options.key && e.ctrlKey && String.fromCharCode(e.keyCode || e.charCode).toLowerCase() == this.options.key) {
this.mouseClick();
if(e.preventDefault) e.preventDefault();
}
}
});
var nicPlugin = bkClass.extend({
construct : function(nicEditor,options) {
this.options = options;
this.ne = nicEditor;
this.ne.addEvent('panel',this.loadPanel.closure(this));
this.init();
},
loadPanel : function(np) {
var buttons = this.options.buttons;
for(var button in buttons) {
np.addButton(button,this.options);
}
np.reorder();
},
init : function() { }
});
/* START CONFIG */
var nicPaneOptions = { };
/* END CONFIG */
var nicEditorPane = bkClass.extend({
construct : function(elm,nicEditor,options,openButton) {
this.ne = nicEditor;
this.elm = elm;
this.pos = elm.pos();
this.contain = new bkElement('div').setStyle({zIndex : '99999', overflow : 'hidden', position : 'absolute', left : this.pos[0]+'px', top : this.pos[1]+'px'})
this.pane = new bkElement('div').setStyle({fontSize : '12px', border : '1px solid #ccc', 'overflow': 'hidden', padding : '4px', textAlign: 'left', backgroundColor : '#ffffc9'}).addClass('pane').setStyle(options).appendTo(this.contain);
if(openButton && !openButton.options.noClose) {
this.close = new bkElement('div').setStyle({'float' : 'right', height: '16px', width : '16px', cursor : 'pointer'}).setStyle(this.ne.getIcon('close',nicPaneOptions)).addEvent('mousedown',openButton.removePane.closure(this)).appendTo(this.pane);
}
this.contain.noSelect().appendTo(document.body);
this.position();
this.init();
},
init : function() { },
position : function() {
if(this.ne.nicPanel) {
var panelElm = this.ne.nicPanel.elm;
var panelPos = panelElm.pos();
var newLeft = panelPos[0]+parseInt(panelElm.getStyle('width'))-(parseInt(this.pane.getStyle('width'))+8);
if(newLeft < this.pos[0]) {
this.contain.setStyle({left : newLeft+'px'});
}
}
},
toggle : function() {
this.isVisible = !this.isVisible;
this.contain.setStyle({display : ((this.isVisible) ? 'block' : 'none')});
},
remove : function() {
if(this.contain) {
this.contain.remove();
this.contain = null;
}
},
append : function(c) {
c.appendTo(this.pane);
},
setContent : function(c) {
this.pane.setContent(c);
}
});
var nicEditorAdvancedButton = nicEditorButton.extend({
init : function() {
this.ne.addEvent('selected',this.removePane.closure(this)).addEvent('blur',this.removePane.closure(this));
},
mouseClick : function() {
if(!this.isDisabled) {
if(this.pane && this.pane.pane) {
this.removePane();
} else {
this.pane = new nicEditorPane(this.contain,this.ne,{width : (this.width || '270px'), backgroundColor : '#fff'},this);
this.addPane();
this.ne.selectedInstance.saveRng();
}
}
},
addForm : function(f,elm) {
this.form = new bkElement('form').addEvent('submit',this.submit.closureListener(this));
this.pane.append(this.form);
this.inputs = {};
for(itm in f) {
var field = f[itm];
var val = '';
if(elm) {
val = elm.getAttribute(itm);
}
if(!val) {
val = field['value'] || '';
}
var type = f[itm].type;
if(type == 'title') {
new bkElement('div').setContent(field.txt).setStyle({fontSize : '14px', fontWeight: 'bold', padding : '0px', margin : '2px 0'}).appendTo(this.form);
} else {
var contain = new bkElement('div').setStyle({overflow : 'hidden', clear : 'both'}).appendTo(this.form);
if(field.txt) {
new bkElement('label').setAttributes({'for' : itm}).setContent(field.txt).setStyle({margin : '2px 4px', fontSize : '13px', width: '50px', lineHeight : '20px', textAlign : 'right', 'float' : 'left'}).appendTo(contain);
}
switch(type) {
case 'text':
this.inputs[itm] = new bkElement('input').setAttributes({id : itm, 'value' : val, 'type' : 'text'}).setStyle({margin : '2px 0', fontSize : '13px', 'float' : 'left', height : '20px', border : '1px solid #ccc', overflow : 'hidden'}).setStyle(field.style).appendTo(contain);
break;
case 'select':
this.inputs[itm] = new bkElement('select').setAttributes({id : itm}).setStyle({border : '1px solid #ccc', 'float' : 'left', margin : '2px 0'}).appendTo(contain);
for(opt in field.options) {
var o = new bkElement('option').setAttributes({value : opt, selected : (opt == val) ? 'selected' : ''}).setContent(field.options[opt]).appendTo(this.inputs[itm]);
}
break;
case 'content':
this.inputs[itm] = new bkElement('textarea').setAttributes({id : itm}).setStyle({border : '1px solid #ccc', 'float' : 'left'}).setStyle(field.style).appendTo(contain);
this.inputs[itm].value = val;
}
}
}
new bkElement('input').setAttributes({'type' : 'submit'}).setStyle({backgroundColor : '#efefef',border : '1px solid #ccc', margin : '3px 0', 'float' : 'left', 'clear' : 'both'}).appendTo(this.form);
this.form.onsubmit = bkLib.cancelEvent;
},
submit : function() { },
findElm : function(tag,attr,val) {
var list = this.ne.selectedInstance.getElm().getElementsByTagName(tag);
for(var i=0;i<list.length;i++) {
if(list[i].getAttribute(attr) == val) {
return $BK(list[i]);
}
}
},
removePane : function() {
if(this.pane) {
this.pane.remove();
this.pane = null;
this.ne.selectedInstance.restoreRng();
}
}
});
var nicButtonTips = bkClass.extend({
construct : function(nicEditor) {
this.ne = nicEditor;
nicEditor.addEvent('buttonOver',this.show.closure(this)).addEvent('buttonOut',this.hide.closure(this));
},
show : function(button) {
this.timer = setTimeout(this.create.closure(this,button),400);
},
create : function(button) {
this.timer = null;
if(!this.pane) {
this.pane = new nicEditorPane(button.button,this.ne,{fontSize : '12px', marginTop : '5px'});
this.pane.setContent(button.options.name);
}
},
hide : function(button) {
if(this.timer) {
clearTimeout(this.timer);
}
if(this.pane) {
this.pane = this.pane.remove();
}
}
});
nicEditors.registerPlugin(nicButtonTips);
/* START CONFIG */
var nicSelectOptions = {
buttons : {
'fontSize' : {name : __('Select Font Size'), type : 'nicEditorFontSizeSelect', command : 'fontsize'},
'fontFamily' : {name : __('Select Font Family'), type : 'nicEditorFontFamilySelect', command : 'fontname'},
'fontFormat' : {name : __('Select Font Format'), type : 'nicEditorFontFormatSelect', command : 'formatBlock'}
}
};
/* END CONFIG */
var nicEditorSelect = bkClass.extend({
construct : function(e,buttonName,options,nicEditor) {
this.options = options.buttons[buttonName];
this.elm = e;
this.ne = nicEditor;
this.name = buttonName;
this.selOptions = new Array();
this.margin = new bkElement('div').setStyle({'float' : 'left', margin : '2px 1px 0 1px'}).appendTo(this.elm);
this.contain = new bkElement('div').setStyle({width: '90px', height : '20px', cursor : 'pointer', overflow: 'hidden'}).addClass('selectContain').addEvent('click',this.toggle.closure(this)).appendTo(this.margin);
this.items = new bkElement('div').setStyle({overflow : 'hidden', zoom : 1, border: '1px solid #ccc', paddingLeft : '3px', backgroundColor : '#fff'}).appendTo(this.contain);
this.control = new bkElement('div').setStyle({overflow : 'hidden', 'float' : 'right', height: '18px', width : '16px'}).addClass('selectControl').setStyle(this.ne.getIcon('arrow',options)).appendTo(this.items);
this.txt = new bkElement('div').setStyle({overflow : 'hidden', 'float' : 'left', width : '66px', height : '14px', marginTop : '1px', fontFamily : 'sans-serif', textAlign : 'center', fontSize : '12px'}).addClass('selectTxt').appendTo(this.items);
if(!window.opera) {
this.contain.onmousedown = this.control.onmousedown = this.txt.onmousedown = bkLib.cancelEvent;
}
this.margin.noSelect();
this.ne.addEvent('selected', this.enable.closure(this)).addEvent('blur', this.disable.closure(this));
this.disable();
this.init();
},
disable : function() {
this.isDisabled = true;
this.close();
this.contain.setStyle({opacity : 0.6});
},
enable : function(t) {
this.isDisabled = false;
this.close();
this.contain.setStyle({opacity : 1});
},
setDisplay : function(txt) {
this.txt.setContent(txt);
},
toggle : function() {
if(!this.isDisabled) {
(this.pane) ? this.close() : this.open();
}
},
open : function() {
this.pane = new nicEditorPane(this.items,this.ne,{width : '88px', padding: '0px', borderTop : 0, borderLeft : '1px solid #ccc', borderRight : '1px solid #ccc', borderBottom : '0px', backgroundColor : '#fff'});
for(var i=0;i<this.selOptions.length;i++) {
var opt = this.selOptions[i];
var itmContain = new bkElement('div').setStyle({overflow : 'hidden', borderBottom : '1px solid #ccc', width: '88px', textAlign : 'left', overflow : 'hidden', cursor : 'pointer'});
var itm = new bkElement('div').setStyle({padding : '0px 4px'}).setContent(opt[1]).appendTo(itmContain).noSelect();
itm.addEvent('click',this.update.closure(this,opt[0])).addEvent('mouseover',this.over.closure(this,itm)).addEvent('mouseout',this.out.closure(this,itm)).setAttributes('id',opt[0]);
this.pane.append(itmContain);
if(!window.opera) {
itm.onmousedown = bkLib.cancelEvent;
}
}
},
close : function() {
if(this.pane) {
this.pane = this.pane.remove();
}
},
over : function(opt) {
opt.setStyle({backgroundColor : '#ccc'});
},
out : function(opt) {
opt.setStyle({backgroundColor : '#fff'});
},
add : function(k,v) {
this.selOptions.push(new Array(k,v));
},
update : function(elm) {
this.ne.nicCommand(this.options.command,elm);
this.close();
}
});
var nicEditorFontSizeSelect = nicEditorSelect.extend({
sel : {1 : '1 (8pt)', 2 : '2 (10pt)', 3 : '3 (12pt)', 4 : '4 (14pt)', 5 : '5 (18pt)', 6 : '6 (24pt)'},
init : function() {
this.setDisplay('Font Size...');
for(itm in this.sel) {
this.add(itm,'<font size="'+itm+'">'+this.sel[itm]+'</font>');
}
}
});
var nicEditorFontFamilySelect = nicEditorSelect.extend({
sel : {'arial' : 'Arial','comic sans ms' : 'Comic Sans','courier new' : 'Courier New','georgia' : 'Georgia', 'helvetica' : 'Helvetica', 'impact' : 'Impact', 'times new roman' : 'Times', 'trebuchet ms' : 'Trebuchet', 'verdana' : 'Verdana'},
init : function() {
this.setDisplay('Font Family...');
for(itm in this.sel) {
this.add(itm,'<font face="'+itm+'">'+this.sel[itm]+'</font>');
}
}
});
var nicEditorFontFormatSelect = nicEditorSelect.extend({
sel : {'p' : 'Paragraph', 'pre' : 'Pre', 'h6' : 'Heading 6', 'h5' : 'Heading 5', 'h4' : 'Heading 4', 'h3' : 'Heading 3', 'h2' : 'Heading 2', 'h1' : 'Heading 1'},
init : function() {
this.setDisplay('Font Format...');
for(itm in this.sel) {
var tag = itm.toUpperCase();
this.add('<'+tag+'>','<'+itm+' style="padding: 0px; margin: 0px;">'+this.sel[itm]+'</'+tag+'>');
}
}
});
nicEditors.registerPlugin(nicPlugin,nicSelectOptions);
/* START CONFIG */
var nicLinkOptions = {
buttons : {
'link' : {name : 'Add Link', type : 'nicLinkButton', tags : ['A']},
'unlink' : {name : 'Remove Link', command : 'unlink', noActive : true}
}
};
/* END CONFIG */
var nicLinkButton = nicEditorAdvancedButton.extend({
addPane : function() {
this.ln = this.ne.selectedInstance.selElm().parentTag('A');
this.addForm({
'' : {type : 'title', txt : 'Add/Edit Link'},
'href' : {type : 'text', txt : 'URL', value : 'http://', style : {width: '150px'}},
'title' : {type : 'text', txt : 'Title'},
'target' : {type : 'select', txt : 'Open In', options : {'' : 'Current Window', '_blank' : 'New Window'},style : {width : '100px'}}
},this.ln);
},
submit : function(e) {
var url = this.inputs['href'].value;
if(url == "http://" || url == "") {
alert("You must enter a URL to Create a Link");
return false;
}
this.removePane();
if(!this.ln) {
var tmp = 'javascript:nicTemp();';
this.ne.nicCommand("createlink",tmp);
this.ln = this.findElm('A','href',tmp);
}
if(this.ln) {
this.ln.setAttributes({
href : this.inputs['href'].value,
title : this.inputs['title'].value,
target : this.inputs['target'].options[this.inputs['target'].selectedIndex].value
});
}
}
});
nicEditors.registerPlugin(nicPlugin,nicLinkOptions);
/* START CONFIG */
var nicColorOptions = {
buttons : {
'forecolor' : {name : __('Change Text Color'), type : 'nicEditorColorButton', noClose : true},
'bgcolor' : {name : __('Change Background Color'), type : 'nicEditorBgColorButton', noClose : true}
}
};
/* END CONFIG */
var nicEditorColorButton = nicEditorAdvancedButton.extend({
addPane : function() {
var colorList = {0 : '00',1 : '33',2 : '66',3 :'99',4 : 'CC',5 : 'FF'};
var colorItems = new bkElement('DIV').setStyle({width: '270px'});
for(var r in colorList) {
for(var b in colorList) {
for(var g in colorList) {
var colorCode = '#'+colorList[r]+colorList[g]+colorList[b];
var colorSquare = new bkElement('DIV').setStyle({'cursor' : 'pointer', 'height' : '15px', 'float' : 'left'}).appendTo(colorItems);
var colorBorder = new bkElement('DIV').setStyle({border: '2px solid '+colorCode}).appendTo(colorSquare);
var colorInner = new bkElement('DIV').setStyle({backgroundColor : colorCode, overflow : 'hidden', width : '11px', height : '11px'}).addEvent('click',this.colorSelect.closure(this,colorCode)).addEvent('mouseover',this.on.closure(this,colorBorder)).addEvent('mouseout',this.off.closure(this,colorBorder,colorCode)).appendTo(colorBorder);
if(!window.opera) {
colorSquare.onmousedown = colorInner.onmousedown = bkLib.cancelEvent;
}
}
}
}
this.pane.append(colorItems.noSelect());
},
colorSelect : function(c) {
this.ne.nicCommand('foreColor',c);
this.removePane();
},
on : function(colorBorder) {
colorBorder.setStyle({border : '2px solid #000'});
},
off : function(colorBorder,colorCode) {
colorBorder.setStyle({border : '2px solid '+colorCode});
}
});
var nicEditorBgColorButton = nicEditorColorButton.extend({
colorSelect : function(c) {
this.ne.nicCommand('hiliteColor',c);
this.removePane();
}
});
nicEditors.registerPlugin(nicPlugin,nicColorOptions);
/* START CONFIG */
var nicImageOptions = {
buttons : {
'image' : {name : 'Add Image', type : 'nicImageButton', tags : ['IMG']}
}
};
/* END CONFIG */
var nicImageButton = nicEditorAdvancedButton.extend({
addPane : function() {
this.im = this.ne.selectedInstance.selElm().parentTag('IMG');
this.addForm({
'' : {type : 'title', txt : 'Add/Edit Image'},
'src' : {type : 'text', txt : 'URL', 'value' : 'http://', style : {width: '150px'}},
'alt' : {type : 'text', txt : 'Alt Text', style : {width: '100px'}},
'align' : {type : 'select', txt : 'Align', options : {none : 'Default','left' : 'Left', 'right' : 'Right'}}
},this.im);
},
submit : function(e) {
var src = this.inputs['src'].value;
if(src == "" || src == "http://") {
alert("You must enter a Image URL to insert");
return false;
}
this.removePane();
if(!this.im) {
var tmp = 'javascript:nicImTemp();';
this.ne.nicCommand("insertImage",tmp);
this.im = this.findElm('IMG','src',tmp);
}
if(this.im) {
this.im.setAttributes({
src : this.inputs['src'].value,
alt : this.inputs['alt'].value,
align : this.inputs['align'].value
});
}
}
});
nicEditors.registerPlugin(nicPlugin,nicImageOptions);
/* START CONFIG */
var nicSaveOptions = {
buttons : {
'save' : {name : __('Save this content'), type : 'nicEditorSaveButton'}
}
};
/* END CONFIG */
var nicEditorSaveButton = nicEditorButton.extend({
init : function() {
if(!this.ne.options.onSave) {
this.margin.setStyle({'display' : 'none'});
}
},
mouseClick : function() {
var onSave = this.ne.options.onSave;
var selectedInstance = this.ne.selectedInstance;
onSave(selectedInstance.getContent(), selectedInstance.elm.id, selectedInstance);
}
});
nicEditors.registerPlugin(nicPlugin,nicSaveOptions);
/* START CONFIG */
var nicUploadOptions = {
buttons : {
'upload' : {name : 'Upload Image', type : 'nicUploadButton'}
}
};
/* END CONFIG */
var nicUploadButton = nicEditorAdvancedButton.extend({
nicURI : 'http://files.nicedit.com/',
addPane : function() {
this.im = this.ne.selectedInstance.selElm().parentTag('IMG');
this.myID = Math.round(Math.random()*Math.pow(10,15));
this.requestInterval = 1000;
this.uri = this.ne.options.uploadURI || this.nicURI;
nicUploadButton.lastPlugin = this;
this.myFrame = new bkElement('iframe').setAttributes({ width : '100%', height : '100px', frameBorder : 0, scrolling : 'no' }).setStyle({border : 0}).appendTo(this.pane.pane);
this.progressWrapper = new bkElement('div').setStyle({display: 'none', width: '100%', height: '20px', border : '1px solid #ccc'}).appendTo(this.pane.pane);
this.progress = new bkElement('div').setStyle({width: '0%', height: '20px', backgroundColor : '#ccc'}).setContent(' ').appendTo(this.progressWrapper);
setTimeout(this.addForm.closure(this),50);
},
addForm : function() {
var myDoc = this.myDoc = this.myFrame.contentWindow.document;
myDoc.open();
myDoc.write("<html><body>");
myDoc.write('<form method="post" action="'+this.uri+'?id='+this.myID+'" enctype="multipart/form-data">');
myDoc.write('<input type="hidden" name="APC_UPLOAD_PROGRESS" value="'+this.myID+'" />');
if(this.uri == this.nicURI) {
myDoc.write('<div style="position: absolute; margin-left: 160px;"><img src="http://imageshack.us/img/imageshack.png" width="30" style="float: left;" /><div style="float: left; margin-left: 5px; font-size: 10px;">Hosted by<br /><a href="http://www.imageshack.us/" target="_blank">ImageShack</a></div></div>');
}
myDoc.write('<div style="font-size: 14px; font-weight: bold; padding-top: 5px;">Insert an Image</div>');
myDoc.write('<input name="nicImage" type="file" style="margin-top: 10px;" />');
myDoc.write('</form>');
myDoc.write("</body></html>");
myDoc.close();
this.myBody = myDoc.body;
this.myForm = $BK(this.myBody.getElementsByTagName('form')[0]);
this.myInput = $BK(this.myBody.getElementsByTagName('input')[1]).addEvent('change', this.startUpload.closure(this));
this.myStatus = new bkElement('div',this.myDoc).setStyle({textAlign : 'center', fontSize : '14px'}).appendTo(this.myBody);
},
startUpload : function() {
this.myForm.setStyle({display : 'none'});
this.myStatus.setContent('<img src="http://files.nicedit.com/ajax-loader.gif" style="float: right; margin-right: 40px;" /><strong>Uploading...</strong><br />Please wait');
this.myForm.submit();
setTimeout(this.makeRequest.closure(this),this.requestInterval);
},
makeRequest : function() {
if(this.pane && this.pane.pane) {
nicUploadButton.lastPlugin = this;
var s = new bkElement('script').setAttributes({ type : 'text/javascript', src : this.uri+'?check='+this.myID+'&rand='+Math.round(Math.random()*Math.pow(10,15))}).addEvent('load', function() {
s.parentNode.removeChild(s);
}).appendTo(document.getElementsByTagName('head')[0]);
if(this.requestInterval) {
setTimeout(this.makeRequest.closure(this), this.requestInterval);
}
}
},
setProgress : function(percent) {
this.progressWrapper.setStyle({display: 'block'});
this.progress.setStyle({width : percent+'%'});
},
update : function(o) {
if(o == false) {
this.progressWrapper.setStyle({display : 'none'});
} else if(o.url) {
this.setProgress(100);
this.requestInterval = false;
if(!this.im) {
this.ne.selectedInstance.restoreRng();
var tmp = 'javascript:nicImTemp();';
this.ne.nicCommand("insertImage",tmp);
this.im = this.findElm('IMG','src',tmp);
}
var w = parseInt(this.ne.selectedInstance.elm.getStyle('width'));
if(this.im) {
this.im.setAttributes({
src : o.url,
width : (w && o.width) ? Math.min(w,o.width) : ''
});
}
this.removePane();
} else if(o.error) {
this.requestInterval = false;
this.setProgress(100);
alert("There was an error uploading your image ("+o.error+").");
this.removePane();
} else if(o.noprogress) {
this.progressWrapper.setStyle({display : 'none'});
if(this.uri.indexOf('http:') == -1 || this.uri.indexOf(window.location.host) != -1) {
this.requestInterval = false;
}
} else {
this.setProgress( Math.round( (o.current/o.total) * 75) );
if(o.interval) {
this.requestInterval = o.interval;
}
}
}
});
nicUploadButton.statusCb = function(o) {
nicUploadButton.lastPlugin.update(o);
}
nicEditors.registerPlugin(nicPlugin,nicUploadOptions);
var nicXHTML = bkClass.extend({
stripAttributes : ['_moz_dirty','_moz_resizing','_extended'],
noShort : ['style','title','script','textarea','a'],
cssReplace : {'font-weight:bold;' : 'strong', 'font-style:italic;' : 'em'},
sizes : {1 : 'xx-small', 2 : 'x-small', 3 : 'small', 4 : 'medium', 5 : 'large', 6 : 'x-large'},
construct : function(nicEditor) {
this.ne = nicEditor;
if(this.ne.options.xhtml) {
nicEditor.addEvent('get',this.cleanup.closure(this));
}
},
cleanup : function(ni) {
var node = ni.getElm();
var xhtml = this.toXHTML(node);
ni.content = xhtml;
},
toXHTML : function(n,r,d) {
var txt = '';
var attrTxt = '';
var cssTxt = '';
var nType = n.nodeType;
var nName = n.nodeName.toLowerCase();
var nChild = n.hasChildNodes && n.hasChildNodes();
var extraNodes = new Array();
switch(nType) {
case 1:
var nAttributes = n.attributes;
switch(nName) {
case 'b':
nName = 'strong';
break;
case 'i':
nName = 'em';
break;
case 'font':
nName = 'span';
break;
}
if(r) {
for(var i=0;i<nAttributes.length;i++) {
var attr = nAttributes[i];
var attributeName = attr.nodeName.toLowerCase();
var attributeValue = attr.nodeValue;
if(!attr.specified || !attributeValue || bkLib.inArray(this.stripAttributes,attributeName) || typeof(attributeValue) == "function") {
continue;
}
switch(attributeName) {
case 'style':
var css = attributeValue.replace(/ /g,"");
for(itm in this.cssReplace) {
if(css.indexOf(itm) != -1) {
extraNodes.push(this.cssReplace[itm]);
css = css.replace(itm,'');
}
}
cssTxt += css;
attributeValue = "";
break;
case 'class':
attributeValue = attributeValue.replace("Apple-style-span","");
break;
case 'size':
cssTxt += "font-size:"+this.sizes[attributeValue]+';';
attributeValue = "";
break;
}
if(attributeValue) {
attrTxt += ' '+attributeName+'="'+attributeValue+'"';
}
}
if(cssTxt) {
attrTxt += ' style="'+cssTxt+'"';
}
for(var i=0;i<extraNodes.length;i++) {
txt += '<'+extraNodes[i]+'>';
}
if(attrTxt == "" && nName == "span") {
r = false;
}
if(r) {
txt += '<'+nName;
if(nName != 'br') {
txt += attrTxt;
}
}
}
if(!nChild && !bkLib.inArray(this.noShort,attributeName)) {
if(r) {
txt += ' />';
}
} else {
if(r) {
txt += '>';
}
for(var i=0;i<n.childNodes.length;i++) {
var results = this.toXHTML(n.childNodes[i],true,true);
if(results) {
txt += results;
}
}
}
if(r && nChild) {
txt += '</'+nName+'>';
}
for(var i=0;i<extraNodes.length;i++) {
txt += '</'+extraNodes[i]+'>';
}
break;
case 3:
//if(n.nodeValue != '\n') {
txt += n.nodeValue;
//}
break;
}
return txt;
}
});
nicEditors.registerPlugin(nicXHTML);
var nicBBCode = bkClass.extend({
construct : function(nicEditor) {
this.ne = nicEditor;
if(this.ne.options.bbCode) {
nicEditor.addEvent('get',this.bbGet.closure(this));
nicEditor.addEvent('set',this.bbSet.closure(this));
var loadedPlugins = this.ne.loadedPlugins;
for(itm in loadedPlugins) {
if(loadedPlugins[itm].toXHTML) {
this.xhtml = loadedPlugins[itm];
}
}
}
},
bbGet : function(ni) {
var xhtml = this.xhtml.toXHTML(ni.getElm());
ni.content = this.toBBCode(xhtml);
},
bbSet : function(ni) {
ni.content = this.fromBBCode(ni.content);
},
toBBCode : function(xhtml) {
function rp(r,m) {
xhtml = xhtml.replace(r,m);
}
rp(/\n/gi,"");
rp(/<strong>(.*?)<\/strong>/gi,"[b]$1[/b]");
rp(/<em>(.*?)<\/em>/gi,"[i]$1[/i]");
rp(/<span.*?style="text-decoration:underline;">(.*?)<\/span>/gi,"[u]$1[/u]");
rp(/<ul>(.*?)<\/ul>/gi,"[list]$1[/list]");
rp(/<li>(.*?)<\/li>/gi,"[*]$1[/*]");
rp(/<ol>(.*?)<\/ol>/gi,"[list=1]$1[/list]");
rp(/<img.*?src="(.*?)".*?>/gi,"[img]$1[/img]");
rp(/<a.*?href="(.*?)".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]");
rp(/<br.*?>/gi,"\n");
rp(/<.*?>.*?<\/.*?>/gi,"");
return xhtml;
},
fromBBCode : function(bbCode) {
function rp(r,m) {
bbCode = bbCode.replace(r,m);
}
rp(/\[b\](.*?)\[\/b\]/gi,"<strong>$1</strong>");
rp(/\[i\](.*?)\[\/i\]/gi,"<em>$1</em>");
rp(/\[u\](.*?)\[\/u\]/gi,"<span style=\"text-decoration:underline;\">$1</span>");
rp(/\[list\](.*?)\[\/list\]/gi,"<ul>$1</ul>");
rp(/\[list=1\](.*?)\[\/list\]/gi,"<ol>$1</ol>");
rp(/\[\*\](.*?)\[\/\*\]/gi,"<li>$1</li>");
rp(/\[img\](.*?)\[\/img\]/gi,"<img src=\"$1\" />");
rp(/\[url=(.*?)\](.*?)\[\/url\]/gi,"<a href=\"$1\">$2</a>");
rp(/\n/gi,"<br />");
//rp(/\[.*?\](.*?)\[\/.*?\]/gi,"$1");
return bbCode;
}
});
nicEditors.registerPlugin(nicBBCode);
nicEditor = nicEditor.extend({
floatingPanel : function() {
this.floating = new bkElement('DIV').setStyle({position: 'absolute', top : '-1000px'}).appendTo(document.body);
this.addEvent('focus', this.reposition.closure(this)).addEvent('blur', this.hide.closure(this));
this.setPanel(this.floating);
},
reposition : function() {
var e = this.selectedInstance.e;
this.floating.setStyle({ width : (parseInt(e.getStyle('width')) || e.clientWidth)+'px' });
var top = e.offsetTop-this.floating.offsetHeight;
if(top < 0) {
top = e.offsetTop+e.offsetHeight;
}
this.floating.setStyle({ top : top+'px', left : e.offsetLeft+'px', display : 'block' });
},
hide : function() {
this.floating.setStyle({ top : '-1000px'});
}
});
/* START CONFIG */
var nicCodeOptions = {
buttons : {
'xhtml' : {name : 'Edit HTML', type : 'nicCodeButton'}
}
};
/* END CONFIG */
var nicCodeButton = nicEditorAdvancedButton.extend({
width : '350px',
addPane : function() {
this.addForm({
'' : {type : 'title', txt : 'Edit HTML'},
'code' : {type : 'content', 'value' : this.ne.selectedInstance.getContent(), style : {width: '340px', height : '200px'}}
});
},
submit : function(e) {
var code = this.inputs['code'].value;
this.ne.selectedInstance.setContent(code);
this.removePane();
}
});
nicEditors.registerPlugin(nicPlugin,nicCodeOptions);
| zzh-simple-hr | ZJs/webapp/html-editor/NicEdit/nicEdit.js | JavaScript | art | 52,291 |
<html>
<head>
<title>Demo 5 : Editor Styles</title>
<style type="text/css">
#myInstance1 {
border: 2px dashed #0000ff;
}
.nicEdit-selected {
border: 2px solid #0000ff !important;
}
.nicEdit-panel {
background-color: #fff !important;
}
.nicEdit-button {
background-color: #fff !important;
}
</style>
</head>
<body>
<div id="menu"></div>
<div id="intro">
<p>NicEdit instances and the panel can be styled using CSS classes to fit the look and feel of your site.</p>
</div>
<div id="sample">
<script src="../nicEdit.js" type="text/javascript"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function() {
var myNicEditor = new nicEditor();
myNicEditor.setPanel('myNicPanel');
myNicEditor.addInstance('myInstance1');
});
</script>
This is text above the Panel
<div id="myNicPanel" style="width: 350px;"></div>
This is text below the Panel
<br /><br />
<h4>Selected Style Example</h4>
<div id="myInstance1" style="font-size: 16px; background-color: #ccc; padding: 3px; width: 400px;">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed magna dolor, faucibus ac, iaculis non, cursus et, dui. Donec non urna. Aliquam volutpat ornare augue. Phasellus egestas, nisl fermentum porttitor rutrum, magna metus rutrum risus, id fringilla magna mi nec lorem. Etiam eget metus sed justo ultricies rhoncus. Praesent rhoncus arcu non dolor. Proin eu eros. Curabitur vehicula. Nulla vehicula lectus eget eros. Nulla vel nulla at dui dictum mollis. Etiam purus felis, pretium vel, eleifend id, consectetuer nec, purus. Vivamus pretium orci ac sapien. Etiam at tortor. Nunc tincidunt mi sed sapien. Etiam lacus pede, fermentum eu, blandit ac, congue eget, metus. Quisque sed sem. Mauris at sapien. Ut luctus.
</div>
</body>
</html>
| zzh-simple-hr | ZJs/webapp/html-editor/NicEdit/demos/demo05.html | HTML | art | 1,803 |
<html>
<head>
<title>Demo 2 : NicEdit Configuration</title>
</head>
<body>
<div id="menu"></div>
<div id="intro">
<p>NicEdit is highly configurable by passing the configuration when you create the NicEditor. Pass your configuration when you call:</p>
<p>new NicEditor({CONFIG HERE})</p>
<p>Add .panelInstance('ID TO TEXTAREA HERE') to add the editor to the textarea.</p>
<p>See the examples below:</p>
</div>
<br />
<div id="sample">
<script src="../nicEdit.js" type="text/javascript"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function() {
new nicEditor().panelInstance('area1');
new nicEditor({fullPanel : true}).panelInstance('area2');
new nicEditor({iconsPath : '../nicEditorIcons.gif'}).panelInstance('area3');
new nicEditor({buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript','html','image']}).panelInstance('area4');
new nicEditor({maxHeight : 100}).panelInstance('area5');
});
</script>
<h4>Default (No Config Specified)</h4>
<p>new nicEditor().panelInstance('area1');</p>
<textarea cols="50" id="area1"></textarea>
<h4>All Available Buttons {fullPanel : true}</h4>
<p>new nicEditor({fullPanel : true}).panelInstance('area2');</p>
<textarea cols="60" id="area2">Some Initial Content was in this textarea</textarea>
<h4>Change Path to Icon File {iconsPath : 'path/to/nicEditorIcons.gif'}</h4>
<p>new nicEditor({iconsPath : 'nicEditorIcons.gif'}).panelInstance('area3');</p>
<textarea cols="50" id="area3"></textarea>
<h4>Customize the Panel Buttons/Select List</h4>
<p>{buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript']}</p>
<textarea cols="50" id="area4">HTML <b>content</b> <i>default</i> in textarea</textarea>
<h4>Set a maximum expansion size (maxHeight)</h4>
<p>{maxHeight : 100}</p>
<textarea style="height: 100px;" cols="50" id="area5">HTML <b>content</b> <i>default</i> in textarea</textarea>
</div>
</div>
</body>
</html> | zzh-simple-hr | ZJs/webapp/html-editor/NicEdit/demos/demo02.html | HTML | art | 1,966 |
<html>
<head>
<title>Demo 3 : Add/Remove NicEditors</title>
</head>
<body>
<div id="menu"></div>
<div id="intro">
<p>The demo below shows toggling the display of NicEditors on both textarea and div elements. NicEdit instances can be added and removed at any time</p>
</div>
<br />
<div id="sample">
<h4>Div Example</h4>
<div id="myArea1" style="width: 300px; height: 100px; border: 1px solid #000;">
This is some TEST CONTENT<br />
In a DIV Tag<br />
Click the Buttons to activate
</div>
<button onClick="toggleArea1();">Toggle DIV Editor</button>
<br /><br />
<h4>Textarea Example</h4>
<div>
<textarea style="width: 300px; height: 100px;" id="myArea2"></textarea>
<br />
<button onClick="addArea2();">Add Editor to TEXTAREA</button> <button onClick="removeArea2();">Remove Editor from TEXTAREA</button>
</div>
<div style="clear: both;"></div>
<script src="../nicEdit.js" type="text/javascript"></script>
<script>
var area1, area2;
function toggleArea1() {
if(!area1) {
area1 = new nicEditor({fullPanel : true}).panelInstance('myArea1',{hasPanel : true});
} else {
area1.removeInstance('myArea1');
area1 = null;
}
}
function addArea2() {
area2 = new nicEditor({fullPanel : true}).panelInstance('myArea2');
}
function removeArea2() {
area2.removeInstance('myArea2');
}
bkLib.onDomLoaded(function() { toggleArea1(); });
</script>
</div>
</body>
</html> | zzh-simple-hr | ZJs/webapp/html-editor/NicEdit/demos/demo03.html | HTML | art | 1,385 |
<html>
<head>
<title>Demo 1 : Convert All Textareas</title>
</head>
<body>
<div id="menu"></div>
<div id="intro">
By calling the nicEditors.allTextareas() function the below example replaces all 3 textareas on the page with nicEditors. NicEditors will match the size of the editor window with the size of the textarea it replaced.
</div>
<br />
<div id="sample">
<script type="text/javascript" src="../nicEdit.js"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
</script>
<h4>First Textarea</h4>
<textarea name="area1" cols="35"></textarea>
<br />
<h4>Second Textarea</h4>
<textarea name="area2" style="width: 100%;">
Some Initial Content was in this textarea
</textarea>
<br />
<h4>Third Textarea</h4>
<textarea name="area3" style="width: 300px; height: 100px;">
HTML <b>content</b> <i>default</i> in textarea
</textarea>
</div>
</body>
</html> | zzh-simple-hr | ZJs/webapp/html-editor/NicEdit/demos/demo01.html | HTML | art | 911 |
<html>
<head>
<title>Demo 4 : Inline NicEditors</title>
</head>
<body>
<div id="menu"></div>
<div id="intro">
<p>In addition to replacing textareas NicEdit instances can also replace any element (divs,spans,paragraphs,ect.) with editor instances without effecting the layout of the page. As you will see in other examples content can be saved via AJAX to the server or retrieved from javascript</p>
<p>To make use of Inline Editing you should first create an empty element as a placeholder for the Editor Panel. In this case I use a div with id="myNicPanel" set. Its usually a good idea to set a width on element but it is not required.</p>
</div>
<div id="sample">
<script src="../nicEdit.js" type="text/javascript"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function() {
var myNicEditor = new nicEditor();
myNicEditor.setPanel('myNicPanel');
myNicEditor.addInstance('myInstance1');
myNicEditor.addInstance('myInstance2');
myNicEditor.addInstance('myInstance3');
});
</script>
This is text above the Panel
<div id="myNicPanel" style="width: 525px;"></div>
This is text below the Panel
<br /><br />
<h4>Inline Div</h4>
<div id="myInstance1" style="font-size: 16px; background-color: #ccc; padding: 3px; border: 5px solid #000; width: 400px;">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed magna dolor, faucibus ac, iaculis non, cursus et, dui. Donec non urna. Aliquam volutpat ornare augue. Phasellus egestas, nisl fermentum porttitor rutrum, magna metus rutrum risus, id fringilla magna mi nec lorem. Etiam eget metus sed justo ultricies rhoncus. Praesent rhoncus arcu non dolor. Proin eu eros. Curabitur vehicula. Nulla vehicula lectus eget eros. Nulla vel nulla at dui dictum mollis. Etiam purus felis, pretium vel, eleifend id, consectetuer nec, purus. Vivamus pretium orci ac sapien. Etiam at tortor. Nunc tincidunt mi sed sapien. Etiam lacus pede, fermentum eu, blandit ac, congue eget, metus. Quisque sed sem. Mauris at sapien. Ut luctus.
</div>
<br />
<h4>Inline Span</h4>
<span id="myInstance2" style="display: block;">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed magna dolor, faucibus ac, iaculis non, cursus et, dui. Donec non urna. Aliquam volutpat ornare augue. Phasellus egestas, nisl fermentum porttitor rutrum, magna metus rutrum risus, id fringilla magna mi nec lorem. Etiam eget metus sed justo ultricies rhoncus. Praesent rhoncus arcu non dolor. Proin eu eros. Curabitur vehicula. Nulla vehicula lectus eget eros. Nulla vel nulla at dui dictum mollis. Etiam purus felis, pretium vel, eleifend id, consectetuer nec, purus. Vivamus pretium orci ac sapien. Etiam at tortor. Nunc tincidunt mi sed sapien. Etiam lacus pede, fermentum eu, blandit ac, congue eget, metus. Quisque sed sem. Mauris at sapien. Ut luctus.
</span>
<br />
<h4>Inline Paragraph</h4>
<p id="myInstance3" style="border: 1px solid #000;">This is some text that can be edited in the inline paragraph editor.</p>
</div>
</body>
</html>
| zzh-simple-hr | ZJs/webapp/html-editor/NicEdit/demos/demo04.html | HTML | art | 3,045 |
/**
* WYSIWYG - jQuery plugin 0.6
*
* Copyright (c) 2008-2009 Juan M Martinez
* http://plugins.jquery.com/project/jWYSIWYG
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* $Id: $
*/
(function( $ )
{
$.fn.document = function()
{
var element = this.get(0);
if ( element.nodeName.toLowerCase() == 'iframe' )
{
return element.contentWindow.document;
/*
return ( $.browser.msie )
? document.frames[element.id].document
: element.contentWindow.document // contentDocument;
*/
}
return this;
};
$.fn.documentSelection = function()
{
var element = this.get(0);
if ( element.contentWindow.document.selection )
return element.contentWindow.document.selection.createRange().text;
else
return element.contentWindow.getSelection().toString();
};
$.fn.wysiwyg = function( options )
{
if ( arguments.length > 0 && arguments[0].constructor == String )
{
var action = arguments[0].toString();
var params = [];
for ( var i = 1; i < arguments.length; i++ )
params[i - 1] = arguments[i];
if ( action in Wysiwyg )
{
return this.each(function()
{
$.data(this, 'wysiwyg')
.designMode();
Wysiwyg[action].apply(this, params);
});
}
else return this;
}
var controls = {};
/**
* If the user set custom controls, we catch it, and merge with the
* defaults controls later.
*/
if ( options && options.controls )
{
var controls = options.controls;
delete options.controls;
}
options = $.extend({
html : '<'+'?xml version="1.0" encoding="UTF-8"?'+'><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">STYLE_SHEET</head><body style="margin: 0px;">INITIAL_CONTENT</body></html>',
css : {},
debug : false,
autoSave : true, // http://code.google.com/p/jwysiwyg/issues/detail?id=11
rmUnwantedBr : true, // http://code.google.com/p/jwysiwyg/issues/detail?id=15
brIE : true,
controls : {},
messages : {}
}, options);
options.messages = $.extend(true, options.messages, Wysiwyg.MSGS_EN);
options.controls = $.extend(true, options.controls, Wysiwyg.TOOLBAR);
for ( var control in controls )
{
if ( control in options.controls )
$.extend(options.controls[control], controls[control]);
else
options.controls[control] = controls[control];
}
// not break the chain
return this.each(function()
{
Wysiwyg(this, options);
});
};
function Wysiwyg( element, options )
{
return this instanceof Wysiwyg
? this.init(element, options)
: new Wysiwyg(element, options);
}
$.extend(Wysiwyg, {
insertImage : function( szURL, attributes )
{
var self = $.data(this, 'wysiwyg');
if ( self.constructor == Wysiwyg && szURL && szURL.length > 0 )
{
if ($.browser.msie) self.focus();
if ( attributes )
{
self.editorDoc.execCommand('insertImage', false, '#jwysiwyg#');
var img = self.getElementByAttributeValue('img', 'src', '#jwysiwyg#');
if ( img )
{
img.src = szURL;
for ( var attribute in attributes )
{
img.setAttribute(attribute, attributes[attribute]);
}
}
}
else
{
self.editorDoc.execCommand('insertImage', false, szURL);
}
}
},
createLink : function( szURL )
{
var self = $.data(this, 'wysiwyg');
if ( self.constructor == Wysiwyg && szURL && szURL.length > 0 )
{
var selection = $(self.editor).documentSelection();
if ( selection.length > 0 )
{
if ($.browser.msie) self.focus();
self.editorDoc.execCommand('unlink', false, []);
self.editorDoc.execCommand('createLink', false, szURL);
}
else if ( self.options.messages.nonSelection )
alert(self.options.messages.nonSelection);
}
},
insertHtml : function( szHTML )
{
var self = $.data(this, 'wysiwyg');
if ( self.constructor == Wysiwyg && szHTML && szHTML.length > 0 )
{
if ($.browser.msie)
{
self.focus();
self.editorDoc.execCommand('insertImage', false, '#jwysiwyg#');
var img = self.getElementByAttributeValue('img', 'src', '#jwysiwyg#');
if (img)
{
$(img).replaceWith(szHTML);
}
}
else
{
self.editorDoc.execCommand('insertHTML', false, szHTML);
}
}
},
setContent : function( newContent )
{
var self = $.data(this, 'wysiwyg');
self.setContent( newContent );
self.saveContent();
},
clear : function()
{
var self = $.data(this, 'wysiwyg');
self.setContent('');
self.saveContent();
},
MSGS_EN : {
nonSelection : 'select the text you wish to link'
},
TOOLBAR : {
bold : { visible : true, tags : ['b', 'strong'], css : { fontWeight : 'bold' }, tooltip : "Bold" },
italic : { visible : true, tags : ['i', 'em'], css : { fontStyle : 'italic' }, tooltip : "Italic" },
strikeThrough : { visible : true, tags : ['s', 'strike'], css : { textDecoration : 'line-through' }, tooltip : "Strike-through" },
underline : { visible : true, tags : ['u'], css : { textDecoration : 'underline' }, tooltip : "Underline" },
separator00 : { visible : true, separator : true },
justifyLeft : { visible : true, css : { textAlign : 'left' }, tooltip : "Justify Left" },
justifyCenter : { visible : true, tags : ['center'], css : { textAlign : 'center' }, tooltip : "Justify Center" },
justifyRight : { visible : true, css : { textAlign : 'right' }, tooltip : "Justify Right" },
justifyFull : { visible : true, css : { textAlign : 'justify' }, tooltip : "Justify Full" },
separator01 : { visible : true, separator : true },
indent : { visible : true, tooltip : "Indent" },
outdent : { visible : true, tooltip : "Outdent" },
separator02 : { visible : false, separator : true },
subscript : { visible : true, tags : ['sub'], tooltip : "Subscript" },
superscript : { visible : true, tags : ['sup'], tooltip : "Superscript" },
separator03 : { visible : true, separator : true },
undo : { visible : true, tooltip : "Undo" },
redo : { visible : true, tooltip : "Redo" },
separator04 : { visible : true, separator : true },
insertOrderedList : { visible : true, tags : ['ol'], tooltip : "Insert Ordered List" },
insertUnorderedList : { visible : true, tags : ['ul'], tooltip : "Insert Unordered List" },
insertHorizontalRule : { visible : true, tags : ['hr'], tooltip : "Insert Horizontal Rule" },
separator05 : { separator : true },
createLink : {
visible : true,
exec : function()
{
var selection = $(this.editor).documentSelection();
if ( selection.length > 0 )
{
if ( $.browser.msie )
{
this.focus();
this.editorDoc.execCommand('createLink', true, null);
}
else
{
var szURL = prompt('URL', 'http://');
if ( szURL && szURL.length > 0 )
{
this.editorDoc.execCommand('unlink', false, []);
this.editorDoc.execCommand('createLink', false, szURL);
}
}
}
else if ( this.options.messages.nonSelection )
alert(this.options.messages.nonSelection);
},
tags : ['a'],
tooltip : "Create link"
},
insertImage : {
visible : true,
exec : function()
{
if ( $.browser.msie )
{
this.focus();
this.editorDoc.execCommand('insertImage', true, null);
}
else
{
var szURL = prompt('URL', 'http://');
if ( szURL && szURL.length > 0 )
this.editorDoc.execCommand('insertImage', false, szURL);
}
},
tags : ['img'],
tooltip : "Insert image"
},
separator06 : { separator : true },
h1mozilla : { visible : true && $.browser.mozilla, className : 'h1', command : 'heading', arguments : ['h1'], tags : ['h1'], tooltip : "Header 1" },
h2mozilla : { visible : true && $.browser.mozilla, className : 'h2', command : 'heading', arguments : ['h2'], tags : ['h2'], tooltip : "Header 2" },
h3mozilla : { visible : true && $.browser.mozilla, className : 'h3', command : 'heading', arguments : ['h3'], tags : ['h3'], tooltip : "Header 3" },
h1 : { visible : true && !( $.browser.mozilla ), className : 'h1', command : 'formatBlock', arguments : ['<H1>'], tags : ['h1'], tooltip : "Header 1" },
h2 : { visible : true && !( $.browser.mozilla ), className : 'h2', command : 'formatBlock', arguments : ['<H2>'], tags : ['h2'], tooltip : "Header 2" },
h3 : { visible : true && !( $.browser.mozilla ), className : 'h3', command : 'formatBlock', arguments : ['<H3>'], tags : ['h3'], tooltip : "Header 3" },
separator07 : { visible : false, separator : true },
cut : { visible : false, tooltip : "Cut" },
copy : { visible : false, tooltip : "Copy" },
paste : { visible : false, tooltip : "Paste" },
separator08 : { separator : false && !( $.browser.msie ) },
increaseFontSize : { visible : false && !( $.browser.msie ), tags : ['big'], tooltip : "Increase font size" },
decreaseFontSize : { visible : false && !( $.browser.msie ), tags : ['small'], tooltip : "Decrease font size" },
separator09 : { separator : true },
html : {
visible : false,
exec : function()
{
if ( this.viewHTML )
{
this.setContent( $(this.original).val() );
$(this.original).hide();
}
else
{
this.saveContent();
$(this.original).show();
}
this.viewHTML = !( this.viewHTML );
},
tooltip : "View source code"
},
removeFormat : {
visible : true,
exec : function()
{
if ($.browser.msie) this.focus();
this.editorDoc.execCommand('removeFormat', false, []);
this.editorDoc.execCommand('unlink', false, []);
},
tooltip : "Remove formatting"
}
}
});
$.extend(Wysiwyg.prototype,
{
original : null,
options : {},
element : null,
editor : null,
focus : function()
{
$(this.editorDoc.body).focus();
},
init : function( element, options )
{
var self = this;
this.editor = element;
this.options = options || {};
$.data(element, 'wysiwyg', this);
var newX = element.width || element.clientWidth;
var newY = element.height || element.clientHeight;
if ( element.nodeName.toLowerCase() == 'textarea' )
{
this.original = element;
if ( newX == 0 && element.cols )
newX = ( element.cols * 8 ) + 21;
if ( newY == 0 && element.rows )
newY = ( element.rows * 16 ) + 16;
var editor = this.editor = $('<iframe src="javascript:false;"></iframe>').css({
minHeight : ( newY - 6 ).toString() + 'px',
width : ( newX - 8 ).toString() + 'px'
}).attr('id', $(element).attr('id') + 'IFrame')
.attr('frameborder', '0');
/**
* http://code.google.com/p/jwysiwyg/issues/detail?id=96
*/
this.editor.attr('tabindex', $(element).attr('tabindex'));
if ( $.browser.msie )
{
this.editor
.css('height', ( newY ).toString() + 'px');
/**
var editor = $('<span></span>').css({
width : ( newX - 6 ).toString() + 'px',
height : ( newY - 8 ).toString() + 'px'
}).attr('id', $(element).attr('id') + 'IFrame');
editor.outerHTML = this.editor.outerHTML;
*/
}
}
var panel = this.panel = $('<ul role="menu" class="panel"></ul>');
this.appendControls();
this.element = $('<div></div>').css({
width : ( newX > 0 ) ? ( newX ).toString() + 'px' : '100%'
}).addClass('wysiwyg')
.append(panel)
.append( $('<div><!-- --></div>').css({ clear : 'both' }) )
.append(editor)
;
$(element)
.hide()
.before(this.element)
;
this.viewHTML = false;
this.initialHeight = newY - 8;
/**
* @link http://code.google.com/p/jwysiwyg/issues/detail?id=52
*/
this.initialContent = $(element).val();
this.initFrame();
if ( this.initialContent.length == 0 )
this.setContent('');
/**
* http://code.google.com/p/jwysiwyg/issues/detail?id=100
*/
var form = $(element).closest('form');
if ( this.options.autoSave )
{
form.submit(function() { self.saveContent(); });
}
form.bind('reset', function()
{
self.setContent( self.initialContent );
self.saveContent();
});
},
initFrame : function()
{
var self = this;
var style = '';
/**
* @link http://code.google.com/p/jwysiwyg/issues/detail?id=14
*/
if ( this.options.css && this.options.css.constructor == String )
{
style = '<link rel="stylesheet" type="text/css" media="screen" href="' + this.options.css + '" />';
}
this.editorDoc = $(this.editor).document();
this.editorDoc_designMode = false;
try {
this.editorDoc.designMode = 'on';
this.editorDoc_designMode = true;
} catch ( e ) {
// Will fail on Gecko if the editor is placed in an hidden container element
// The design mode will be set ones the editor is focused
$(this.editorDoc).focus(function()
{
self.designMode();
});
}
this.editorDoc.open();
this.editorDoc.write(
this.options.html
/**
* @link http://code.google.com/p/jwysiwyg/issues/detail?id=144
*/
.replace(/INITIAL_CONTENT/, function() { return self.initialContent; })
.replace(/STYLE_SHEET/, function() { return style; })
);
this.editorDoc.close();
this.editorDoc.contentEditable = 'true';
if ( $.browser.msie )
{
/**
* Remove the horrible border it has on IE.
*/
setTimeout(function() { $(self.editorDoc.body).css('border', 'none'); }, 0);
}
$(this.editorDoc).click(function( event )
{
self.checkTargets( event.target ? event.target : event.srcElement);
});
/**
* @link http://code.google.com/p/jwysiwyg/issues/detail?id=20
*/
$(this.original).focus(function()
{
if (!$.browser.msie)
{
self.focus();
}
});
if ( this.options.autoSave )
{
/**
* @link http://code.google.com/p/jwysiwyg/issues/detail?id=11
*/
$(this.editorDoc).keydown(function() { self.saveContent(); })
.keyup(function() { self.saveContent(); })
.mousedown(function() { self.saveContent(); });
}
if ( this.options.css )
{
setTimeout(function()
{
if ( self.options.css.constructor == String )
{
/**
* $(self.editorDoc)
* .find('head')
* .append(
* $('<link rel="stylesheet" type="text/css" media="screen" />')
* .attr('href', self.options.css)
* );
*/
}
else
$(self.editorDoc).find('body').css(self.options.css);
}, 0);
}
$(this.editorDoc).keydown(function( event )
{
if ( $.browser.msie && self.options.brIE && event.keyCode == 13 )
{
var rng = self.getRange();
rng.pasteHTML('<br />');
rng.collapse(false);
rng.select();
return false;
}
return true;
});
},
designMode : function()
{
if ( !( this.editorDoc_designMode ) )
{
try {
this.editorDoc.designMode = 'on';
this.editorDoc_designMode = true;
} catch ( e ) {}
}
},
getSelection : function()
{
return ( window.getSelection ) ? window.getSelection() : document.selection;
},
getRange : function()
{
var selection = this.getSelection();
if ( !( selection ) )
return null;
return ( selection.rangeCount > 0 ) ? selection.getRangeAt(0) : selection.createRange();
},
getContent : function()
{
return $( $(this.editor).document() ).find('body').html();
},
setContent : function( newContent )
{
$( $(this.editor).document() ).find('body').html(newContent);
},
saveContent : function()
{
if ( this.original )
{
var content = this.getContent();
if ( this.options.rmUnwantedBr )
{
content = ( content.substr(-4) == '<br>' ) ? content.substr(0, content.length - 4) : content;
}
$(this.original).val(content);
}
},
withoutCss: function()
{
if ($.browser.mozilla)
{
try
{
this.editorDoc.execCommand('styleWithCSS', false, false);
}
catch (e)
{
try
{
this.editorDoc.execCommand('useCSS', false, true);
}
catch (e)
{
}
}
}
},
appendMenu : function( cmd, args, className, fn, tooltip )
{
var self = this;
args = args || [];
$('<li></li>').append(
$('<a role="menuitem" tabindex="-1" href="javascript:;">' + (className || cmd) + '</a>')
.addClass(className || cmd)
.attr('title', tooltip)
).click(function() {
if ( fn ) fn.apply(self); else
{
self.withoutCss();
self.editorDoc.execCommand(cmd, false, args);
}
if ( self.options.autoSave ) self.saveContent();
}).appendTo( this.panel );
},
appendMenuSeparator : function()
{
$('<li role="separator" class="separator"></li>').appendTo( this.panel );
},
appendControls : function()
{
for ( var name in this.options.controls )
{
var control = this.options.controls[name];
if ( control.separator )
{
if ( control.visible !== false )
this.appendMenuSeparator();
}
else if ( control.visible )
{
this.appendMenu(
control.command || name, control.arguments || [],
control.className || control.command || name || 'empty', control.exec,
control.tooltip || control.command || name || ''
);
}
}
},
checkTargets : function( element )
{
for ( var name in this.options.controls )
{
var control = this.options.controls[name];
var className = control.className || control.command || name || 'empty';
$('.' + className, this.panel).removeClass('active');
if ( control.tags )
{
var elm = element;
do {
if ( elm.nodeType != 1 )
break;
if ( $.inArray(elm.tagName.toLowerCase(), control.tags) != -1 )
$('.' + className, this.panel).addClass('active');
} while ((elm = elm.parentNode));
}
if ( control.css )
{
var elm = $(element);
do {
if ( elm[0].nodeType != 1 )
break;
for ( var cssProperty in control.css )
if ( elm.css(cssProperty).toString().toLowerCase() == control.css[cssProperty] )
$('.' + className, this.panel).addClass('active');
} while ((elm = elm.parent()));
}
}
},
getElementByAttributeValue : function( tagName, attributeName, attributeValue )
{
var elements = this.editorDoc.getElementsByTagName(tagName);
for ( var i = 0; i < elements.length; i++ )
{
var value = elements[i].getAttribute(attributeName);
if ( $.browser.msie )
{
/** IE add full path, so I check by the last chars. */
value = value.substr(value.length - attributeValue.length);
}
if ( value == attributeValue )
return elements[i];
}
return false;
}
});
})(jQuery);
| zzh-simple-hr | ZJs/webapp/html-editor/jwysiwyg/jwysiwyg/jquery.wysiwyg.js | JavaScript | art | 25,636 |
div.wysiwyg { border: 1px solid #cccccc; padding: 5px; background-color: #ffffff; }
div.wysiwyg * { margin: 0; padding: 0; }
div.wysiwyg ul.panel { border-bottom: 1px solid #cccccc; float: left; width: 100%; padding: 0 0 0 0; }
div.wysiwyg ul.panel li { list-style-type: none; float: left; margin: 1px 2px 3px 0; background: #ffffff;}
div.wysiwyg ul.panel li.separator { height: 16px; margin: 0 4px; border-left: 1px solid #cccccc; }
div.wysiwyg ul.panel li a { text-indent: -5000px; opacity: 0.85; filter:alpha(opacity=85); display: block; width: 16px; height: 16px; background: url('jquery.wysiwyg.gif') no-repeat -64px -80px; border: 0; cursor: pointer; padding: 1px; }
div.wysiwyg ul.panel li a:hover, div.wysiwyg ul.panel li a.active { opacity: 1.00; filter:alpha(opacity=100); }
div.wysiwyg ul.panel li a.active { background-color: #f9f9f9; border: 1px solid #cccccc; border-left-color: #aaaaaa; border-top-color: #aaaaaa; padding: 0; }
div.wysiwyg ul.panel li a.bold { background-position: 0 -16px; }
div.wysiwyg ul.panel li a.italic { background-position: -16px -16px; }
div.wysiwyg ul.panel li a.strikeThrough { background-position: -32px -16px; }
div.wysiwyg ul.panel li a.underline { background-position: -48px -16px; }
div.wysiwyg ul.panel li a.justifyLeft { background-position: 0 0; }
div.wysiwyg ul.panel li a.justifyCenter { background-position: -16px 0; }
div.wysiwyg ul.panel li a.justifyRight { background-position: -32px 0; }
div.wysiwyg ul.panel li a.justifyFull { background-position: -48px 0; }
div.wysiwyg ul.panel li a.indent { background-position: -64px 0; }
div.wysiwyg ul.panel li a.outdent { background-position: -80px 0; }
div.wysiwyg ul.panel li a.subscript { background-position: -64px -16px; }
div.wysiwyg ul.panel li a.superscript { background-position: -80px -16px; }
div.wysiwyg ul.panel li a.undo { background-position: 0 -64px; }
div.wysiwyg ul.panel li a.redo { background-position: -16px -64px; }
div.wysiwyg ul.panel li a.insertOrderedList { background-position: -32px -48px; }
div.wysiwyg ul.panel li a.insertUnorderedList { background-position: -16px -48px; }
div.wysiwyg ul.panel li a.insertHorizontalRule { background-position: 0 -48px; }
div.wysiwyg ul.panel li a.h1 { background-position: 0 -32px; }
div.wysiwyg ul.panel li a.h2 { background-position: -16px -32px; }
div.wysiwyg ul.panel li a.h3 { background-position: -32px -32px; }
div.wysiwyg ul.panel li a.h4 { background-position: -48px -32px; }
div.wysiwyg ul.panel li a.h5 { background-position: -64px -32px; }
div.wysiwyg ul.panel li a.h6 { background-position: -80px -32px; }
div.wysiwyg ul.panel li a.cut { background-position: -32px -64px; }
div.wysiwyg ul.panel li a.copy { background-position: -48px -64px; }
div.wysiwyg ul.panel li a.paste { background-position: -64px -64px; }
div.wysiwyg ul.panel li a.increaseFontSize { background-position: -16px -80px; }
div.wysiwyg ul.panel li a.decreaseFontSize { background-position: -32px -80px; }
div.wysiwyg ul.panel li a.createLink { background-position: -80px -48px; }
div.wysiwyg ul.panel li a.insertImage { background-position: -80px -80px; }
div.wysiwyg ul.panel li a.html { background-position: -47px -46px; }
div.wysiwyg ul.panel li a.removeFormat { background-position: -80px -63px; }
div.wysiwyg ul.panel li a.empty { background-position: -64px -80px; }
div.wysiwyg iframe { border: 0; clear: left; margin: 4px 0 0 1px; } | zzh-simple-hr | ZJs/webapp/html-editor/jwysiwyg/jwysiwyg/jquery.wysiwyg.css | CSS | art | 3,402 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>Example: Basic - jWYSIWYG</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="../jwysiwyg/jquery.wysiwyg.css" type="text/css" />
<link rel="stylesheet" href="examples.css" type="text/css" />
<script type="text/javascript" src="../jquery/jquery-1.3.2.js"></script>
<script type="text/javascript" src="../jwysiwyg/jquery.wysiwyg.js"></script>
<script type="text/javascript">
$(function()
{
$('#wysiwyg').wysiwyg();
});
</script>
</head>
<body>
<h1>jWYSIWYG</h1>
<h2>Example: Basic</h2>
<div>
<textarea name="wysiwyg" id="wysiwyg" rows="5" cols="47"></textarea>
</div>
</body>
</html> | zzh-simple-hr | ZJs/webapp/html-editor/jwysiwyg/examples/01-basic.html | HTML | art | 860 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>Examples - jWYSIWYG</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<h1>jWYSIWYG</h1>
<ul>
<li><a href="01-basic.html">Basic</a></li>
<li><a href="02-full.html">Full</a></li>
</ul>
</body>
</html> | zzh-simple-hr | ZJs/webapp/html-editor/jwysiwyg/examples/index.html | HTML | art | 443 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>Example: Full - jWYSIWYG</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="../jwysiwyg/jquery.wysiwyg.css" type="text/css" />
<link rel="stylesheet" href="examples.css" type="text/css" />
</head>
<body>
<h1>jWYSIWYG</h1>
<h2>Example: Full</h2>
<noscript>Enable JavaScript to use WYSIWYG features.</noscript>
<div>
<textarea name="wysiwyg" id="wysiwyg" rows="5" cols="103"></textarea>
</div>
<script type="text/javascript" src="../jquery/jquery-1.3.2.js"></script>
<script type="text/javascript" src="../jwysiwyg/jquery.wysiwyg.js"></script>
<script type="text/javascript">
(function($)
{
$('#wysiwyg').wysiwyg({
controls: {
strikeThrough : { visible : true },
underline : { visible : true },
separator00 : { visible : true },
justifyLeft : { visible : true },
justifyCenter : { visible : true },
justifyRight : { visible : true },
justifyFull : { visible : true },
separator01 : { visible : true },
indent : { visible : true },
outdent : { visible : true },
separator02 : { visible : true },
subscript : { visible : true },
superscript : { visible : true },
separator03 : { visible : true },
undo : { visible : true },
redo : { visible : true },
separator04 : { visible : true },
insertOrderedList : { visible : true },
insertUnorderedList : { visible : true },
insertHorizontalRule : { visible : true },
h4mozilla : { visible : true && $.browser.mozilla, className : 'h4', command : 'heading', arguments : ['h4'], tags : ['h4'], tooltip : "Header 4" },
h5mozilla : { visible : true && $.browser.mozilla, className : 'h5', command : 'heading', arguments : ['h5'], tags : ['h5'], tooltip : "Header 5" },
h6mozilla : { visible : true && $.browser.mozilla, className : 'h6', command : 'heading', arguments : ['h6'], tags : ['h6'], tooltip : "Header 6" },
h4 : { visible : true && !( $.browser.mozilla ), className : 'h4', command : 'formatBlock', arguments : ['<H4>'], tags : ['h4'], tooltip : "Header 4" },
h5 : { visible : true && !( $.browser.mozilla ), className : 'h5', command : 'formatBlock', arguments : ['<H5>'], tags : ['h5'], tooltip : "Header 5" },
h6 : { visible : true && !( $.browser.mozilla ), className : 'h6', command : 'formatBlock', arguments : ['<H6>'], tags : ['h6'], tooltip : "Header 6" },
separator07 : { visible : true },
cut : { visible : true },
copy : { visible : true },
paste : { visible : true }
}
});
})(jQuery);
</script>
</body>
</html> | zzh-simple-hr | ZJs/webapp/html-editor/jwysiwyg/examples/02-full.html | HTML | art | 2,983 |
div {
border: 1px dotted ActiveBorder;
} | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Template/template.css | CSS | art | 43 |
// Template plugin for Xinha
// Implementation by Udo Schmal based on HTMLArea 3.0
// Original Author - Udo Schmal www.Schaffrath-NeueMedien.de
//
// (c) Udo Schmal & Schaffrath NeueMedien 2004
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
function Template(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
// register the toolbar buttons provided by this plugin
cfg.registerButton({
id : "template",
tooltip : Xinha._lc("Insert template","Template"),
image : editor.imgURL("ed_template.gif", "Template"),
textMode : false,
action : function(editor) {
self.buttonPress(editor);
}
});
cfg.addToolbarElement("template", "inserthorizontalrule", 1);
}
Template._pluginInfo = {
name : "Template",
version : "1.0",
developer : "Udo Schmal",
developer_url : "http://www.schaffrath-neuemedien.de/",
c_owner : "Udo Schmal & Schaffrath NeueMedien",
license : "htmlArea"
};
Template.prototype.onGenerate = function() {
this.editor.addEditorStylesheet(Xinha.getPluginDir("Template") + '/template.css');
};
Template.prototype.buttonPress = function(editor) {
editor._popupDialog( "plugin://Template/template", function( obj ) {
if ( !obj ) {//user must have pressed Cancel
return false;
}
var bodys = editor._doc.getElementsByTagName("body");
var body = bodys[0];
function getElement(x) {
var result = editor._doc.getElementById(x);
if (!result) {
result = editor._doc.createElement("div");
result.id = x;
result.innerHTML = x;
body.appendChild(result);
}
if (result.style)
result.removeAttribute("style");
return result;
}
var content = getElement("content");
var menu1 = getElement("menu1");
var menu2 = getElement("menu2");
var menu3 = getElement("menu3");
switch (obj["templ"]) {
case "1": menu1.style.position = "absolute";
menu1.style.right = "0px";
menu1.style.width = "28%";
menu1.style.backgroundColor = "#e1ddd9";
menu1.style.padding = "2px 20px";
content.style.position = "absolute";
content.style.left = "0px";
content.style.width = "70%";
content.style.backgroundColor = "#fff";
menu2.style.visibility = "hidden";
menu3.style.visibility = "hidden";
break;
case "2": menu1.style.position = "absolute";
menu1.style.left = "0px";
menu1.style.width = "28%";
menu1.style.height = "100%";
menu1.style.backgroundColor = "#e1ddd9";
content.style.position = "absolute";
content.style.right = "0px";
content.style.width = "70%";
content.style.backgroundColor = "#fff";
menu2.style.visibility = "hidden";
menu3.style.visibility = "hidden";
break
case "3": menu1.style.position = "absolute";
menu1.style.left = "0px";
menu1.style.width = "28%";
menu1.style.backgroundColor = "#e1ddd9";
menu2.style.position = "absolute";
menu2.style.right = "0px";
menu2.style.width = "28%";
menu2.style.backgroundColor = "#e1ddd9";
content.style.position = "absolute";
content.style.right = "30%";
content.style.width = "60%";
content.style.backgroundColor = "#fff";
menu3.style.visibility = "hidden";
break
}
}, null);
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Template/Template.js | JavaScript | art | 3,907 |
// I18N constants
// LANG: "nl", ENCODING: UTF-8
// Author: Maarten Molenschot, maarten@nrgmm.nl
{
"Insert template": "Template invoegen",
"Cancel": "Annuleren"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Template/lang/nl.js | JavaScript | art | 173 |
// I18N constants
// LANG: "it", ENCODING: UTF-8 | ISO-8859-1
{
"Insert template": "Inserisca il template",
"Cancel": "Annullamento"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Template/lang/it.js | JavaScript | art | 144 |
// I18N constants
// LANG: "de", ENCODING: UTF-8 | ISO-8859-1
// Author: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de
{
"Insert template": "Template einfügen",
"Cancel": "Abbrechen"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Template/lang/de.js | JavaScript | art | 232 |
// I18N constants
// LANG: "fr", ENCODING: UTF-8
{
"Insert template": "Insérer un template",
"Cancel": "Annulation"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Template/lang/fr.js | JavaScript | art | 128 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"Insert template" : "テンプレートの挿入",
"Cancel" : "中止"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Template/lang/ja.js | JavaScript | art | 153 |
// I18N constants
// LANG: "nb", ENCODING: UTF-8
// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
{
"Insert template": "Sett inn template",
"Cancel": "Avbryt"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Template/lang/nb.js | JavaScript | art | 191 |
// I18N constants
//
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
//
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
//
// Last revision: 06 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
//
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"Insert template" : "Inserir modelo",
"Cancel" : "Cancelar"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Template/lang/pt_br.js | JavaScript | art | 588 |
<html>
<head>
<title>Insert template</title>
<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
<script type="text/javascript" src="../../../popups/popup.js"></script>
<script type="text/javascript">
function Init() {
__dlg_translate("Template");
__dlg_init();
window.resizeTo(400, 200);
document.getElementById("cancel").focus();
}
function onOK(sel) {
// pass data back to the calling window
var param = new Object();
param["templ"] = sel;
__dlg_close(param);
return false;
}
function onCancel() {
__dlg_close(null);
return false;
}
</script>
</head>
<body class="dialog" onload="Init()">
<div class="title">Insert template</div>
<form>
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td style="text-align: center; vertical-align: top;"><a href="javascript:;" onClick="onOK('1');">
<img src="../img/layout_01.gif" alt="" width="106" height="68" border="0" /></a>
</td>
<td style="text-align: center; vertical-align: top;"><a href="javascript:;" onClick="onOK('2');">
<img src="../img/layout_02.gif" alt="" width="106" height="68" border="0" /></a>
</td>
<td style="text-align: center; vertical-align: top;"><a href="javascript:;" onClick="onOK('3');">
<img src="../img/layout_03.gif" alt="" width="106" height="68" border="0" /></a><br/>
</td>
</tr>
</table>
<div id="buttons">
<button type="button" name="cancel" id="cancel" onclick="return onCancel();">Cancel</button>
</div>
</form>
</body>
</html> | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Template/popups/template.html | HTML | art | 1,538 |
<?php
##
## Plugin for htmlArea, to run code through the server's HTML Tidy
## By Adam Wright, for The University of Western Australia
## This is the server-side script, which dirty code is run through.
##
## Distributed under the same terms as HTMLArea itself.
## This notice MUST stay intact for use (see license.txt).
##
// Get the original source
$source = $_POST['htisource_name'];
$source = stripslashes($source);
$cwd = str_replace("\\","/",getcwd())."/";
// Open a tidy process - I hope it's installed!
$descriptorspec = array(
0 => array("pipe", "r"),
1 => array("pipe", "w")
);
$process = @proc_open("tidy -utf8 -config {$cwd}html-tidy-config.cfg", $descriptorspec, $pipes);
// Make sure the program started and we got the hooks...
// Either way, get some source code into $source
if (is_resource($process)) {
// Feed untidy source into the stdin
fwrite($pipes[0], $source);
fclose($pipes[0]);
// Read clean source out to the browser
while (!feof($pipes[1])) {
//echo fgets($pipes[1], 1024);
$newsrc .= fgets($pipes[1], 1024);
}
fclose($pipes[1]);
// Clean up after ourselves
proc_close($process);
} else {
/* Use tidy if it's available from PECL */
if( function_exists('tidy_parse_string') )
{
$tempsrc = tidy_parse_string($source);
tidy_clean_repair();
$newsrc = tidy_get_output();
}
else
{
// Better give them back what they came with, so they don't lose it all...
$newsrc = "<body>\n" .$source. "\n</body>";
}
}
// Split our source into an array by lines
$srcLines = preg_split("/\n/",$newsrc,-1,PREG_SPLIT_NO_EMPTY);
// Get only the lines between the body tags
$startLn = 0;
while ( strpos( $srcLines[$startLn++], '<body' ) === false && $startLn < sizeof($srcLines) );
$endLn = $startLn;
while ( strpos( $srcLines[$endLn++], '</body' ) === false && $endLn < sizeof($srcLines) );
$srcLines = array_slice( $srcLines, $startLn, ($endLn - $startLn - 1) );
// Create a set of javascript code to compile a new source string
foreach ($srcLines as $line) {
$jsMakeSrc .= "\tns += '" . str_replace("'","\'",$line) . "\\n';\n";
}
if(!sizeof($srcLines)) {
echo "alert(HTMLArea._lc('Tidy failed. Check your HTML for syntax errors.', 'HtmlTidy'));\n";
} else {
?>
var ns="";
<?php echo $jsMakeSrc; ?>
editor.setHTML(ns);
<? } ?> | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/HtmlTidy/html-tidy-logic.php | PHP | art | 2,371 |
// I18N constants
// LANG: "nl", ENCODING: UTF-8
{
"HT-html-tidy": "HTML opschonen"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/HtmlTidy/lang/nl.js | JavaScript | art | 88 |
// I18N constants
// LANG: "de", ENCODING: UTF-8
// Author: Raimund Meyer ray@ray-of-light.org
{
"HTML Tidy": "HTML Tidy",
"Tidy failed. Check your HTML for syntax errors.": "Tidy fehlgeschlagen. Prüfen Sie den HTML Code nach Syntax-Fehlern."
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/HtmlTidy/lang/de.js | JavaScript | art | 253 |
// I18N constants
// LANG: "fr", ENCODING: UTF-8
{
"HTML Tidy": "HTML Tidy",
"Auto-Tidy": "Tidy automatique",
"Don't Tidy": "Tidy non utilisé",
"Tidy failed. Check your HTML for syntax errors.": "Tidy a échoué. Vérifiez votre HTML for des erreurs de syntaxe"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/HtmlTidy/lang/fr.js | JavaScript | art | 274 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"HTML Tidy": "HTML Tidy",
"Auto-Tidy": "自動適正化",
"Don't Tidy": "適正化しない",
"Tidy failed. Check your HTML for syntax errors.":"適正化に失敗しました。HTMLの文法エラーを確認してください。"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/HtmlTidy/lang/ja.js | JavaScript | art | 294 |
// I18N constants
// LANG: "nb", ENCODING: UTF-8
// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
{
"HTML Tidy": "HTML Tidy",
"Tidy failed. Check your HTML for syntax errors.": "Tidy feilet. Sjekk HTML koden for syntaksfeil."
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/HtmlTidy/lang/nb.js | JavaScript | art | 259 |
// I18N constants
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
// Last revision: 05 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"Auto-Tidy": "Auto-Tidy",
"Don't Tidy": "Sem Tidy",
"HTML Tidy": "HTML Tidy",
"Tidy failed. Check your HTML for syntax errors.": "Tidy falhou. Verifique erros de sintaxe em seu HTML."
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/HtmlTidy/lang/pt_br.js | JavaScript | art | 684 |
// Plugin for htmlArea to run code through the server's HTML Tidy
// By Adam Wright, for The University of Western Australia
//
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
function HtmlTidy(editor) {
this.editor = editor;
var cfg = editor.config;
var bl = HtmlTidy.btnList;
var self = this;
this.onMode = this.__onMode;
// register the toolbar buttons provided by this plugin
var toolbar = [];
for (var i = 0; i < bl.length; ++i) {
var btn = bl[i];
if (btn == "html-tidy") {
var id = "HT-html-tidy";
cfg.registerButton(id, this._lc("HTML Tidy"), editor.imgURL(btn[0] + ".gif", "HtmlTidy"), true,
function(editor, id) {
// dispatch button press event
self.buttonPress(editor, id);
}, btn[1]);
toolbar.push(id);
} else if (btn == "html-auto-tidy") {
var btnTxt = [this._lc("Auto-Tidy"), this._lc("Don't Tidy")];
var optionItems = new Object();
optionItems[btnTxt[0]] = "auto";
optionItems[btnTxt[1]] = "noauto";
var ht_class = {
id : "HT-auto-tidy",
options : optionItems,
action : function (editor) { self.__onSelect(editor, this); },
refresh : function (editor) { },
context : "body"
};
cfg.registerDropdown(ht_class);
}
}
for (var i in toolbar) {
cfg.toolbar[0].push(toolbar[i]);
}
}
HtmlTidy._pluginInfo = {
name : "HtmlTidy",
version : "1.0",
developer : "Adam Wright",
developer_url : "http://blog.hipikat.org/",
sponsor : "The University of Western Australia",
sponsor_url : "http://www.uwa.edu.au/",
license : "htmlArea"
};
HtmlTidy.prototype._lc = function(string) {
return Xinha._lc(string, 'HtmlTidy');
};
HtmlTidy.prototype.__onSelect = function(editor, obj) {
// Get the toolbar element object
var elem = editor._toolbarObjects[obj.id].element;
// Set our onMode event appropriately
if (elem.value == "auto")
this.onMode = this.__onMode;
else
this.onMode = null;
};
HtmlTidy.prototype.__onMode = function(mode) {
if ( mode == "textmode" ) {
this.buttonPress(this.editor, "HT-html-tidy");
}
};
HtmlTidy.btnList = [
null, // separator
["html-tidy"],
["html-auto-tidy"]
];
HtmlTidy.prototype.buttonPress = function(editor, id) {
switch (id)
{
case "HT-html-tidy":
{
var oldhtml = editor.getHTML();
if(oldhtml=="") break; //don't clean empty text
// Ask the server for some nice new html, based on the old...
Xinha._postback(Xinha.getPluginDir("HtmlTidy") + '/html-tidy-logic.php', {'htisource_name' : oldhtml},
function(javascriptResponse) { eval(javascriptResponse) });
}
break;
}
};
HtmlTidy.prototype.processTidied = function(newSrc) {
editor = this.editor;
editor.setHTML(newSrc);
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/HtmlTidy/HtmlTidy.js | JavaScript | art | 2,868 |
// BackgroundImage plugin for Xinha
// Sponsored by http://www.schaffrath-neuemedien.de
// Implementation by Udo Schmal
// based on TinyMCE (http://tinymce.moxiecode.com/) Distributed under LGPL by Moxiecode Systems AB
//
// Distributed under the same terms as Xinha itself.
// This notice MUST stay intact for use (see license.txt).
function BackgroundImage(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
cfg.registerButton({
id : "bgImage",
tooltip : Xinha._lc("Set page background image", 'BackgroundImage'),
image : editor.imgURL("ed_bgimage.gif", "BackgroundImage"),
textMode : false,
action : function(editor) {
self.show();
}
})
cfg.addToolbarElement("bgImage", "inserthorizontalrule", 1);
}
BackgroundImage._pluginInfo = {
name : "BackgroundImage",
version : "1.0",
developer : "Udo Schmal",
developer_url : "http://www.schaffrath-neuemedien.de/",
c_owner : "Udo Schmal & Schaffrath NeueMedien",
sponsor : "L.N.Schaffrath NeueMedien",
sponsor_url : "http://www.schaffrath-neuemedien.de.de/",
license : "htmlArea"
};
BackgroundImage.prototype.onGenerateOnce = function(editor){
// Load assets
var self = BackgroundImage;
if (self.loading) return;
// A list of jpgs that are expected to be in ./backgrounds with thumbnails.
var backgrounds = {blufur:'',palecnvs:'', ppplcnvs:'', ylwsand:''};
self.loading = true;
self.methodsReady = true;
// When we get back from loading the dialog, we'll process our image template to handle as many images as specified.
Xinha._getback(Xinha.getPluginDir('BackgroundImage') + '/dialog.html', function(getback) {
// Replace the template line with one line per image.
self.html = getback.replace(/<template>(.*?)<\/template>/ig, function(fullString, template) {
var replacement = '';
for (bg in backgrounds)
{
var thumbURL = Xinha.getPluginDir('BackgroundImage') + '/backgrounds/thumbnails/' + bg + '.jpg';
var imageURL = Xinha.getPluginDir('BackgroundImage') + '/backgrounds/' + bg + '.jpg';
replacement += template.replace(/%thumbnail%/,thumbURL).replace(/%image%/,imageURL);
}
return replacement;
});
self.dialogReady = true;
});
}
BackgroundImage.prototype.onUpdateToolbar = function(editor){
// Keep our toolbar image greyed until we're fully loaded.
if (!(BackgroundImage.dialogReady && BackgroundImage.methodsReady))
{
this.editor._toolbarObjects.BackgroundImage.state("enabled", false);
}
else this.onUpdateToolbar = null;
}
BackgroundImage.prototype.prepareDialog = function(editor){
var self = this;
var editor = this.editor;
var dialog = this.dialog = new Xinha.Dialog(editor, BackgroundImage.html, 'Xinha',{width:400})
//
// Hookup the buttons with our actions
dialog.getElementById('set').onclick = function() {self.apply();}
dialog.getElementById('delete').onclick = function() {self.deleteBg();}
dialog.getElementById('cancel').onclick = function() { self.dialog.hide()};
this.dialogReady = true;
}
BackgroundImage.prototype.show = function(editor){
if (!this.dialog) this.prepareDialog();
var editor = this.editor;
// After clearing the background property, it returns the current URL, and so
// we need to check the extension to find out if it really has a background.
if (editor._doc.body.background.split('.').pop() in {jpg:'', gif:'', png:'', jpeg:'', tiff:''})
{
var background = editor._doc.body.background;
}
else
{
var background = '';
}
var values =
{
"background" : background
}
// now calling the show method of the Xinha.Dialog object to set the values and show the actual dialog
this.dialog.show(values);
}
BackgroundImage.prototype.deleteBg = function(){
var editor = this.editor;
this.dialog.hide();
if (Xinha.is_ie)
editor.focusEditor();
editor._doc.body.background = "";
}
BackgroundImage.prototype.apply = function(){
var editor = this.editor;
var doc = editor._doc;
// selection is only restored on dialog.hide()
var param = this.dialog.hide();
// assign the given arguments
if (Xinha.is_ie)
editor.focusEditor();
doc.body.background = param.background;
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/BackgroundImage/BackgroundImage.js | JavaScript | art | 4,435 |
<h1 id="[h1]"><l10n>Set Page Background Image</l10n></h1>
<form action="" method="get">
<table style="text-align: center;" border="0" cellspacing="0" cellpadding="6">
<tr style="text-align: center; vertical-align: top;">
<template><td><input type="radio" name="[background]" value="%image%" /><img border="1" src="%thumbnail%" width="50" height="50"></td></template>
</tr>
</table>
<div class="space"></div>
<div id="[buttons]">
<input type="button" id="[set]" value="_(Set Background)" />
<input type="button" id="[delete]" style="width:auto" value="_(Remove Current Background)" />
<input type="button" id="[cancel]" value="_(Cancel)" />
</div>
</form>
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/BackgroundImage/dialog.html | HTML | art | 670 |
// I18N constants
// LANG: "nl", ENCODING: UTF-8
// Author: Maarten Molenschot, maarten@nrgmm.nl
{
"Set page background image": "Pagina achtergrond afbeelding instellen",
"Set Page Background Image": "Pagina Achtergrond Afbeelding Instellen",
"Remove Current Background": "Huidige Achtergrond Afbeelding Verwijderen",
"Cancel": "Annuleren"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/BackgroundImage/lang/nl.js | JavaScript | art | 360 |
// I18N constants
// LANG: "de", ENCODING: UTF-8
// Author: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de
{
"Set page background image": "Seiten-Hintergrundbild setzen",
"Set Page Background Image": "Seiten-Hintergrundbild setzen",
"Remove Current Background": "Aktuellen Hintergrund entfernen",
"Cancel": "Abbrechen"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/BackgroundImage/lang/de.js | JavaScript | art | 365 |
// I18N constants
// LANG: "fr", ENCODING: UTF-8
{
"Set page background image": "Définir l'image de fond",
"Set Page Background Image": "Définir l'Image de Fond",
"Remove Current Background": "Supprimer le fond actuel",
"Cancel": "Annuler"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/BackgroundImage/lang/fr.js | JavaScript | art | 252 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"Set page background image": "ページの背景画像を設定",
"Set Page Background Image": "ページの背景画像を設定",
"Remove Current Background": "現在の背景画像を除去",
"Cancel": "中止"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/BackgroundImage/lang/ja.js | JavaScript | art | 275 |
// I18N constants
// LANG: "nb", ENCODING: UTF-8
// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
{
"Set page background image": "Velg bakgrunnsbilde på siden",
"Set Page Background Image": "Velg bakgrunnsbilde på Siden",
"Remove Current Background": "Fjern gjeldende bakgrunn",
"Cancel": "Avbryt"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/BackgroundImage/lang/nb.js | JavaScript | art | 336 |
// I18N constants
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
// Last revision: 05 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"Cancel": "Cancelar",
"Remove Current Background": "Remover fundo atual",
"Set Page Background Image": "Definir Imagem de Fundo",
"Set page background image": "Definir imagem de fundo"
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/BackgroundImage/lang/pt_br.js | JavaScript | art | 684 |
// Filter plugin for Xinha
// Implementation by Udo Schmal & Schaffrath NeueMedien
// Original Author - Udo Schmal
//
// (c) Udo Schmal & Schaffrath NeueMedien 2004
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
function Filter(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
// register the toolbar buttons provided by this plugin
cfg.registerButton({
id: "filter",
tooltip : this._lc("Filter"),
image : editor.imgURL("ed_filter.gif", "Filter"),
textMode : false,
action : function(editor) {
self.buttonPress(editor);
}
});
if (!cfg.Filters)
cfg.Filters = ["Paragraph","Word"];
for (var i = 0; i < editor.config.Filters.length; i++) {
self.add(editor.config.Filters[i]);
}
cfg.addToolbarElement("filter", "removeformat", 1);
}
Filter._pluginInfo =
{
name : "Filter",
version : "1.0",
developer : "Udo Schmal (gocher)",
developer_url : "",
sponsor : "L.N.Schaffrath NeueMedien",
sponsor_url : "http://www.schaffrath-neuemedien.de/",
c_owner : "Udo Schmal & Schaffrath-NeueMedien",
license : "htmlArea"
};
Filter.prototype.add = function(filterName) {
if(eval('typeof ' + filterName) == 'undefined') {
var filter = Xinha.getPluginDir('Filter') + "/filters/" + filterName + ".js";
var head = document.getElementsByTagName("head")[0];
var evt = Xinha.is_ie ? "onreadystatechange" : "onload";
var script = document.createElement("script");
script.type = "text/javascript";
script.src = filter;
script[evt] = function() {
if(Xinha.is_ie && !/loaded|complete/.test(window.event.srcElement.readyState)) return;
}
head.appendChild(script);
//document.write("<script type='text/javascript' src='" + plugin_file + "'></script>");
}
};
Filter.prototype._lc = function(string) {
return Xinha._lc(string, 'Filter');
};
Filter.prototype.buttonPress = function(editor) {
var html = editor.getInnerHTML();
for (var i = 0; i < editor.config.Filters.length; i++) {
html = eval(editor.config.Filters[i])(html);
}
editor.setHTML(html);
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Filter/Filter.js | JavaScript | art | 2,224 |
// I18N constants
// LANG: "nl", ENCODING: UTF-8
// Author: Maarten Molenschot, maarten@nrgmm.nl
{
"Filter": "Filter"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Filter/lang/nl.js | JavaScript | art | 129 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"Filter": "フィルター"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Filter/lang/ja.js | JavaScript | art | 84 |
// I18N constants
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
// Last revision: 05 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"Filter": "Filtro"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Filter/lang/pt_br.js | JavaScript | art | 513 |
Word = function(html) {
// Remove HTML comments
html = html.replace(/<!--[\w\s\d@{}:.;,'"%!#_=&|?~()[*+\/\-\]]*-->/gi, "" );
html = html.replace(/<!--[^\0]*-->/gi, '');
// Remove all HTML tags
html = html.replace(/<\/?\s*HTML[^>]*>/gi, "" );
// Remove all BODY tags
html = html.replace(/<\/?\s*BODY[^>]*>/gi, "" );
// Remove all META tags
html = html.replace(/<\/?\s*META[^>]*>/gi, "" );
// Remove all SPAN tags
html = html.replace(/<\/?\s*SPAN[^>]*>/gi, "" );
// Remove all FONT tags
html = html.replace(/<\/?\s*FONT[^>]*>/gi, "");
// Remove all IFRAME tags.
html = html.replace(/<\/?\s*IFRAME[^>]*>/gi, "");
// Remove all STYLE tags & content
html = html.replace(/<\/?\s*STYLE[^>]*>(.|[\n\r\t])*<\/\s*STYLE\s*>/gi, "" );
// Remove all TITLE tags & content
html = html.replace(/<\s*TITLE[^>]*>(.|[\n\r\t])*<\/\s*TITLE\s*>/gi, "" );
// Remove javascript
html = html.replace(/<\s*SCRIPT[^>]*>[^\0]*<\/\s*SCRIPT\s*>/gi, "");
// Remove all HEAD tags & content
html = html.replace(/<\s*HEAD[^>]*>(.|[\n\r\t])*<\/\s*HEAD\s*>/gi, "" );
// Remove Class attributes
html = html.replace(/<\s*(\w[^>]*) class=([^ |>]*)([^>]*)/gi, "<$1$3") ;
// Remove Style attributes
html = html.replace(/<\s*(\w[^>]*) style="([^"]*)"([^>]*)/gi, "<$1$3") ;
// Remove Lang attributes
html = html.replace(/<\s*(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3") ;
// Remove XML elements and declarations
html = html.replace(/<\\?\?xml[^>]*>/gi, "") ;
// Remove Tags with XML namespace declarations: <o:p></o:p>
html = html.replace(/<\/?\w+:[^>]*>/gi, "") ;
// Replace the
html = html.replace(/ /, " " );
// Transform <p><br /></p> to <br>
//html = html.replace(/<\s*p[^>]*>\s*<\s*br\s*\/>\s*<\/\s*p[^>]*>/gi, "<br>");
html = html.replace(/<\s*p[^>]*><\s*br\s*\/?>\s*<\/\s*p[^>]*>/gi, "<br>");
// Remove <P>
html = html.replace(/<\s*p[^>]*>/gi, "");
// Replace </p> with <br>
html = html.replace(/<\/\s*p[^>]*>/gi, "<br>");
// Remove any <br> at the end
html = html.replace(/(\s*<br>\s*)*$/, "");
html = html.trim();
return html;
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Filter/filters/word.js | JavaScript | art | 2,102 |
Paragraph = function(html) {
html = html.replace(/<\s*p[^>]*>/gi, '');
html = html.replace(/<\/\s*p\s*>/gi, '');
html = html.trim();
return html;
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/Filter/filters/paragraph.js | JavaScript | art | 156 |
// I18N constants
// LANG: "nl", ENCODING: UTF-8
// Author: Maarten Molenschot, maarten@nrgmm.nl
{
"Insert Image": "Afbeelding invoegen",
"Image Preview:": "Afbeeldingsvoorbeeld:",
"Image URL:": "Afbeelding URL:",
"Preview": "Voorbeeld",
"Alternate text:": "Alternatieve tekst:",
"Layout": "Weergave",
"Alignment:": "Positie:",
"Border thickness:": "Rand dikte:",
"Spacing": "Marge",
"Horizontal:": "Horizontaal:",
"Vertical:": "Verticaal:",
"The file you are uploading doesn't have the correct extension.": "Het bestand dat is geupload heeft niet de juiste extentie.",
"The file you are uploading already exists.": "Het bestand dat is geupload bestaat al.",
"The file you are uploading is to big. The max Filesize is": "Het bestand dat is geupload is te groot. De maximaal toegestane grootte is:",
"Images on the Server:": "Afbeeldingen op de server:",
"Please select a file to upload.": "Selecteer een bestand om te uploaden",
"Upload file": "Upload bestand",
"Size": "Grootte",
"Width:": "Breedte:",
"Height:": "Hoogte:",
// tooltips
"Enter the image URL here":"Afbeeldingslocatie (URL)",
"Preview the image in a new window": "Afbeelding bekijken in nieuw venster",
"For browsers that don't support images":"Voor browsers welke geen afbeeldingen ondersteunen",
"Positioning of this image": "Positie van de afbeelding",
"Leave empty for no border": "Leeg voor geen rand",
"Leave empty for not defined": "Leeg voor niet gedefinieerd",
"Horizontal padding": "Horizontale ruimte",
"Vertical padding": "Verticale ruimte"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertPicture/lang/nl.js | JavaScript | art | 1,616 |
// LANG: "de", ENCODING: UTF-8 | ISO-8859-1
// Sponsored by http://www.schaffrath-neuemedien.de
// Author: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de
{
"The file you are uploading doesn't have the correct extension.": "Die hochgeladene Datei ist im falschen Format.",
"The file you are uploading already exists.": "Eine Datei mit diesem Namen existiert schon.",
"The file you are uploading is to big. The max Filesize is": "Die hochgeladene Datei ist zu groß. Die maximakle Dateigröße beträgt",
"Images on the Server:": "Bilder auf dem Server:",
"Please select a file to upload.": "Wählen Sie eine Datei zum hochladen aus.",
"Upload file": "Datei hochladen",
"Open file in new window": "Datei in neuen Fenster anzeigen",
"Size": "Größe",
"Width:": "Breite",
"Height:": "Höhe"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertPicture/lang/de.js | JavaScript | art | 845 |
// I18N constants
// LANG: "sv", ENCODING: UTF-8
// Swedish version for rev. 477 (Mar 2006) by Thomas Loo <tloo@saltstorm.net>
{
"Insert Image": "Infoga bild",
"Image Preview:": "Förhandsgranskning:",
"Image URL:": "Bildens URL:",
"Preview": "Förhandsgranska",
"Alternate text:": "Alternativ text:",
"Layout": "Layout",
"Alignment:": "Placering:",
"Border thickness:": "Ramtjocklek:",
"Spacing": "Marginal",
"Horizontal:": "Horisontell:",
"Vertical:": "Vertikal:",
"The file you are uploading doesn't have the correct extension.": "Uppladdat bild har en ogiltig filändelse, uppladdning avbruten",
"The file you are uploading already exists.": "En fil med detta namn finns redan",
"The file you are uploading is to big. The max Filesize is": "Filen är för stor, maximal filstorlek är",
"Images on the Server:": "Bilder på servern:",
"Please select a file to upload.": "Välj bild att ladda upp",
"Upload file": "Ladda upp bild",
"Size": "Storlek",
"Width:": "Bredd:",
"Height:": "Höjd:",
// tooltips
"Enter the image URL here":"Bildens sökväg (URL)",
"Preview the image in a new window": "Öppna bild i nytt fönster",
"For browsers that don't support images":"Beskrivande text för webläsare som inte stödjer inbäddade bilder",
"Positioning of this image": "Bildens positionering",
"Leave empty for no border": "Lämna tomt för att undvika ram",
"Leave empty for not defined": "Lämna tomt för att låta webläsaren bestämma",
"Horizontal padding": "Horizontellt indrag på bild",
"Vertical padding": "Vertikalt indrag på bild"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertPicture/lang/sv.js | JavaScript | art | 1,607 |
// I18N constants
// LANG: "fr", ENCODING: UTF-8
{
"Insert Image": "Insérer une image",
"Image Preview:": "Prévisualisation",
"Image URL:": "URL",
"Preview": "Prévisualisation",
"Alternate text:": "Texte alternatif",
"Layout": "Layout",
"Alignment:": "Alignement",
"Border thickness:": "Epaisseur bordure",
"Spacing": "Espacement",
"Horizontal:": "Horizontal",
"Vertical:": "Vertical",
"The file you are uploading doesn't have the correct extension.": "Le fichier que vous téléchargez ne possède pas la bonne extension.",
"The file you are uploading already exists.": "Le fichier que vous téléchargez existe déjà.",
"The file you are uploading is to big. The max Filesize is": "Le fichier que vous uploadez est trop gros. La taille maximum est",
"Images on the Server:": "Images sur le serveur",
"Please select a file to upload.": "Veuillez sélectionner un fichier a télécharger",
"Upload file": "Télécharger",
"Open file in new window": "Ouvrir le fichier dans une nouvelle fenêtre"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertPicture/lang/fr.js | JavaScript | art | 1,038 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"Insert Image": "画像の挿入",
"Image Preview:": "画像プレビュー:",
"Image URL:": "画像URL:",
"Preview": "表示",
"Alternate text:": "代替テキスト:",
"Layout": "レイアウト",
"Alignment:": "行揃え:",
"Border thickness:": "境界線の幅:",
"Spacing": "間隔",
"Horizontal:": "水平:",
"Vertical:": "垂直:",
"The file you are uploading doesn't have the correct extension.": "アップロード対象ファイルに正しい拡張子がありません。",
"The file you are uploading already exists.": "アップロード対象ファイルはすでに存在します。",
"The file you are uploading is to big. The max Filesize is": "アップロード対象ファイルは大きすぎます。ファイルサイズの上限:",
"Images on the Server:": "サーバ上の画像:",
"Please select a file to upload.": "アップロードするファイルを選択してください。",
"Upload file": "UPLOAD FILE",
"Open file in new window": "新しいウィンドウでファイルを開く",
"Size": "サイズ",
"Width:": "幅:",
"Height:": "高さ:"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertPicture/lang/ja.js | JavaScript | art | 1,179 |
// LANG: "nb", ENCODING: UTF-8 | ISO-8859-1
// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
{
"Insert Image": "Sett inn bilde",
"Image Preview:": "Forhåndsvisning:",
"Image URL:": "Bildets URL:",
"Preview": "Forhåndsvisning",
"Alternate text:": "Alternativ tekst",
"Layout": "Oppsett",
"Alignment:": "Plassering",
"Border thickness:": "Rammetykkelse:",
"Spacing": "Luft rundt bildet",
"Horizontal:": "Horisontal:",
"Vertical:": "Vertikal:",
"The file you are uploading doesn't have the correct extension.": "Bildet du laster opp har et ugyldig format, opplastning avbrutt",
"The file you are uploading already exists.": "Bildet du prøver å laste opp eksisterer allerede på serveren",
"The file you are uploading is to big. The max Filesize is": "Bildet du laster opp er for stort, maks tillatt størrelse er",
"Images on the Server:": "Bilder på serveren:",
"Please select a file to upload.": "Velg bilde du skal laste opp",
"Upload file": "Last opp bilde",
"Open file in new window": "Åpne bilde i nytt vindu"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertPicture/lang/nb.js | JavaScript | art | 1,085 |
// I18N constants
//
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
//
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
//
// Last revision: 06 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
//
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
" Open file in new window": " Abrir arquivo em um nova janela",
"Absbottom": "Inferior Absoluto",
"Absmiddle": "Meio Absoluto",
"Alignment:": "Alinhamento:",
"Alternate text:": "Texto Alternativo:",
"Baseline": "Linha de Base",
"Border thickness:": "Espessura da Borda",
"Bottom": "Inferior",
"Cancel": "Cancelar",
"Enter the image URL here": "Entre aqui com a URL da imagem",
"For browsers that don't support images": "Para navegadores que não suportam imagens",
"Height:": "Altura:",
"Horizontal padding": "Espaço horizontal",
"Horizontal:": "Horizontal:",
"Image Preview:": "Visualização da Imagem:",
"Image URL:": "URL da Imagem:",
"Insert Image": "Inserir Imagem",
"Layout": "Esquema",
"Leave empty for no border": "Deixe em branco para sem bordas",
"Leave empty for not defined": "Deixe em branco para não definido",
"Left": "Esquerda",
"Middle": "Meio",
"Not set": "Não definido",
"OK": "OK",
"Open file in new window": "Abrir arquivo em uma nova janela",
"Positioning of this image": "Posicionamento desta imagem",
"Preview": "Visualização",
"Preview the image in a new window": "Visualizar imagem em uma nova janela",
"Right": "Direita",
"Size": "Tamanho",
"Spacing": "Espaço",
"Texttop": "Texto no topo",
"Top": "Topo",
"Upload file": "Enviar arquivo",
"Vertical padding": "Espaço vertical",
"Vertical:": "Vertical:",
"Width:": "Largura:",
// not find with lc_parse_strings.php
"The file you are uploading doesn't have the correct extension.": "O arquivo que você está enviando não possuia a extensão correta.",
"The file you are uploading already exists.": "Já existe o arquivo que você está enviando.",
"The file you are uploading is to big. The max Filesize is": "O arquivo que você está enviando é muito grande. O tamanho máximo é",
"Images on the Server:": "Imagens no Servidor:",
"Please select a file to upload.": "Por favor, selecione um arquivo para enviar."
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertPicture/lang/pt_br.js | JavaScript | art | 2,490 |
// Insert Image plugin for Xinha
// Original Author - Udo Schmal
//
// (c) www.Schaffrath-NeueMedien.de 2004
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
function InsertPicture(editor) {
if ( typeof _editor_picturePath !== "string" )
_editor_picturePath = Xinha.getPluginDir("InsertPicture") + "/demo_pictures/";
InsertPicture.Scripting = "php"; //else "asp"
editor.config.URIs.insert_image = '../plugins/InsertPicture/InsertPicture.' + InsertPicture.Scripting + '?picturepath=' + _editor_picturePath;
}
InsertPicture._pluginInfo = {
name : "InsertPicture",
version : "1.0.2",
developer : "Udo Schmal",
developer_url : "http://www.Schaffrath-NeueMedien.de/",
sponsor : "L.N.Schaffrath NeueMedien",
sponsor_url : "http://www.schaffrath-neuemedien.de/",
c_owner : "Udo Schmal",
license : "htmlArea"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertPicture/InsertPicture.js | JavaScript | art | 965 |
<?PHP
die('Developer, this plugin InsertPicture has been deprecated. You are STRONGLY advised to use ImageManager plugin instead. If you really must continue using this plugin, please edit xinha/unsupported_plugins/InsertPicture/InsertPicture.php to remove this notice.');
/* DEVELOPER!
*
* InsertPicture is probably insecure. There havn't been reports of it being attacked, but
* really it is not very good. If you enable this plugin (by commenting out the die statement above)
* you are probably dicing with death.
*
* ImageManager is recommended to replace this plugin. This plugin will be removed at a time
* in the future.
*
*/
//this plugin only use the relativ webpath to the picturefolder
//default ~ /Xinha/plugins/InsertPicture/demo_pictures/
strstr( PHP_OS, "WIN") ? $strPathSeparator = "\\" : $strPathSeparator = "/";
if (isset($_REQUEST['picturepath'])) {
$PicturePath = $_REQUEST['picturepath'];
$AInsertPicturePath = explode ('/', dirname($_SERVER['PHP_SELF']));
$ALocalInsertPicturePath = explode($strPathSeparator, dirname(__FILE__));
$AtheRootPath = array_values (array_diff ($ALocalInsertPicturePath, $AInsertPicturePath));
$RootPath = implode($strPathSeparator, $AtheRootPath);
$LocalPicturePath = str_replace('http://'.$_SERVER['HTTP_HOST'], "", $PicturePath);
$LocalPicturePath = str_replace('/', $strPathSeparator, $LocalPicturePath);
$LocalPicturePath = $RootPath.$LocalPicturePath;
$LocalPicturePath = dirname(__FILE__).$strPathSeparator.'demo_pictures'.$strPathSeparator;
//$LocalPicturePath = realpath('../../../../images/content/').$strPathSeparator;
}
$limitedext = array(".gif",".jpg",".png",".jpeg"); //Extensions you want files uploaded limited to.
$limitedsize = "1000000"; //size limit in bytes
$message = "";
function formatSize($size)
{
if($size < 1024)
return $size.' bytes';
else if($size >= 1024 && $size < 1024*1024)
return sprintf('%01.2f',$size/1024.0).' Kb';
else
return sprintf('%01.2f',$size/(1024.0*1024)).' Mb';
}
$DestFileName = "";
if (isset($_FILES['file'])) {
$file = $_FILES['file'];
$ext = strrchr($file['name'],'.');
if (!in_array($ext,$limitedext))
$message = "The file you are uploading doesn't have the correct extension.";
else if (file_exists($LocalPicturePath.$file['name']))
$message = "The file you are uploading already exists.";
else if ($file['size'] > $limitedsize)
$message = "The file you are uploading is to big. The max Filesize is</span><span> ".formatSize($limitedsize).".";
else
copy($file['tmp_name'], $LocalPicturePath.$file['name']);
$DestFileName = $file['name'];
}
?>
<html>
<head>
<title>Insert Image</title>
<link rel="stylesheet" type="text/css" href="../../popups/popup.css" />
<script type="text/javascript" src="../../popups/popup.js"></script>
<script type="text/javascript">
window.resizeTo(500, 490);
var Xinha = window.opener.Xinha;
function i18n(str) {
return (Xinha._lc(str, 'Xinha'));
}
function Init() {
__dlg_translate("InsertPicture");
__dlg_init();
// Make sure the translated string appears in the drop down. (for gecko)
document.getElementById("f_align").selectedIndex = 0;
document.getElementById("f_align").selectedIndex = document.getElementById("f_align").selectedIndex;
var param = window.dialogArguments;
if (param) {
document.getElementById("f_url").value = param["f_url"];
document.getElementById("f_alt").value = param["f_alt"];
document.getElementById("f_border").value = param["f_border"];
document.getElementById("f_align").value = param["f_align"];
document.getElementById("f_vert").value = (param["f_vert"]!="-1") ? param["f_vert"] : "";
document.getElementById("f_horiz").value = (param["f_horiz"]!="-1") ? param["f_horiz"] : "";
document.getElementById("f_height").value = param["f_height"];
document.getElementById("f_width").value = param["f_width"];
window.ipreview.location.replace(param.f_url);
}
document.getElementById("f_url").focus();
document.getElementById("filelist").selectedIndex = document.getElementById("filelist").selectedIndex;
<?php If ($DestFileName<>"")
echo "CopyToURL(\"".$PicturePath.$DestFileName."\");"
?>
}
function onOK() {
var required = {
"f_url": i18n("You must enter the URL")
};
for (var i in required) {
var el = document.getElementById(i);
if (!el.value) {
alert(required[i]);
el.focus();
return false;
}
}
// pass data back to the calling window
var fields = ["f_url", "f_alt", "f_align", "f_border", "f_horiz", "f_vert", "f_width", "f_height"];
var param = new Object();
for (var i in fields) {
var id = fields[i];
var el = document.getElementById(id);
param[id] = el.value;
}
__dlg_close(param);
return false;
}
function onUpload() {
var required = {
"file": i18n("Please select a file to upload.")
};
for (var i in required) {
var el = document.getElementById(i);
if (!el.value) {
alert(required[i]);
el.focus();
return false;
}
}
return true;
}
function onCancel() {
__dlg_close(null);
return false;
}
function onPreview() {
var f_url = document.getElementById("f_url");
var url = f_url.value;
if (!url) {
alert(i18n("You must enter the URL"));
f_url.focus();
return false;
}
if (document.all) {
window.ipreview.location.replace('viewpicture.html?'+url);
} else {
window.ipreview.location.replace(url);
}
return false;
}
var img = new Image();
function imgWait() {
waiting = window.setInterval("imgIsLoaded()", 1000)
}
function imgIsLoaded() {
if(img.width > 0) {
window.clearInterval(waiting)
document.getElementById("f_width").value = img.width;
document.getElementById("f_height").value = img.height;
}
}
function CopyToURL(imgName) {
document.getElementById("f_url").value = imgName;
onPreview();
img.src = imgName;
img.onLoad = imgWait()
}
function openFile() {
window.open(document.getElementById("f_url").value,'','');
}
</script>
</head>
<body class="dialog" onload="Init()">
<div class="title">Insert Image</div>
<table border="0" width="100%" style="padding: 0px; margin: 0px">
<tbody>
<tr>
<td>Images on the Server:<?php /*echo $LocalPicturePath*/ ?><br>
<select id="filelist" name="filelist" style="width:200" size="10" onClick="CopyToURL(this[this.selectedIndex].value);">
<?php
$d = @dir($LocalPicturePath);
while (false !== ($entry = $d->read())) {
if(substr($entry,0,1) != '.') { //not a dot file or directory
if ($entry == $DestFileName)
echo '<OPTION value="' . $PicturePath.$entry. '" selected="selected">' . $entry . '(' . formatSize(filesize($LocalPicturePath.'\\'.$entry)) .')</OPTION>';
else
echo '<OPTION value="' . $PicturePath.$entry. '">' . $entry . '(' . formatSize(filesize($LocalPicturePath.'\\'.$entry)) .')</OPTION>';
}
}
$d->close();
?>
</select>
<form method="post" action="" enctype="multipart/form-data">
<input type="hidden" name="localpicturepath" value="<?php echo $LocalPicturePath ?>">
<input type="hidden" name="picturepath" value="<?php echo $PicturePath ?>">
<input type="file" name="file" id="file" size="30"><br>
<button type="submit" name="ok" onclick="onUpload();">Upload file</button><br>
<span><?php echo $message ?></span>
</form>
</td>
<td style="vertical-align: middle;" width="200" height="230">
<span>Image Preview:</span>
<a href="#" onClick="javascript:openFile();"title=" Open file in new window"><img src="img/btn_open.gif" width="18" height="18" border="0" title="Open file in new window" /></a><br />
<iframe name="ipreview" id="ipreview" frameborder="0" style="border : 1px solid gray;" height="200" width="200" src=""></iframe>
</td>
</tr>
</tbody>
</table>
<form action="" method="get">
<input type="hidden" name="localpicturepath" value="<?php echo $LocalPicturePath ?>">
<input type="hidden" name="picturepath" value="<?php echo $PicturePath ?>">
<table border="0" width="100%" style="padding: 0px; margin: 0px">
<tbody>
<tr>
<td style="width: 7em; text-align: right">Image URL:</td>
<td><input type="text" name="url" id="f_url" style="width:75%"
title="Enter the image URL here" value="<?php echo $PicturePath.$DestFileName ?>"/>
<button name="preview" onclick="return onPreview();"
title="Preview the image in a new window">Preview</button>
</td>
</tr>
<tr>
<td style="width: 7em; text-align: right">Alternate text:</td>
<td><input type="text" name="alt" id="f_alt" style="width:100%"
title="For browsers that don't support images" /></td>
</tr>
</tbody>
</table>
<p />
<fieldset style="float: left; margin-left: 5px;">
<legend>Layout</legend>
<div class="space"></div>
<div class="fl" style="width: 6em;">Alignment:</div>
<select size="1" name="align" id="f_align"
title="Positioning of this image">
<option value="" >Not set</option>
<option value="left" >Left</option>
<option value="right" >Right</option>
<option value="texttop" >Texttop</option>
<option value="absmiddle" >Absmiddle</option>
<option value="baseline" >Baseline</option>
<option value="absbottom" >Absbottom</option>
<option value="bottom" >Bottom</option>
<option value="middle" >Middle</option>
<option value="top" >Top</option>
</select>
<p />
<div class="fl" style="width: 6em;">Border thickness:</div>
<input type="text" name="border" id="f_border" size="5" title="Leave empty for no border" />
<div class="space"></div>
</fieldset>
<fieldset style="float: left; margin-left: 5px;">
<legend>Size</legend>
<div class="space"></div>
<div class="fl" style="width: 5em;">Width:</div>
<input type="text" name="width" id="f_width" size="5" title="Leave empty for not defined" />
<p />
<div class="fl" style="width: 5em;">Height:</div>
<input type="text" name="height" id="f_height" size="5" title="Leave empty for not defined" />
<div class="space"></div>
</fieldset>
<fieldset style="float:right; margin-right: 5px;">
<legend>Spacing</legend>
<div class="space"></div>
<div class="fr" style="width: 5em;">Horizontal:</div>
<input type="text" name="horiz" id="f_horiz" size="5" title="Horizontal padding" />
<p />
<div class="fr" style="width: 5em;">Vertical:</div>
<input type="text" name="vert" id="f_vert" size="5" title="Vertical padding" />
<div class="space"></div>
</fieldset>
<br clear="all" />
<div id="buttons">
<button type="submit" name="ok" onclick="return onOK();">OK</button>
<button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
</div>
</form>
</body>
</html> | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertPicture/InsertPicture.php | PHP | art | 11,047 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Preview</title>
<script language="JavaScript" type="text/javascript">
<!--
function imgWait() {
waiting = window.setInterval("imgIsLoaded()", 1000);
}
function imgIsLoaded() {
if(document.getElementById("myImg").width > 0) {
window.clearInterval(waiting);
imgShowWidth();
}
}
function imgShowWidth() {
var width = document.getElementById("myImg").width;
var height = document.getElementById("myImg").height;
if(width > 120) {
var dx = (120 / width);
var dy = (120 / height);
ratio = dx < dy ? dx : dy;
// keep aspect ratio
width = width * ratio;
height = height * ratio;
document.getElementById("myImg").width = width;
document.getElementById("myImg").height = height;
}
document.getElementById("myImg").style.visibility = 'visible';
}
function showPreview() {
img = document.location.toString().split("?");
document.getElementById("myImg").src = img[1];
img.onLoad = imgWait();
}
//-->
</script>
</head>
<body marginwidth="5px" marginheight="5px" topmargin="5px" leftmargin="5px" rightmargin="5px">
<img id="myImg" src="" Style="visibility:hidden">
<script language="JavaScript" type="text/javascript">
showPreview();
</script>
</body>
</html> | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertPicture/viewpicture.html | HTML | art | 1,331 |
// GUIDO Music Notation plugin for Xinha
// Implementation by Richard Christophe
// Original Author - Richard Christophe cvrichard@infonie.fr
//
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
// this is a collection of JavaScript routines that
// facilitate accessing the GUIDO NoteServer.
//
// These Functions can be used within WEB-Pages
// examples can be found at
// www.noteserver.org/javascript/index.html
//
function NoteServer(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
cfg.registerButton({
id : "insertscore",
tooltip : this._lc("Insert GUIDO Music Notation"),
image : editor.imgURL("note.gif", "NoteServer"),
textMode : false,
action : function(editor) {
self.buttonPress(editor);
}
});
cfg.addToolbarElement("insertscore", "insertimage", 1);
}
NoteServer._pluginInfo = {
name : "NoteServer",
version : "1.1",
developer : "Richard Christophe",
developer_url : "http://piano-go.chez.tiscali.fr/guido.html",
c_owner : "Richard Christophe",
sponsor : "",
sponsor_url : "",
license : "htmlArea"
};
NoteServer.prototype._lc = function(string) {
return Xinha._lc(string, 'NoteServer');
};
NoteServer.prototype.buttonPress = function(editor) {
editor._popupDialog( "plugin://NoteServer/codenote", function(param) {
if (!param) { // user must have pressed Cancel
return false;
} else IncludeGuido(editor,param);
}, null);
};
// this variable is the address of the noteserver
// can be set to another address (local address if availalble)
// var noteserveraddress = "www.noteserver.org";
// var htmlbase = "";
// alternative: specify server-adress directly:
var noteserveraddress = "clef.cs.ubc.ca"; //"www.noteserver.org"
var htmlbase = "/salieri/nview";
// this is the version of the NoteServer used.
// one of "0_4", "0_5", "0_6", or "0_7", or ""
// "" means: take the current version
// var versionstring = "0_7";
var versionstring = "";
// this functions takes a GMN-string and returns the URL
// that converts it into a GIF-file
function GetGIFURL(gmnstring,zoom,pagenum) {
gmnstring = escape(gmnstring);
gmnstring = gmnstring.replace(/\//g,"%2F");
if (!zoom) {
zoom = "1.0";
}
if (!pagenum) {
pagenum = "1";
}
var string = "http://" + noteserveraddress +
"/scripts/salieri" + versionstring +
"/gifserv.pl?" +
"pagewidth=21" +
"&pageheight=29.7" +
"&zoomfactor=" + zoom +
"&pagesizeadjust=yes" +
"&outputformat=gif87" +
"&pagenum=" + pagenum +
"&gmndata=" + gmnstring;
// document.write(string);
return string;
}
// this functions takes a GMN-string and returns the URL
// that converts it into a MIDI-file
function GetMIDIURL(gmnstring) {
gmnstring = escape(gmnstring);
gmnstring = gmnstring.replace(/\//g,"%2F");
var string = "http://" + noteserveraddress +
"/scripts/salieri" + versionstring +
"/midserv.pl?" +
"gmndata=" + gmnstring;
return string;
}
// this functions takes a GMN-string and returns the URL
// that insert Applet
function GetAPPLETURL(gmnstring,zoom) {
gmnstring = escape(gmnstring);
gmnstring = gmnstring.replace(/\//g,"%2F");
var string = '<applet ' +
'code="NoteServerApplet" ' +
'codebase="http://' +
noteserveraddress + htmlbase + '/java" ' +
' width=700 height=300>' +
'<param name=server value="' +
noteserveraddress + '">' +
'<param name=serverVersion value="' +
versionstring + '">' +
'<param name=zoomFactor value="' +
zoom + '">' +
'<param name=pageWidth value="21">' +
'<param name=pageHeight value="29.7">' +
'<param name=gmn value="' +
gmnstring + '">' +
'</applet>';
return string;
}
// This function takes a GUIDO string, accesses the
// NoteServer (address specified as a constant above)
// and then embeds the GIF-Image in the document.
function IncludeGuido(editor,param) {
// this holds the URL for retrieving the picture ...
if (!param["f_zoom"])
zoom = "";
//if (!pagenum)
// pagenum = "";
var string = GetGIFURL(param["f_code"],param["f_zoom"],"");
var stringmidi = GetMIDIURL(param["f_code"]);
var string2 = "<br>";
if (param["f_applet"] == false ){
if (((navigator.userAgent.toLowerCase().indexOf("msie") != -1)
&& (navigator.userAgent.toLowerCase().indexOf("opera") == -1))) {
editor.focusEditor();
editor.insertHTML("<img src=" + string + ">");
} else {
img = new Image();
img.src = string;
var doc = editor._doc;
var sel = editor._getSelection();
var range = editor._createRange(sel);
editor._doc.execCommand("insertimage", false, img.src);
}
} else {
var stringapplet = GetAPPLETURL(param["f_code"],param["f_zoom"]);
string2 = string2 + stringapplet + "<br>";
}
// To test code source in textarea
//if (param["f_affcode"]) string2 = string2 + Xinha._lc("Source Code","NoteServer") + " :" + '<br> <textarea cols=60 rows=10 style = "background: #FFFFE6">' + param["f_code"] + '</textarea> <br>';
if (param["f_affcode"]) string2 = string2 + Xinha._lc("GUIDO Code","NoteServer") + " : " + param["f_code"] + "<br>";
if (param["f_midi"]) string2 = string2 + "<a href=" + stringmidi + ">" + Xinha._lc("MIDI File","NoteServer") + "</a> <br>";
editor.focusEditor();
editor.insertHTML(string2);
//var html = linktext.link(stringmidi);
//editor.insertHTML(html);
}
// this routine includes the applet-definition
function IncludeGuidoStringAsApplet(editor, gmnstring, zoom) {
gmnstring = escape(gmnstring);
gmnstring = gmnstring.replace(/\//g,"%2F");
var string = '<applet ' +
'codebase="http://' + noteserveraddress + htmlbase + '/java"\n' +
'code="NoteServerApplet" width=480 height=230>' +
"<PARAM NAME=server VALUE='" + noteserveraddress + "'>" +
"<PARAM NAME=serverVersion VALUE='" + versionstring + "'>" +
"<PARAM NAME=zoomFactor VALUE='" + zoom + "'>" +
'<param name=pageWidth value="21">' +
'<param name=pageHeight value="29.7">' +
"<PARAM NAME=gmn VALUE='" + gmnstring + "'>" +
"</applet>";
alert(string);
editor.focusEditor();
editor.insertHTML(string);
} | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/NoteServer/NoteServer.js | JavaScript | art | 6,770 |
// I18N constants
// LANG: "nl", ENCODING: UTF-8
// Author: Maarten Molenschot, maarten@nrgmm.nl
{
"Insert GUIDO Music Notation": "GUIDO muziek notatie invoegen",
"Guido code": "GUIDO-code",
"Options": "Opties",
"Format": "Indeling",
"Image in applet": "Afbeelding in applet",
"Zoom": "Vergroot/verklein",
"MIDI File": "MIDI bestand",
"Image Preview": "Afbeeldingsvoorbeeld",
"Source Code": "Broncode",
"Preview": "Voorbeeld",
"Add MIDI link to allow students to hear the music": "MIDI link invoegen om de muziek te beluisteren",
"Add GUIDO Code in a textbox on the page": "GUIDO code in een tekstgebied op de pagina invoegen"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/NoteServer/lang/nl.js | JavaScript | art | 669 |
// I18N constants
// LANG: "de", ENCODING: UTF-8 | ISO-8859-1
// Sponsored by http://www.systemconcept.de
// Author: Holger Hees, <hhees@systemconcept.de>
// (c) systemconcept.de 2004
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"Insert GUIDO Music Notation": "Einfügung einer GUIDO Musik-Tonfolge",
"Guido code": "Guido code",
"Options": "Einstellungen",
"Format": "Format",
"Image in applet": "Bild im Applet",
"Zoom": "Zoom",
"MIDI File": "MIDI Datei",
"Image Preview": "Bild Voransicht",
"Source Code": "Quell-Code",
"Preview": "Voransicht",
"Add MIDI link to allow students to hear the music": "MIDI-Link hinzufügen um Studenten das hören der Musik zu ermöglichen",
"Add GUIDO Code in a textbox on the page": "GUIDO Code in einer Textbox auf der Seite anzeigen"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/NoteServer/lang/de.js | JavaScript | art | 894 |
// I18N constants
// LANG: "fr", ENCODING: UTF-8
{
"Insert GUIDO Music Notation": "Insérer une partition musicale GUIDO",
"Guido code": "Code Guido",
"Options": "Options",
"Format": "Format",
"Image in applet": "Image dans une applet",
"Zoom": "Zoom",
"MIDI File": "Fichier MIDI",
"Image Preview": "Aperçu de l'image",
"Source Code": "Code source",
"Preview": "Aperçu ",
"Add MIDI link to allow students to hear the music": "Ajouter un lien MIDI pour permettre aux étudiants d'écouter la partition",
"Add GUIDO Code in a textbox on the page": "Ajouter le code source GUIDO dans un cadre"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/NoteServer/lang/fr.js | JavaScript | art | 619 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
// This string is for auto detection of multi-encoding editor : 国際化文字検出用文字列
{
"Insert GUIDO Music Notation": "GUIDO Music Notationの挿入",
"Guido code": "GUIDOコード",
"Options": "オプション",
"Format": "フォーマット",
"Image in applet": "アプレット画像",
"Zoom": "拡大率:",
"MIDI File": "MIDIファイル",
"Image Preview": "画像プレビュー",
"Source Code": "ソースコード",
"Preview": "表示",
"Add MIDI link to allow students to hear the music": "MIDIへのリンクを追加し、楽曲を聴かせてもよい",
"Add GUIDO Code in a textbox on the page": "ページ内のテキストボックスにGUIDOコードを追加",
"With Mozilla, the applet will not be visible in editor, but only in Web page after submitting.": "Mozillaではエディタ内にアプレットは表示されませんが、送信後のWebページ内では有効です。"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/NoteServer/lang/ja.js | JavaScript | art | 992 |
// I18N constants
// LANG: "nb", ENCODING: UTF-8
// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
{
"Insert GUIDO Music Notation": "Sett inn GUIDO-noter",
"Guido code": "GUIDO-kode",
"Options": "Muligheter",
"Format": "Format",
"Image in applet": "Bilde i applet",
"Zoom": "Forstørr",
"MIDI File": "MIDIfil",
"Image Preview": "Bilde forhåndsvisning",
"Source Code": "Kildekode",
"Preview": "Preview",
"Add MIDI link to allow students to hear the music": "Legg til MIDI-link for at studenter kan høre musikken",
"Add GUIDO Code in a textbox on the page": "Sett inn GUIDO-kode i et tekstfelt på siden"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/NoteServer/lang/nb.js | JavaScript | art | 656 |
// I18N constants
//
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
//
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
//
// Last revision: 06 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
//
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt)
{
"Add GUIDO Code in a textbox on the page": "Adicionar código GUIDO em uma caixa de texto na página",
"Add MIDI link to allow students to hear the music": "Adicionar um link MIDI para permitir que os estudantes escutem a música",
"Cancel": "Cancelar",
"Format": "Formato",
"GUIDO Code": "Código GUIDO",
"Guido code": "Código Guido",
"Image Preview": "Visualização da Imagem",
"Image in applet": "Imagem em Applet",
"Insert GUIDO Music Notation": "Inserir Notação GUIDO de Música",
"MIDI File": "Arquivo MIDI",
"OK": "OK",
"Options": "Opções",
"Preview": "Visualização",
"Preview the image in a new window": "Visualizar imagem em uma nova janela",
"Source Code": "Codigo Fonte",
"With Mozilla, the applet will not be visible in editor, but only in Web page after submitting.": "Com Mozilla, o applet não estará visível no editor, somente na Página Web depois do envio.",
"Zoom": "Ampliação",
"Zoom :": "Ampliação :"
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/NoteServer/lang/pt_br.js | JavaScript | art | 1,474 |
<html>
<head>
<title>Insert GUIDO Music Notation</title>
<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
<script type="text/javascript" src="../note-server.js"></script>
<script type="text/javascript" src="../../../popups/popup.js"></script>
<script type="text/javascript">
window.resizeTo(500, 200);
NoteServer = window.opener.NoteServer;
var editor = null;
function Init() {
__dlg_translate('NoteServer');
__dlg_init();
// var param = window.dialogArguments;
// if (param) {
// document.getElementById("f_midi").value = param["f_midi"];
// document.getElementById("f_code").value = param["f_code"];
// document.getElementById("f_zoom").value = param["f_zoom"];
// document.getElementById("f_affcode").value = param["f_affcode"];
// document.getElementById("f_applet").value = param["f_applet"];
// }
// editor = param.editor;
document.getElementById("f_code").focus();
// document.getElementById("f_code").select();
}
function onOK() {
var f_code = document.getElementById("f_code");
if (!f_code.value) {
alert("You have to enter GUIDO code");
f_code.focus();
return false;
}
// pass data back to the calling window
var param = {};
param["f_code"] = f_code.value;
var f_zoom = document.getElementById("f_zoom");
var z = "1.0";
if (f_zoom.value == "1.0" || f_zoom.value == "100%") z = 1.0;
else if (f_zoom.value == "0.8" || f_zoom.value == "80%") z = 0.8;
else if (f_zoom.value == "1.2" || f_zoom.value == "120%") z = 1.2;
else if (f_zoom.value == "1.5" || f_zoom.value == "150%") z = 1.5;
param["f_zoom"] = z;
param["f_midi"] = document.getElementById("f_midi").checked;
param["f_affcode"] = document.getElementById("f_affcode").checked;
param["f_applet"] = document.getElementById("f_applet").checked;
__dlg_close(param);
return false;
}
function onCancel() {
__dlg_close(null);
return false;
}
function message(){
if (document.getElementById("f_applet").checked)
if (!((navigator.userAgent.toLowerCase().indexOf("msie") != -1)
&& (navigator.userAgent.toLowerCase().indexOf("opera") == -1))) {
alert(HTMLArea._lc("With Mozilla, the applet will not be visible in editor, but only in Web page after submitting.", 'NoteServer'));
}
}
function onPreview() {
var f_code = document.getElementById("f_code");
var f_zoom = document.getElementById("f_zoom");
var z = "1.0";
if (f_zoom.value == "1.0" || f_zoom.value == "100%") z = 1.0;
else if (f_zoom.value == "0.8" || f_zoom.value == "80%") z = 0.8;
else if (f_zoom.value == "1.2" || f_zoom.value == "120%") z = 1.2;
else if (f_zoom.value == "1.5" || f_zoom.value == "150%") z = 1.5;
var url = GetGIFURL(f_code.value,z,"");
if (!f_code.value) {
alert("You have to enter GUIDO code");
f_code.focus();
return false;
}
window.ipreview.location.replace(url);
return false;
}
</script>
</head>
<body class="Dialog" onload="Init()">
<div class="title">Insert GUIDO Music Notation</div>
<span>Guido code</span> :
<br><textarea rows="7" id="f_code" cols="55"></textarea><br>
<div class="space"></div>
<fieldset style="float: left; margin-left: 5px;">
<legend>Options</legend>
<input type="checkbox" id="f_midi" value="ON"> <span>Add MIDI link to allow students to hear the music</span>
<div class="space"></div>
<input type="checkbox" id="f_affcode" value="ON"> <span>Add GUIDO Code in a textbox on the page</span>
<div class="space"></div>
</fieldset>
<fieldset style="float: right; margin-left: 5px;">
<legend>Format</legend>
<input type="checkbox" id="f_applet" value="ON" onclick="message();" > <span>Image in applet</span>
<div class="space"></div>
<span>Zoom</span> :
<select size="1" id="f_zoom" title="Zoom :">
<option value="0.8">80%</option>
<option selected="selected">100%</option>
<option value="1.2">120%</option>
<option value="1.5">150%</option>
</select>
<div class="space"></div>
</fieldset>
<br clear="all" />
<table width="100%" style="margin-bottom: 0.2em">
<tr>
<td style="vertical-align: bottom;">
<span>Image Preview</span>:<br />
<iframe name="ipreview" id="ipreview" frameborder="0" style="border : 1px solid gray;" height="200" width="350" src=""></iframe>
</td>
<td style="vertical-align: bottom;" style="text-align: right">
<button type="button" name="preview" onclick="return onPreview();"
title="Preview the image in a new window">Preview</button><br>
<button type="button" name="ok" onclick="return onOK();"><span>OK</span></button><br>
<button type="button" name="cancel" onclick="return onCancel();"><span>Cancel</span></button>
</td>
</tr>
<tr>
<td colspan="2">
<p>Sample Guido Codes:</p>
<p><a href="http://piano-go.chez.tiscali.fr/rachmaninoff.gmn" onclick="window.open(this.href,'_blank');return false;">Code Sample 1</a> or type [ do re mi fa sol la si ] | <a href="http://www.informatik.tu-darmstadt.de/AFS/SALIERI/guido/demos.html" onclick="window.open(this.href,'_blank');return false;">Code Sample 2</a></p>
<p>Resources: </p>
<p>The Guido Specification (<a href="http://piano-go.chez.tiscali.fr/GUIDO-Music%20Notation%20Format.pdf" onclick="window.open(this.href,'_blank');return false;">PDF)</a> | <a href="http://www.salieri.org/guido/doc.html" onclick="window.open(this.href,'_blank');return false;">(HTML)</a></p>
<p><a href="http://www.salieri.org/guido/" onclick="window.open(this.href,'_blank');return false;">GUIDO Music Notation Format Site</a> | <a href="http://www.noteserver.org/" onclick="window.open(this.href,'_blank');return false;">Guido Note Server</a> | <a href="http://sourceforge.net/projects/guidolib/" onclick="window.open(this.href,'_blank');return false;">SourceForge Homepage</a></p>
</td>
</tr>
</table>
</body>
</html> | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/NoteServer/popups/codenote.html | HTML | art | 5,798 |
// Marquee plugin for HTMLArea/Xinha
// Implementation by Udo Schmal based on HTMLArea 3.0
// Original Author - Udo Schmal, Schaffrath-NeueMedien
//
// (c) Udo Schmal.2004
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
function InsertMarquee(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
// register the toolbar buttons provided by this plugin
cfg.registerButton({
id : "insertmarquee",
tooltip : this._lc("Insert scrolling marquee"),
image : editor.imgURL("ed_marquee.gif", "InsertMarquee"),
textMode : false,
action : function(editor) {
self.buttonPress(editor);
}
})
cfg.addToolbarElement("insertmarquee", "inserthorizontalrule", -1);
}
InsertMarquee._pluginInfo = {
name : "InsertMarquee",
version : "1.0",
developer : "Udo Schmal",
developer_url : "http://www.schaffrath-NeueMedien.de/",
c_owner : "Udo Schmal & Schaffrath NeueMedien",
license : "htmlArea"
};
InsertMarquee.prototype._lc = function(string) {
return Xinha._lc(string, "InsertMarquee");
};
InsertMarquee.prototype.buttonPress = function(editor, node) {
function setAttr(el, attr, value) {
if (value != "")
el.setAttribute(attr, value);
else
el.removeAttribute(attr);
}
var outparam = new Object();
if (typeof node == "undefined") {
node = editor.getParentElement();
}
if ( node.tagName.toLowerCase() == "marquee") {
outparam.f_name = node.name;
outparam.f_behavior = node.behavior;
outparam.f_direction = node.direction;
outparam.f_text = node.innerHTML;
outparam.f_width = node.width;
outparam.f_height = node.height;
outparam.f_bgcolor = node.bgColor;
outparam.f_scrollamount = node.scrollAmount;
outparam.f_scrolldelay = node.scrollDelay;
} else {
outparam = {
f_name : '',
f_behavior : '',
f_direction : '',
f_text : '',
f_width : '',
f_height : '',
f_bgcolor : '',
f_scrollamount : '',
f_scrolldelay : ''
};
}
editor._popupDialog( "plugin://InsertMarquee/insert_marquee", function( param )
{
if ( !param )
{ //user must have pressed Cancel
return false;
} else if ( node.tagName.toLowerCase() == "marquee") {
setAttr(node, "name", param["f_name"]);
setAttr(node, "id", param["f_name"]);
setAttr(node, "behavior", param["f_behavior"]);
setAttr(node, "direction", param["f_direction"]);
setAttr(node, "width", param["f_width"]);
setAttr(node, "height", param["f_height"]);
setAttr(node, "bgColor", param["f_bgcolor"]);
setAttr(node, "scrollAmount", param["f_scrollamount"]);
setAttr(node, "scrollDelay", param["f_scrolldelay"]);
node.innerHTML = param["f_text"];
} else {
var text = '<marquee name="' + param["f_name"] + '" ' +
'id="' + param["f_name"] + '" ' +
'behavior="' + param["f_behavior"] + '" ' +
'direction="' + param["f_direction"] + '" ' +
'width="' + param["f_width"] + '" ' +
'height="' + param["f_height"] + '" ' +
'bgcolor="' + param["f_bgcolor"] + '" ' +
'scrollamount="' + param["f_scrollamount"] + '" ' +
'scrolldelay="' + param["f_scrolldelay"] + '">\n';
alert(text);
text = text + param["f_text"];
text = text + '</marquee>';
editor.insertHTML( text );
}
}, outparam);
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertMarquee/InsertMarquee.js | JavaScript | art | 3,508 |
// I18N constants
// LANG: "nl", ENCODING: UTF-8
// Author: Maarten Molenschot, maarten@nrgmm.nl
{
"Name/ID:": "Naam/ID:",
"Insert scrolling marquee": "Scrollende tekst invoegen",
"Insert marquee": "Tekst invoegen",
"Direction:": "Richting:",
"Behavior:": "Gedrag:",
"Text:": "Tekst:",
"Background-Color:": "Achtergrondkleur:",
"Width:": "Breedte:",
"Height:": "Hoogte:",
"Speed Control": "Snelheidscontrole",
"Scroll Amount:": "Snelheid:",
"Scroll Delay:": "Vertraging:",
"Cancel": "Annuleren"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertMarquee/lang/nl.js | JavaScript | art | 542 |
// I18N constants
// LANG: "it", ENCODING: UTF-8 | ISO-8859-1
// Author: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de
{
"Insert scrolling marquee": "Inserisca marquee",
"Cancel": "Annullamento"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertMarquee/lang/it.js | JavaScript | art | 241 |
// I18N constants
// LANG: "de", ENCODING: UTF-8 | ISO-8859-1
// Author: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de
{
"Insert scrolling marquee": "Marquee einfügen",
"Insert marquee": "Marquee einfügen",
"Direction:": "Ausrichtung:",
"Behavior:": "Bewegung:",
"Text:": "Text:",
"Background-Color:": "Hintergrundfarbe:",
"Width:": "Breite:",
"Height:": "Höhe:",
"Speed Control": "Geschwindigkeitseinstellungen",
"Cancel": "Abbrechen"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertMarquee/lang/de.js | JavaScript | art | 513 |
// I18N constants
// LANG: "fr", ENCODING: UTF-8
{
"Name/ID:": "Nom/ID",
"Insert scrolling marquee": "Insérer marquee défilant",
"Insert marquee": "Insérer marquee",
"Direction:": "Direction",
"Behavior:": "Comportement",
"Text:": "Texte",
"Background-Color:": "Couleur de fond",
"Width:": "Largeur",
"Height:": "Hauteur",
"Speed Control": "Controle de vitesse",
"Scroll Amount:": "Quantité de défilement",
"Scroll Delay:": "Délai du défilement",
"Cancel": "Annuler"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertMarquee/lang/fr.js | JavaScript | art | 518 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"Marquee Editor": "マーキーエディタ",
"Name/ID:": "名前/ID",
"Insert scrolling marquee": "スクロールマーキーの挿入",
"Insert marquee": "マーキーの挿入",
"Direction:": "方向:",
"Behavior:": "動作:",
"Text:": "テキスト:",
"Background-Color:": "背景色:",
"Width:": "幅:",
"Height:": "高さ:",
"Speed Control": "速度調整",
"Scroll Amount:": "スクロール量:",
"Scroll Delay:": "スクロール遅延:",
"Cancel": "中止",
"Continuous": "左右連続",
"Slide": "スライド",
"Alternate": "折り返し",
"You must enter the form name": "名前の入力が必要です"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertMarquee/lang/ja.js | JavaScript | art | 707 |
// I18N constants
// LANG: "nb", ENCODING: UTF-8
// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
{
"Name/ID:": "Navn/ID:",
"Insert scrolling marquee": "Sett inn rulletekst",
"Insert marquee": "Sett inn rulletekst",
"Direction:": "Rettning:",
"Behavior:": "Oppførsel:",
"Text:": "Tekst:",
"Background-Color:": "Bakgrunnsfarge:",
"Width:": "Bredde:",
"Height:": "Høyde:",
"Speed Control": "Egenskaper for hastigheten til rulleteksten",
"Scroll Amount:": "Hastighet:",
"Scroll Delay:": "Forsinkelse:",
"Cancel": "Avbryt"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertMarquee/lang/nb.js | JavaScript | art | 577 |
// I18N constants
//
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
//
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
//
// Last revision: 06 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
//
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"Alternate": "Alternativo",
"Background-Color:": "Côr de Fundo:",
"Behavior:": "Comportamento:",
"Cancel": "Cancelar",
"Continuous": "Contínuo",
"Direction:": "Direção:",
"Height:": "Altura:",
"Insert scrolling marquee": "Inserir faixa rolante",
"Left": "Esquerda",
"Marquee Editor": "Editor de Faixas",
"Name": "Nome",
"Name/ID:": "Nome/ID:",
"OK": "OK",
"Right": "Direita",
"Scroll Amount:": "Quantidade de Rolagem:",
"Scroll Delay:": "Atrazo de Rolagem:",
"Slide": "Corrediço",
"Speed Control": "Controle de Velocidade",
"Text:": "Texto:",
"Width:": "Largura:"
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertMarquee/lang/pt_br.js | JavaScript | art | 1,108 |
<html>
<head>
<title>Marquee Editor</title>
<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
<script type="text/javascript" src="../../../popups/popup.js"></script>
<script type="text/javascript">
var fields = ["f_name", "f_text", "f_direction", "f_behavior", "f_bgcolor", "f_width", "f_height", "f_scrollamount", "f_scrolldelay"];
function Init() {
window.resizeTo(350, 380);
__dlg_translate('InsertMarquee');
__dlg_init();
var param = window.dialogArguments;
for (var i in fields) {
document.getElementById(fields[i]).value = param[fields[i]];
}
document.getElementById("f_name").focus();
}
function onOK() {
var required = {
"f_name": "You must enter the form name"
};
for (var i in required) {
var el = document.getElementById(i);
if (!el.value) {
alert(HTMLArea._lc(required[i], 'InsertMarquee'));
el.focus();
return false;
}
}
// pass data back to the calling window
var param = new Object();
for (var i in fields) {
param[fields[i]] = document.getElementById(fields[i]).value;
}
__dlg_close(param);
return false;
}
function onCancel() {
__dlg_close(null);
return false;
}
</script>
<style type="text/css">
.fr { width: 9em; float: left; padding: 2px 5px; text-align: right; }
</style>
</head>
<body class="dialog" onload="Init()">
<div class="title">Marquee Editor</div>
<form>
<div class="fr">Name/ID:</div>
<input type="text" name="name" id="f_name" size="20" title="Name" value="" />
<p />
<div class="fr">Direction:</div>
<select id="f_direction" name="direction">
<option value="">Left</option>
<option value="right">Right</option>
</select>
<p />
<div class="fr">Behavior:</div>
<select id="f_behavior" name="behavior">
<option value="">Continuous</option>
<option value="slide">Slide</option>
<option value="alternate">Alternate</option>
</select>
<p />
<div class="fr">Text:</div>
<input type="text" id="f_text" name="text" value="" size="30" />
<p />
<div class="fr">Background-Color:</div>
<input type="text" id="f_bgcolor" name="bgcolor" value="" size="30" />
<p />
<div class="fr">Width:</div>
<input type="text" id="f_width" name="width" value="100" size="5" maxlength="4" />
<p />
<div class="fr">Height:</div>
<input type="text" id="f_height" name="height" value="100" size="5" maxlength="4" />
<p />
<fieldset>
<legend>Speed Control</legend>
<div class="fr">Scroll Amount:</div>
<input type="text" id="f_scrollamount" name="scrollamount" value="100" maxlength="4" />
<p />
<div class="fr">Scroll Delay:</div>
<input type="text" id="f_scrolldelay" name="scrolldelay" value="100" maxlength="4" />
<p />
</fieldset>
<div id="buttons">
<button type="submit" name="ok" onclick="return onOK();">OK</button>
<button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
</div>
</form>
</body>
</html> | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/InsertMarquee/popups/insert_marquee.html | HTML | art | 3,037 |
// I18N constants
// LANG: "nl", ENCODING: UTF-8
// Author: Maarten Molenschot, maarten@nrgmm.nl
{
"Spell Check using ieSpell": "Engelse spellingscontrole met ieSpell",
"ieSpell can only be used in Internet Explorer": "ieSpell kan alleen worden gebruikt in Internet Explorer",
"ieSpell not detected. Click Ok to go to download page.": "ieSpell werd niet gevonden. Klik op Ok om ieSpell te downloaden"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/ClientsideSpellcheck/lang/nl.js | JavaScript | art | 419 |
// I18N constants
// LANG: "de", ENCODING: UTF-8
// translated: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de
{
"Spell Check using ieSpell": "Englische Rechtschreibkontrolle mit ieSpell",
"ieSpell can only be used in Internet Explorer": "ieSpell kann nur mit dem Internet Explorer benutzt werden",
"ieSpell not detected. Click Ok to go to download page.": "ieSpell wurde nicht gefunden. Drücken sie Ok um ieSpeck herunter zu laden."
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/ClientsideSpellcheck/lang/de.js | JavaScript | art | 480 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"Spell Check using ieSpell": "スペルチェックに ieSpell を使う",
"ieSpell can only be used in Internet Explorer": "ieSpell は Internet Explorer でのみ使用できます",
"ieSpell not detected. Click Ok to go to download page.": "ieSpell が検知されませんでした。OK をクリックしてダウンロードページを開いてください。"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/ClientsideSpellcheck/lang/ja.js | JavaScript | art | 428 |
// Dummy file
{}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/ClientsideSpellcheck/lang/nb.js | JavaScript | art | 20 |
// I18N constants
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
// Last revision: 05 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"Spell Check using ieSpell": "Verificação Ortográfica utilizando ieSpell"
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/ClientsideSpellcheck/lang/pt_br.js | JavaScript | art | 570 |
// IE Spell Implementation for XINHA
//Client-side spell check plugin
//This implements the API for ieSpell, which is owned by Red Egg Software
//For more info about ieSpell, go to http://www.iespell.com/index.htm
// Distributed under the same terms as Xinha itself.
// This notice MUST stay intact for use (see license.txt).
function ClientsideSpellcheck(editor) {
this.editor = editor;
var cfg = editor.config;
var bl = ClientsideSpellcheck.btnList;
var self = this;
// see if we can find the mode switch button, insert this before that
var id = "clientsidespellcheck";
cfg.registerButton(id, this._lc("Spell Check using ieSpell"), editor.imgURL("clientside-spellcheck.gif", "ClientsideSpellcheck"), false,
function(editor, id) {
// dispatch button press event
self.buttonPress(editor, id);
});
if(Xinha.is_ie) {
cfg.addToolbarElement("clientsidespellcheck", "print", 1);
}
}
ClientsideSpellcheck._pluginInfo = {
name : "ClientsideSpellcheck",
version : "1.0",
developer : "Michael Harris",
developer_url : "http://www.jonesinternational.edu",
c_owner : "Red Egg Software",
sponsor : "Jones International University",
sponsor_url : "http://www.jonesinternational.edu",
license : "htmlArea"
};
ClientsideSpellcheck.prototype._lc = function(string) {
return Xinha._lc(string, 'ClientsideSpellcheck');
};
ClientsideSpellcheck.prototype.buttonPress = function(editor) {
try {
var tmpis = new ActiveXObject("ieSpell.ieSpellExtension");
tmpis.CheckAllLinkedDocuments(document);
}
catch(exception) {
if(exception.number==-2146827859) {
if (confirm(this.lc("ieSpell not detected. Click Ok to go to download page.")))
window.open("http://www.iespell.com/download.php","DownLoad");
} else {
alert(this.lc("ieSpell can only be used in Internet Explorer"));
}
}
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/unsupported_plugins/ClientsideSpellcheck/ClientsideSpellcheck.js | JavaScript | art | 1,992 |
.htmlarea .toolbar {
background-color:#c3daf9;
background-image:url(back.png);
background-repeat:repeat-y;
}
.htmlarea .toolbarRow {
margin-top:2px;
margin-bottom:2px;
background-image:url(button-background.png);
height:25px;
}
.htmlarea .toolbar .button {
width:20px;
height:20px;
padding:1px;
border:none;
background-image:url(button-background.png);
}
.buttonImageContainer {
position:relative;
left:1px;
top:1px;
}
.htmlarea .toolbar .separator {
margin:0;
background-image:url(separator.png);
width:7px;
height:20px;
padding:0;
}
.separator {
border:none;
}
.htmlarea .toolbar a.button:hover {
border:1px solid #003355;
padding:0;
background-image:url(hover.png);
}
.htmlarea .toolbar .button.buttonPressed
{
border:1px solid #003355;
padding:0;
background-image:url(selected.png);
}
.htmlarea .statusBar {
padding:0;
height:20px;
background-image:url(button-background.png);
background-repeat:repeat-x;
background-color:#c3daf9;
color:ButtonText;
font:11px helvetica,arial,sans-serif;
}
.htmlarea .statusBar .statusBarWidgetContainer
{
background-image: url(button-background.png);
background-repeat: repeat-x;
background-color: #c3daf9;
}
.htmlarea .statusBar .statusBarTree {
display:block;
margin:3px;
}
.htmlarea .statusBar .statusBarTree a {
padding:2px 5px;
color:#00f;
text-decoration:none;
}
.htmlarea .panel h1 {
background-image:url(button-background.png);
background-repeat:repeat-x;
background-color:#c3daf9;
}
.dialog {
background-color:#c3daf9;
}
.dialog .title {
background-image: url(button-background.png);
}
.dialog button{
background-image: url(button-background.png);
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/skins/xp-blue/skin.css | CSS | art | 1,781 |
.htmlarea .toolbar {
background-color:#889fc9;
background-image:url(back.png);
background-repeat:repeat-y;
}
.htmlarea .toolbarRow {
margin-top:2px;
margin-bottom:2px;
background-image:url(button-background.png);
height:25px;
}
.htmlarea .toolbar .button {
width:20px;
height:20px;
padding:1px;
border:none;
background-image:url(button-background.png);
}
.buttonImageContainer {
position:relative;
left:1px;
top:1px;
}
.htmlarea .toolbar .separator {
margin:0;
background-image: url(separator.png);
width:7px;
height:20px;
padding:1px;
border:none;
}
.htmlarea .toolbar a.button:hover {
border:none !important;
padding:1px;
background-image:url(hover.png);
}
.htmlarea .toolbar .button.buttonPressed
{
padding:1px;
background-image:url(selected.png);
}
.htmlarea .statusBar {
padding:0;
height:20px;
background-image:url(button-background.png);
background-repeat:repeat-x;
background-color:#889fc9;
color:ButtonText;
font:11px helvetica,arial,sans-serif;
}
.htmlarea .statusBar .statusBarWidgetContainer
{
background-image: url(button-background.png);
background-repeat: repeat-x;
background-color: #889fc9;
}
.htmlarea .statusBar .statusBarTree {
display:block;
margin:3px;
}
.htmlarea .statusBar .statusBarTree a {
padding:2px 5px;
color:#00f;
text-decoration:none;
}
.htmlarea .panel h1 {
background-image:url(button-background.png);
background-repeat:repeat-x;
background-color:#889fc9;
}
.dialog {
background-color:#f7f8fd;
}
.dialog .title {
background-image: url(button-background.png);
}
.dialog button{
background-image: url(button-background.png);
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/skins/titan/skin.css | CSS | art | 1,745 |
.htmlarea .toolbar, .htmlarea .toolbar .button
{
background-color:#f7f8fd;
}
.htmlarea .toolbarRow
{
margin-top:2px;
margin-bottom:2px;
border:1px dotted #DEDEDE;
padding:2px;
-moz-border-radius:3px;
margin:4px;
height:25px;
}
.htmlarea .toolbar .button
{
background-image: url(button-background.png);
width:20px;
height:20px;
padding:0px;
border:1px solid #f7f8fd;
}
.buttonImageContainer
{
position:relative;
left:1px;
top :1px;
}
.htmlarea .toolbar .separator {
margin:0px;
background-image: url(separator.gif);
border:1px #f7f8fd;
width: 7px;
height: 20px;
padding: 0px;
}
.htmlarea .toolbar a.button:hover
{
border: 1px solid;
border-color: white #CCC #CCC white;
}
.htmlarea .toolbar a.buttonDisabled:hover
{
border-color: #f7f8fd;
}
.htmlarea .toolbar .button.buttonActive,
.htmlarea .toolbar .button.buttonPressed
{
border: 1px solid;
border-color: #CCC white white #CCC;
}
.htmlarea .statusBar {
border-color: #CCC white white #CCC;
padding: 0px;
height:20px;
background-image: url(button-background.png);
background-repeat: repeat-x;
background-color: #f7f8fd;
color: ButtonText;
font: 11px helvetica,arial,sans-serif;
}
.htmlarea .statusBar .statusBarWidgetContainer
{
background-image: url(button-background.png);
background-repeat: repeat-x;
background-color: #f7f8fd;
}
.htmlarea .statusBar .statusBarTree
{
display:block;
margin: 3px;
}
.htmlarea .statusBar .statusBarTree a
{
padding: 2px 5px;
color: #00f;
text-decoration:none;
}
.htmlarea .panel h1
{
background-image: url('button-background.png');
background-repeat: repeat-x;
background-color: #f7f8fd;
}
.dialog {
background-color:#f7f8fd;
}
.dialog .title {
background-image: url(button-background.png);
}
.dialog button{
background-image: url(button-background.png);
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/skins/blue-look/skin.css | CSS | art | 1,856 |
/*--------------------------------*/
/* silva skin for Xinha */
/* */
/* by Raimund Meyer (ray) */
/* xinha@raimundmeyer.de */
/* 2007-1-9 */
/*--------------------------------*/
.htmlarea .toolbar, .htmlarea .toolbar .button
{
background-color:transparent;
}
.htmlarea .toolbar
{
padding:0;
background-image: url(toolbar.png);
}
.htmlarea .toolbarRow
{
margin-top:0px;
margin-bottom:0px;
border:1px solid #F1F1F1;
padding:0px;
-moz-border-radius:15px;
margin:4px;
height:20px;
}
/* hack: IE6 does not know border-color: transparent;*/
html > body .htmlarea .toolbarRow {
border-color: transparent;
}
.htmlarea .toolbar .button
{
width:18px;
height:18px;
padding:1px 2px 2px 1px ;
border: solid #F1F1F1;
border-width:1px;
}
html > body .htmlarea .toolbar .button {
border-color: transparent;
}
.buttonImageContainer
{
position:relative;
left:1px;
top :1px;
}
.htmlarea .toolbar a.button:hover
{
border: solid 1px;
border-color: black;
}
.htmlarea .toolbar a.buttonDisabled:hover
{
border: solid transparent 1px;
}
.htmlarea .toolbar .button.buttonActive,
.htmlarea .toolbar .button.buttonPressed
{
border: black dotted 1px;
padding:2px 1px 1px 2px;
}
.htmlarea .toolbar .button.buttonPressed {
padding:1px 2px 2px 1px ;
}
.htmlarea .toolbar .separator {
margin: 3px;
border-left: 1px dotted black;
border-right: none;
width: 1px;
height: 11px;
padding: 0px;
}
.htmlarea .statusBar {
border-color: #CCC white white #CCC;
padding: 0px;
height:20px;
background-image: url(statusbar.png);
background-repeat: repeat-x;
background-color: white;
color: grey;
font: 11px Arial,Helvetica,sans-serif;
vertical-align: middle;
}
.htmlarea .statusBar .statusBarWidgetContainer
{
background-image: url(statusbar.png);
background-repeat: repeat-x;
background-color: white;
}
.htmlarea .statusBar .statusBarTree
{
display:block;
margin: 3px;
}
.htmlarea .statusBar .statusBarTree a
{
padding: 0 5px;
color: green;
text-decoration:none;
letter-spacing:0.15em;
font-size:120%;
border: none;
padding: 2px 5px;
}
.htmlarea .statusBar .statusBarTree a:visited { color:green; }
.htmlarea .statusBar .statusBarTree a:hover {
background-color: transparent;
color: green;
border: none;
padding: 1px 5px;
}
.dialog {
/* background: url(dialog.jpg) #f0f0f0 no-repeat; */
background-color: #f0f0f0;
}
body.dialog {
padding-top:0;
}
.dialog, .dialog button, .dialog input, .dialog select, .dialog textarea, .dialog table,.dialog td,.dialog th, .panel {
font: 11px Arial,Helvetica,sans-serif !IMPORTANT;
}
.panel a {
color:#444;
border-bottom: 1px dotted #bbb;
}
.panel a:hover {
background-color: #eee;
}
.dialog .title,.dialog h1,.htmlarea .panel h1 {
background-image: url(toolbar.png);
background-repeat: repeat-x;
color:black;
font:Arial,Helvetica,sans-serif !IMPORTANT;
letter-spacing:0.2em;
font-size:13px;
font-weight:400;
}
.dialog .title {
}
.dialog button{
background: url(statusbar.png) bottom repeat-x;
border:1px solid grey;
height:18px;
vertical-align: middle
}
/* separate definition for the sake of IE6*/
.dialog input[type=button],.dialog input[type=submit]{
background: url(statusbar.png) bottom repeat-x;
border:1px solid grey;
height:18px;
vertical-align: middle
}
.htmlarea textarea.xinha_textarea {
background:url(html.gif) bottom right no-repeat;
/*padding:5px;
border:2px dotted #bbb;*/
font-family: "Lucida Console",Courier,monospace;
font-size: 10pt;
}
.htmlarea .dTreeNode {
color:black;
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/skins/silva/skin.css | CSS | art | 3,663 |
.htmlarea .toolbar {
background-color:#f2f0e4;
background-image:url(back.png);
background-repeat:repeat-y;
}
.htmlarea .toolbarRow {
margin-top:2px;
margin-bottom:2px;
background-image:url(button-background.png);
height:25px;
}
.htmlarea .toolbar .button {
width:20px;
height:20px;
padding:1px;
border:none;
background-image:url(button-background.png);
}
.buttonImageContainer {
position:relative;
left:1px;
top:1px;
}
.htmlarea .toolbar .separator {
margin:0;
background-image:url(separator.png);
width:7px;
height:20px;
padding:0;
}
.separator {
border:none;
}
.htmlarea .toolbar a.button:hover {
border:1px solid #335500;
padding:0;
background-image:url(hover.png);
}
.htmlarea .toolbar .button.buttonPressed
{
border:1px solid #335500;
padding:0;
background-image:url(selected.png);
}
.htmlarea .statusBar {
padding:0;
height:20px;
background-image:url(button-background.png);
background-repeat:repeat-x;
background-color:#f2f0e4;
color:ButtonText;
font:11px helvetica,arial,sans-serif;
}
.htmlarea .statusBar .statusBarWidgetContainer
{
background-image: url(button-background.png);
background-repeat: repeat-x;
background-color: #f2f0e4;
}
.htmlarea .statusBar .statusBarTree {
display:block;
margin:3px;
}
.htmlarea .statusBar .statusBarTree a {
padding:2px 5px;
color:#00f;
text-decoration:none;
}
.htmlarea .panel h1 {
background-image:url(button-background.png);
background-repeat:repeat-x;
background-color:#f2f0e4;
}
.dialog {
background-color:#f2f0e4;
}
.dialog .title {
background-image: url(button-background.png);
}
.dialog button{
background-image: url(button-background.png);
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/skins/xp-green/skin.css | CSS | art | 1,780 |
.htmlarea .toolbar { background-color:#f7f8fd;}
.htmlarea .toolbarRow
{
/*background-image: url(button-background.png);*/
background-color: #C5DCEC;
margin-top:2px;
margin-bottom:2px;
border:1px solid #7A8A99;
padding:2px;
-moz-border-radius:4px;
margin:4px;
height:25px;
}
.htmlarea .toolbar .button {
background-image: url(button-background.png);
width:20px;
height:21px;
padding:1px;
border:0px;
}
.buttonImageContainer
{
position:relative;
left:1px;
top :1px;
}
.htmlarea .toolbar .separator
{
margin:0px;
background-image: url(separator.gif);
border:1px #f7f8fd;
width: 7px;
height: 21px;
padding: 0px;
}
.htmlarea .toolbar a.button:hover,
.htmlarea .toolbar a.buttonDisabled:hover
{
padding: 0px;
border: 1px solid;
border-color: #7A8A99;
}
.htmlarea .toolbar .button.buttonActive,
.htmlarea .toolbar .button.buttonPressed
{
padding: 0px;
border: 1px solid;
border-color: #79A4CC #FFFFFF #FFFFFF #79A4CC;
}
.htmlarea .statusBar {
border-color: #CCC white white #CCC;
padding: 0px;
height:20px;
background-image: url(button-background.png);
background-repeat: repeat-x;
background-color: #f7f8fd;
color: ButtonText;
font: 11px helvetica,arial,sans-serif;
}
.htmlarea .statusBar .statusBarWidgetContainer
{
background-image: url(button-background.png);
background-repeat: repeat-x;
background-color: #f7f8fd;
}
.htmlarea .statusBar .statusBarTree
{
display:block;
margin: 3px;
}
.htmlarea .statusBar .statusBarTree a
{
padding: 2px 5px;
color: #00f;
text-decoration:none;
}
.htmlarea .panel h1
{
background-image: url('button-background.png');
background-repeat: repeat-x;
background-color: #f7f8fd;
}
.dialog {
background-color: #EEEEEE;
}
.dialog .title {
background-image: url(button-background.png);
}
.dialog button{
background-image: url(button-background.png);
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/skins/blue-metallic/skin.css | CSS | art | 1,993 |
.htmlarea .toolbar {
background-color:#889fc9;
background-image:url(back.png);
background-repeat:repeat-y;
}
.htmlarea .toolbarRow {
margin-top:2px;
margin-bottom:2px;
background-image:url(button-background.png);
height:25px;
}
.htmlarea .toolbar .button {
width:20px;
height:20px;
padding:1px;
border:none;
background-image:url(button-background.png);
}
.buttonImageContainer {
position:relative;
left:1px;
top:1px;
}
.htmlarea .toolbar .separator {
margin:0;
background-image: url(separator.png);
width:7px;
height:20px;
padding:1px;
border:none;
}
.htmlarea .toolbar a.button:hover {
border:none !important;
padding:1px;
background-image:url(hover.png);
}
.htmlarea .toolbar .button.buttonPressed
{
padding:1px;
background-image:url(selected.png);
}
.htmlarea .statusBar {
padding:0;
height:20px;
background-image:url(button-background.png);
background-repeat:repeat-x;
background-color:#889fc9;
color:ButtonText;
font:11px helvetica,arial,sans-serif;
}
.htmlarea .statusBar .statusBarWidgetContainer
{
background-image: url(button-background.png);
background-repeat: repeat-x;
background-color: #889fc9;
}
.htmlarea .statusBar .statusBarTree {
display:block;
margin:3px;
}
.htmlarea .statusBar .statusBarTree a {
padding:2px 5px;
color:#00f;
text-decoration:none;
}
.htmlarea .panel h1 {
background-image:url(button-background.png);
background-repeat:repeat-x;
background-color:#889fc9;
}
.dialog {
background-color:#889fc9;
}
.dialog .title {
background-image: url(button-background.png);
}
.dialog button{
background-image: url(button-background.png);
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/skins/inditreuse/skin.css | CSS | art | 1,738 |
.htmlarea .toolbar, .htmlarea .toolbar .button
{
background-color:#f8fdf8;
}
.htmlarea .toolbarRow
{
margin-top:2px;
margin-bottom:2px;
border:1px dotted #DEDEDE;
padding:2px;
-moz-border-radius:3px;
margin:4px;
height:25px;
}
.htmlarea .toolbar .button
{
background-image:url(button-background.gif);
width:20px;
height:20px;
padding:0;
border:1px solid #f8fdf8;
}
.buttonImageContainer
{
position:relative;
left:1px;
top:1px;
}
.htmlarea .toolbar .separator {
margin:0;
background-image:url(separator.gif);
border:1px #f8fdf8;
width:7px;
height:20px;
padding:0;
}
.htmlarea .toolbar a.button:hover
{
border:1px solid;
border-color:#fff #ccc #ccc #fff;
}
.htmlarea .toolbar a.buttonDisabled:hover
{
border-color:#f8fdf8;
}
.htmlarea .toolbar .buttonActive,
.htmlarea .toolbar .buttonPressed
{
border:1px solid;
border-color:#ccc #fff #fff #ccc;
background:#ffb166;
}
.htmlarea .statusBar {
border-color:#ccc #fff #fff #ccc;
padding:0;
height:20px;
background-image:url(button-background.gif);
background-repeat:repeat-x;
background-color:#f8fdf8;
color:ButtonText;
font:11px helvetica,arial,sans-serif;
}
.htmlarea .statusBar .statusBarWidgetContainer
{
background-image: url(button-background.gif);
background-repeat: repeat-x;
background-color: #f8fdf8;
}
.htmlarea .statusBar .statusBarTree
{
display:block;
margin:3px;
}
.htmlarea .statusBar .statusBarTree a
{
padding:2px 5px;
color:#00f;
text-decoration:none;
}
.htmlarea .panel h1
{
background-image:url(button-background.gif);
background-repeat:repeat-x;
background-color:#f8fdf8;
}
.dialog {
background-color:#f8fdf8;
}
.dialog .title {
background-image: url(button-background.png);
}
.dialog button{
background-image: url(button-background.png);
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/skins/green-look/skin.css | CSS | art | 1,812 |