You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/10/08 21:54:16 UTC
svn commit: r454197 [18/29] - in /incubator/roller/trunk/web:
WEB-INF/classes/ roller-ui/authoring/editors/
roller-ui/authoring/editors/xinha/ roller-ui/authoring/editors/xinha/conf/
roller-ui/authoring/editors/xinha/contrib/ roller-ui/authoring/editor...
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/insert-anchor.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/insert-anchor.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/insert-anchor.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/insert-anchor.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,97 @@
+function InsertAnchor(editor) {
+ this.editor = editor;
+ var cfg = editor.config;
+ var self = this;
+
+ // register the toolbar buttons provided by this plugin
+ cfg.registerButton({
+ id : "insert-anchor",
+ tooltip : this._lc("Insert Anchor"),
+ image : editor.imgURL("insert-anchor.gif", "InsertAnchor"),
+ textMode : false,
+ action : function(editor) {
+ self.buttonPress(editor);
+ }
+ });
+ cfg.addToolbarElement("insert-anchor", "createlink", 1);
+}
+
+InsertAnchor._pluginInfo = {
+ name : "InsertAnchor",
+ origin : "version: 1.0, by Andre Rabold, MR Printware GmbH, http://www.mr-printware.de",
+ version : "2.0",
+ developer : "Udo Schmal",
+ developer_url : "http://www.schaffrath-neuemedien.de",
+ c_owner : "Udo Schmal",
+ sponsor : "L.N.Schaffrath NeueMedien",
+ sponsor_url : "http://www.schaffrath-neuemedien.de",
+ license : "htmlArea"
+};
+
+InsertAnchor.prototype._lc = function(string) {
+ return HTMLArea._lc(string, 'InsertAnchor');
+};
+
+InsertAnchor.prototype.onGenerate = function() {
+ var style_id = "IA-style";
+ var style = this.editor._doc.getElementById(style_id);
+ if (style == null) {
+ style = this.editor._doc.createElement("link");
+ style.id = style_id;
+ style.rel = 'stylesheet';
+ style.href = _editor_url + 'plugins/InsertAnchor/insert-anchor.css';
+ this.editor._doc.getElementsByTagName("HEAD")[0].appendChild(style);
+ }
+};
+
+InsertAnchor.prototype.buttonPress = function(editor) {
+ var outparam = null;
+ var html = editor.getSelectedHTML();
+ var sel = editor._getSelection();
+ var range = editor._createRange(sel);
+ var a = editor._activeElement(sel);
+ if(!(a != null && a.tagName.toLowerCase() == 'a')) {
+ a = editor._getFirstAncestor(sel, 'a');
+ }
+ if (a != null && a.tagName.toLowerCase() == 'a')
+ outparam = { name : a.id };
+ else
+ outparam = { name : '' };
+
+ editor._popupDialog( "plugin://InsertAnchor/insert_anchor", function( param ) {
+ if ( param ) {
+ var anchor = param["name"];
+ if (anchor == "" || anchor == null) {
+ if (a) {
+ var child = a.innerHTML;
+ a.parentNode.removeChild(a);
+ editor.insertHTML(child);
+ }
+ return;
+ }
+ try {
+ var doc = editor._doc;
+ if (!a) {
+// editor.surroundHTML('<a id="' + anchor + '" name="' + anchor + '" title="' + anchor + '" class="anchor">', '</a>');
+ a = doc.createElement("a");
+ a.id = anchor;
+ a.name = anchor;
+ a.title = anchor;
+ a.className = "anchor";
+ a.innerHTML = html;
+ if (HTMLArea.is_ie) {
+ range.pasteHTML(a.outerHTML);
+ } else {
+ editor.insertNodeAtSelection(a);
+ }
+ } else {
+ a.id = anchor;
+ a.name = anchor;
+ a.title = anchor;
+ a.className = "anchor";
+ }
+ }
+ catch (e) { }
+ }
+ }, outparam);
+};
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/insert-anchor.js
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/de.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/de.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/de.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/de.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,8 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8
+// translated: Raimund Meyer xinha@ray-of-light.org
+{
+ "Insert Anchor": "Anker einfügen",
+ "Anchor name": "Name (ID)",
+ "Delete": "Löschen"
+};
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/de.js
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/fr.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/fr.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/fr.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/fr.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,7 @@
+// I18N constants
+// LANG: "fr", ENCODING: UTF-8
+{
+ "Insert Anchor": "Insérer une ancre",
+ "Anchor name": "Nom de l'ancre",
+ "Delete": "Supprimer"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/nb.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/nb.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/nb.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/nb.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,7 @@
+// I18N constants
+// LANG: "nb", ENCODING: UTF-8
+// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
+{
+ "Insert Anchor": "Sett inn anker",
+ "Anchor name": "Ankernavn (ID)"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/nl.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/nl.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/nl.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/nl.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,8 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8
+// translated: Raimund Meyer xinha@ray-of-light.org
+{
+ "Insert Anchor": "Anker invoegen",
+ "Anchor name": "Naam (ID)",
+ "Delete": "Verwijderen"
+};
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/no.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/no.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/no.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/no.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,7 @@
+// I18N constants
+// LANG: "no", ENCODING: UTF-8
+// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
+{
+ "Insert Anchor": "Sett inn anker",
+ "Anchor name": "Ankernavn (ID)"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/pl.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/pl.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/pl.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/lang/pl.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,8 @@
+// I18N constants
+// LANG: "pl", ENCODING: UTF-8
+// translated: Krzysztof Kotowicz koto@webworkers.pl
+{
+ "Insert Anchor": "Wstaw kotwicÄ",
+ "Anchor name": "Nazwa kotwicy",
+ "Delete": "UsuÅ"
+};
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/popups/insert_anchor.html
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/popups/insert_anchor.html?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/popups/insert_anchor.html (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertAnchor/popups/insert_anchor.html Sun Oct 8 12:53:13 2006
@@ -0,0 +1,59 @@
+<html>
+<head>
+ <title>Insert Anchor</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("InsertAnchor");
+ __dlg_init();
+ window.resizeTo(400, 150);
+ var param = window.dialogArguments;
+ if (param) {
+ document.getElementById("name").value = param["name"];
+ }
+ document.getElementById("name").focus();
+}
+
+function onOK() {
+ // pass data back to the calling window
+ var param = new Object();
+ param["name"] = document.getElementById("name").value;
+ __dlg_close(param);
+ return false;
+}
+
+function onDelete() {
+ // pass data back to the calling window
+ var param = new Object();
+ param["name"] = "";
+ __dlg_close(param);
+ return false;
+}
+
+function onCancel() {
+ __dlg_close(null);
+ return false;
+}
+</script>
+</head>
+
+<body class="dialog" onload="Init()">
+<div class="title">Insert Anchor</div>
+<form>
+<table border="0" style="width: 100%;">
+ <tr>
+ <td class="label">Anchor name</td>
+ <td><input type="text" id="name" style="width: 100%" /></td>
+ </tr>
+</table>
+
+<div id="buttons">
+ <button type="submit" name="ok" onclick="return onOK();">OK</button>
+ <button type="button" name="delete" onclick="return onDelete();">Delete</button>
+ <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
+</div>
+</form>
+</body>
+</html>
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/img/ed_marquee.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/img/ed_marquee.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/img/ed_marquee.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/insert-marquee.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/insert-marquee.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/insert-marquee.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/insert-marquee.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,107 @@
+// Marquee plugin for HTMLArea
+// 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 HTMLArea._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);
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/de.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/de.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/de.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/de.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,15 @@
+// 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"
+};
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/fr.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/fr.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/fr.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/fr.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,17 @@
+// 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"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/it.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/it.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/it.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/it.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,7 @@
+// 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"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/nb.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/nb.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/nb.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/nb.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,18 @@
+// 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"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/no.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/no.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/no.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/lang/no.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,18 @@
+// I18N constants
+// LANG: "no", 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"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/popups/insert_marquee.html
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/popups/insert_marquee.html?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/popups/insert_marquee.html (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertMarquee/popups/insert_marquee.html Sun Oct 8 12:53:13 2006
@@ -0,0 +1,99 @@
+<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(required[i]);
+ 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 rel="stylesheet" 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>
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/img/pagebreak.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/img/pagebreak.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/img/pagebreak.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/insert-pagebreak.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/insert-pagebreak.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/insert-pagebreak.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/insert-pagebreak.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,43 @@
+// InsertPagebreak plugin for HTMLArea
+// 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 InsertPagebreak(editor, args) {
+ this.editor = editor;
+ var cfg = editor.config;
+ var self = this;
+
+ cfg.registerButton({
+ id : "pagebreak",
+ tooltip : this._lc("Page break"),
+ image : editor.imgURL("pagebreak.gif", "InsertPagebreak"),
+ textMode : false,
+ action : function(editor) {
+ self.buttonPress(editor);
+ }
+ });
+ cfg.addToolbarElement("pagebreak", "inserthorizontalrule", 1);
+}
+
+InsertPagebreak._pluginInfo = {
+ name : "InsertPagebreak",
+ version : "1.0",
+ developer : "Udo Schmal",
+ developer_url : "",
+ sponsor : "L.N.Schaffrath NeueMedien",
+ sponsor_url : "http://www.schaffrath-neuemedien.de/",
+ c_owner : "Udo Schmal & Schaffrath NeueMedien",
+ license : "htmlArea"
+};
+
+InsertPagebreak.prototype._lc = function(string) {
+ return HTMLArea._lc(string, 'InsertPagebreak');
+};
+
+InsertPagebreak.prototype.buttonPress = function(editor, context, updatecontextclass) {
+ editor.insertHTML('<div style="font-size: 1px; page-break-after: always; height: 1px; background-color: rgb(192, 192, 192);" contenteditable="false" title="Page Break">');
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/de.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/de.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/de.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/de.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8 | ISO-8859-1
+// Author: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de
+{
+ "Page break": "Neue Seite"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/fr.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/fr.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/fr.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/fr.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,5 @@
+// I18N constants
+// LANG: "fr", ENCODING: UTF-8
+{
+ "Page break": "Séparateur de page"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/nb.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/nb.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/nb.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/nb.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "nb", ENCODING: UTF-8
+// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
+{
+ "Page break": "Sett inn sideskift"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/no.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/no.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/no.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPagebreak/lang/no.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "no", ENCODING: UTF-8
+// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
+{
+ "Page break": "Sett inn sideskift"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/InsertPicture.php
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/InsertPicture.php?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/InsertPicture.php (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/InsertPicture.php Sun Oct 8 12:53:13 2006
@@ -0,0 +1,313 @@
+<?PHP
+ //this plugin only use the relativ webpath to the picturefolder
+ //default ~ /htmlarea/plugins/InsertPicture/demo_pictures/
+ strstr( PHP_OS, "WIN") ? $strPathSeparator = "\\" : $strPathSeparator = "/";
+ if (isset($_REQUEST['picturepath'])) {
+ $getRequest = true;
+ $PicturePath = 'http://'.$_SERVER['HTTP_HOST'].$_REQUEST['picturepath'];
+ //$LocalPicturePath = $_REQUEST['localpicturepath'];
+
+ $AInsertPicturePath = explode ('/', 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/demo_pictures/');
+ $ALocalInsertPicturePath = explode($strPathSeparator, dirname(__FILE__).$strPathSeparator.'demo_pictures');
+ $APicturePath = explode('/', 'http://'.$_SERVER['HTTP_HOST'].$_REQUEST['picturepath']);
+
+ $AtheFilePath = array_values (array_diff ($APicturePath, $AInsertPicturePath));
+ $theFilePath = implode($strPathSeparator, $AtheFilePath).$strPathSeparator;
+
+ $AtheRootPath = array_values (array_diff ($ALocalInsertPicturePath, $AInsertPicturePath));
+ $theRootPath = implode($strPathSeparator, $AtheRootPath);
+
+ $LocalPicturePath = $theRootPath.$strPathSeparator.$theFilePath.$strPathSeparator;
+ } else {
+ $getRequest = false;
+ $PicturePath = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/demo_pictures/';
+ $LocalPicturePath = dirname(__FILE__).$strPathSeparator.'demo_pictures';
+ }
+ $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';
+ }
+
+ 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.$strPathSeparator.$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">
+
+var HTMLArea = window.opener.HTMLArea;
+function i18n(str) {
+ return (HTMLArea._lc(str, 'HTMLArea'));
+}
+
+function Init() {
+ __dlg_translate("InsertPicture");
+ __dlg_init();
+ window.resizeTo(500, 490);
+ // Make sure the translated string appears in the drop down. (for gecko)
+ document.getElementById("f_align").selectedIndex = 1;
+ document.getElementById("f_align").selectedIndex = 5;
+ 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"];
+ 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();
+}
+
+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"];
+ 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;
+ }
+ }
+ submit();
+ 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(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:<br>
+ <select value="" style="width:200" size="10" onClick="CopyToURL(this[this.selectedIndex].value);">
+<?php
+ $d = @dir($LocalPicturePath);
+ while (false !== ($entry = $d->read())) { //not a dot file or directory
+ if(substr($entry,0,1) != '.') {
+ echo '<OPTION value="' . $PicturePath.$entry. '">' . $entry . '(' . formatSize(filesize($LocalPicturePath.'\\'.$entry)) .')</OPTION>';
+ }
+ }
+ $d->close();
+?>
+ </select>
+<?php
+ if ($getRequest == true) {
+ echo '<form method="post" action="'.$_SERVER['PHP_SELF'].'?picturepath='.$_REQUEST['picturepath'].'" enctype="multipart/form-data">';
+ } else {
+ echo '<form method="post" action="'.$_SERVER['PHP_SELF'].'" enctype="multipart/form-data">';
+ }
+?>
+ <input type="file" name="file" id="file" size="30"><br>
+ <button type="submit" name="ok" onclick="return onUpload();">Upload file</button><br>
+ <span><?php echo $message ?></span>
+ </form>
+
+ </td>
+ <td valign="center" 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">
+<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" 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" 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" 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>
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/demo_pictures/bikerpeep.jpg
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/demo_pictures/bikerpeep.jpg?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/demo_pictures/bikerpeep.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/demo_pictures/wesnoth078.jpg
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/demo_pictures/wesnoth078.jpg?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/demo_pictures/wesnoth078.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/img/btn_open.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/img/btn_open.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/img/btn_open.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/img/nopic.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/img/nopic.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/img/nopic.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/insert-picture.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/insert-picture.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/insert-picture.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/insert-picture.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,93 @@
+// Insert Image plugin for HTMLArea
+// 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).
+
+//Usage:
+// if(typeof InsertPicture != 'undefined')
+// { InsertPicture.PicturePath = [webpath to imagefolder];
+// InsertPicture.LocalPicturePath = [local server path to imagefolder];
+// }
+// for Example:
+// if(typeof InsertPicture != 'undefined')
+// { InsertPicture.PicturePath = _editor_url + "plugins/insertPicture/demo_pictures/";
+// InsertPicture.LocalPicturePath = "d:\\inetpub\\wwwroot\\xinha\\trunk\\plugins\\insertPicture\\demo_pictures";
+// }
+
+
+function InsertPicture(editor) {
+// nothing to do
+}
+
+InsertPicture._pluginInfo = {
+ name : "InsertPicture",
+ version : "1.0.1",
+ 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"
+};
+
+HTMLArea.prototype._insertImage = function(image) {
+ var editor = this;
+ var outparam = null;
+ if (typeof image == "undefined") {
+ image = this.getParentElement();
+ if (image && !/^img$/i.test(image.tagName))
+ image = null;
+ }
+ if (image) outparam = {
+ f_url : image.getAttribute("src"),
+ f_alt : image.alt,
+ f_border : image.border,
+ f_align : image.align,
+ f_vert : image.vspace,
+ f_horiz : image.hspace,
+ f_width : image.width,
+ f_height : image.height
+ };
+
+ var manager = _editor_url + 'plugins/InsertPicture/InsertPicture.php'
+ + '?picturepath=' + InsertPicture.PicturePath;
+
+ Dialog(manager, function(param) {
+ if (!param) { // user must have pressed Cancel
+ return false;
+ }
+ if (!image) {
+ var sel = editor._getSelection();
+ var range = editor._createRange(sel);
+ editor._doc.execCommand("insertimage", false, param.f_url);
+ if (HTMLArea.is_ie) {
+ image = range.parentElement();
+ // wonder if this works...
+ if (image.tagName.toLowerCase() != "img") {
+ image = image.previousSibling;
+ }
+ } else {
+ image = range.startContainer.previousSibling;
+ }
+ } else {
+ image.src = param.f_url;
+ }
+
+ for (field in param) {
+ var value = param[field];
+ switch (field) {
+ case "f_alt" : image.alt = value; break;
+ case "f_border" : image.border = parseInt(value || "0"); break;
+ case "f_align" : image.align = value; break;
+ case "f_vert" : image.vspace = parseInt(value || "0"); break;
+ case "f_horiz" : image.hspace = parseInt(value || "0"); break;
+ case "f_width" : image.width = parseInt(value || "0"); break;
+ case "f_height" : image.height = parseInt(value || "0"); break;
+ }
+ }
+
+
+ }, outparam);
+};
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/de.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/de.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/de.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/de.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,12 @@
+// 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"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/fr.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/fr.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/fr.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/fr.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,22 @@
+// 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"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/nb.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/nb.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/nb.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/nb.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,22 @@
+// 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"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/no.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/no.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/no.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/no.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,23 @@
+// LANG: "de", ENCODING: UTF-8 | ISO-8859-1
+// Sponsored by http://www.schaffrath-neuemedien.de
+// 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"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/sv.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/sv.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/sv.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/lang/sv.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,35 @@
+// I18N constants
+// LANG: "sv", ENCODING: UTF-8
+// Swedish version for rev. 477 (Mar 2006) by Thomas Loo <tl...@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"
+};
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/viewpicture.html
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/viewpicture.html?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/viewpicture.html (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertPicture/viewpicture.html Sun Oct 8 12:53:13 2006
@@ -0,0 +1,46 @@
+<!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>
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/img/ed_smiley.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/img/ed_smiley.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/img/ed_smiley.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/insert-smiley.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/insert-smiley.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/insert-smiley.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/insert-smiley.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,55 @@
+/*---------------------------------------*\
+ Insert Smiley Plugin for HTMLArea-3.0
+ -----------------------------------------
+ author: Ki Master George
+ e-mail: kimastergeorge@gmail.com
+\*---------------------------------------*/
+
+function InsertSmiley(editor) {
+ this.editor = editor;
+
+ var cfg = editor.config;
+ var self = this;
+
+ // register the toolbar buttons provided by this plugin
+ cfg.registerButton({
+ id : "insertsmiley",
+ tooltip : this._lc("Insert Smiley"),
+ image : editor.imgURL("ed_smiley.gif", "InsertSmiley"),
+ textMode : false,
+ action : function(editor) {
+ self.buttonPress(editor);
+ }
+ });
+ cfg.addToolbarElement("insertsmiley", "inserthorizontalrule", 1);
+}
+
+InsertSmiley._pluginInfo = {
+ name : "InsertSmiley",
+ version : "1.0",
+ developer : "Ki Master George",
+ developer_url : "http://kimastergeorge.i4host.com/",
+ c_owner : "Ki Master George",
+ sponsor : "Ki Master George",
+ sponsor_url : "http://kimastergeorge.i4host.com/",
+ license : "htmlArea"
+};
+
+InsertSmiley.prototype._lc = function(string) {
+ return HTMLArea._lc(string, 'InsertSmiley');
+};
+
+InsertSmiley.prototype.buttonPress = function(editor) {
+ var self = this;
+ var sel = editor.getSelectedHTML().replace(/(<[^>]*>| |\n|\r)/g,"");
+ var param = new Object();
+ param.editor = editor;
+ param.editor_url = _editor_url;
+ if(param.editor_url == "../") {
+ param.editor_url = document.URL;
+ param.editor_url = param.editor_url.replace(/^(.*\/).*\/.*$/g, "$1");
+ }
+ editor._popupDialog("plugin://InsertSmiley/insertsmiley", function(param) {
+ editor.insertHTML("<img src=\"" + param.imgURL + "\" alt=\"Smiley\" />");
+ }, param);
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/de.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/de.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/de.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/de.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,7 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8
+{
+ "Insert Smiley": "Smiley einfügen",
+ "Smiley": "Smiley",
+ "Cancel": "Abbrechen"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/fr.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/fr.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/fr.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/fr.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,7 @@
+// I18N constants
+// LANG: "fr", ENCODING: UTF-8
+{
+ "Insert Smiley": "Insérer un smiley",
+ "Smiley": "Smiley",
+ "Cancel": "Annuler"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/nb.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/nb.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/nb.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/nb.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,8 @@
+// I18N constants
+// LANG: "nb", ENCODING: UTF-8
+// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
+{
+ "Insert Smiley": "Sett inn smiley",
+ "Smiley": "Smiley",
+ "Cancel": "Avbryt"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/no.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/no.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/no.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/lang/no.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,8 @@
+// I18N constants
+// LANG: "no", ENCODING: UTF-8
+// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
+{
+ "Insert Smiley": "Sett inn smiley",
+ "Smiley": "Smiley",
+ "Cancel": "Avbryt"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/popups/insertsmiley.html
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/popups/insertsmiley.html?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/popups/insertsmiley.html (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/popups/insertsmiley.html Sun Oct 8 12:53:13 2006
@@ -0,0 +1,91 @@
+<html>
+<head>
+<title>Insert Smiley</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 InsertSmiley = window.opener.InsertSmiley;
+var editor = null;
+var param;
+
+function Init() {
+ var totalsmileys = 580;
+ __dlg_translate("InsertSmiley");
+ __dlg_init();
+ param = window.dialogArguments;
+ editor = param['editor'];
+ window.resizeTo(400, 300);
+ var tbody = document.getElementById("smileytable");
+ var inum;
+ var trow;
+ for(var i = 1; i <= totalsmileys; i++) {
+ if((i - 1) % 4 == 0) {
+ trow = tbody.insertRow((i - 1) / 4);
+ }
+ // find new number to be found in smileys folder
+ inum = "";
+ if(i < 1000) {
+ if(i < 100) {
+ if(i < 10) {
+ inum = "000" + i;
+ } else {
+ inum = "00" + i;
+ }
+ } else {
+ inum = "0" + i;
+ }
+ } else {
+ inum = i;
+ }
+ trow.insertCell((i - 1) % 4).innerHTML = "<a href=\"javascript:onOK('" + inum + "')\"><img style=\"border: 0px;\" alt=\"Smiley " + + i + "\" src=\""+ param.editor_url +"plugins/InsertSmiley/smileys/" + inum + ".gif\" />";
+ }
+ document.body.onkeypress = __dlg_key_press;
+}
+
+function onCancel() {
+ __dlg_close(null);
+ return false;
+}
+
+function onOK(smileynum) {
+ var params = {};
+ params.imgURL = param.editor_url +"plugins/InsertSmiley/smileys/" + smileynum + ".gif";
+ __dlg_close(params);
+ return false;
+}
+
+function __dlg_key_press(ev) {
+ ev || (ev = window.event);
+ switch(ev.keyCode) {
+ case 13:
+ document.getElementById('bt_ok').click();
+ break;
+ case 27:
+ __dlg_close();
+ return false;
+ }
+return true;
+}
+</script>
+
+<style type="text/css">
+.buttons {border-top: 1px solid #999; padding: 5px; text-align: right; height: 20px; }
+</style>
+</head>
+ <body class="dialog" onload="Init()">
+<form action="" method="get">
+ <div class="title" style="width: 360px;">Insert Smiley</div>
+ <div style="height: 175px; overflow:auto;" align="center">
+ <table style="border: 0; width: 370px;" id="smileytable" name="smileytable">
+ </table>
+ </div>
+<div class="space"></div>
+<div class="buttons">
+<button type="button" onclick="return onCancel();">Cancel</button>
+</div>
+<div id="showselect" style="position:absolute; left:7px; top:75px; width:150px; z-index:100; visibility: visible; height: 13px; color: red;">
+</div>
+</form>
+</body>
+</html>
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0001.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0001.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0001.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0002.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0002.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0002.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0003.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0003.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0003.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0004.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0004.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0004.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0005.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0005.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0005.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0006.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0006.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0006.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0007.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0007.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0007.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0008.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0008.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0008.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0009.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0009.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0009.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0010.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0010.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0010.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0011.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0011.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0011.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0012.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0012.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0012.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0013.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0013.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0013.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0014.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0014.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0014.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0015.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0015.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0015.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0016.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0016.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0016.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0017.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0017.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0017.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0018.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0018.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0018.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0019.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0019.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0019.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0020.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0020.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0020.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0021.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0021.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0021.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0022.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0022.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0022.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0023.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0023.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0023.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0024.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0024.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0024.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0025.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0025.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0025.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0026.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0026.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0026.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0027.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0027.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0027.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0028.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0028.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0028.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0029.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0029.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0029.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0030.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0030.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0030.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0031.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0031.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0031.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0032.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0032.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0032.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0033.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0033.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0033.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0034.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0034.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0034.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0035.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/InsertSmiley/smileys/0035.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.