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 [6/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/editors...
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/lang/sv.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/lang/sv.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/lang/sv.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/lang/sv.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,116 @@
+// I18N constants
+// LANG: "sv", ENCODING: UTF-8
+
+// Swedish version for htmlArea v3.0
+// Initital translation by pat <pa...@engvall.nu>
+// Synced with additional contants in rev. 477 (Mar 2006) by Thomas Loo <tl...@saltstorm.net>
+
+{
+ "Bold": "Fet",
+ "Italic": "Kursiv",
+ "Underline": "Understruken",
+ "Strikethrough": "Genomstruken",
+ "Subscript": "Nedsänkt",
+ "Superscript": "Upphöjd",
+ "Justify Left": "Vänsterjustera",
+ "Justify Center": "Centrera",
+ "Justify Right": "Högerjustera",
+ "Justify Full": "Marginaljustera",
+ "Ordered List": "Numrerad lista",
+ "Bulleted List": "Punktlista",
+ "Decrease Indent": "Minska indrag",
+ "Increase Indent": "Ãka indrag",
+ "Font Color": "Textfärg",
+ "Background Color": "Bakgrundsfärg",
+ "Horizontal Rule": "Vågrät linje",
+ "Insert Web Link": "Infoga länk",
+ "Insert/Modify Image": "Infoga bild",
+ "Toggle HTML Source": "Visa källkod",
+ "Enlarge Editor": "Visa i eget fönster",
+ "About this editor": "Om denna editor",
+ "Help using editor": "Hjälp",
+ "Current style": "Nuvarande stil",
+
+ "Undoes your last action": "Ã
ngra kommando",
+ "Redoes your last action": "Upprepa kommando",
+ "Select all": "Markera allt",
+ "Print document": "Skriv ut",
+ "Clear MSOffice tags": "Städa bort MS Office taggar",
+ "Clear Inline Font Specifications": "Rensa inbäddad typsnittsinformation",
+ "Remove formatting": "Rensa formattering",
+ "Toggle Borders": "Objektramar",
+ "Split Block": "Dela block",
+ "Direction left to right": "Vänster till höger",
+ "Direction right to left": "Höger till vänster",
+
+ "Insert/Overwrite": "Infoga/Skriv över",
+ "OK": "OK",
+ "Cancel": "Avbryt",
+ "Path": "Objekt",
+ "You are in TEXT MODE. Use the [<>] button to switch back to WYSIWYG.": "Du befinner dig i texläge. Klicka på ikonen [<>] ovan för att växla tillbaka till WYSIWIG läge",
+ "The full screen mode is known to cause problems with Internet Explorer, due to browser bugs that we weren": "Visning i fullskärmsläga fungerar dåligt i din webläsare. Möjliga problem resulterar i en ryckig editor, saknade editorfunktioner och/eller att webläsaren kraschar. Om du använder Windows 95/98 finns också möjligheten att Windows kraschar.\n\nTryck ",
+ "The Paste button does not work in Mozilla based web browsers (technical security reasons). Press CTRL-V on your keyboard to paste directly.": "Denna knapp fungerar ej i Mozillabaserad webläsare, använd istället snabbtangenterna CTRL-V på tangentbordet för att klistra in.",
+
+ "Insert/Modify Link": "Redigera länk",
+ "New window (_blank)": "Nytt fönster (_blank)",
+ "None (use implicit)": "Ingen (använd standardinställing)",
+ "Other": "Annan",
+ "Same frame (_self)": "Samma ram (_self)",
+ "Target:": "MÃ¥l:",
+ "Title (tooltip):": "Titel (tooltip):",
+ "Top frame (_top)": "Toppram (_top)",
+ "URL:": "Sökväg:",
+ "You must enter the URL where this link points to": "Du måsta ange en adress till vilken länken skall peka på",
+ "Would you like to clear font typefaces?": "Radera alla typsnittsinformation ?",
+ "Would you like to clear font sizes?": "Radera alla fontstorlekar ?",
+ "Would you like to clear font colours?": "Ta bort all textfärger ?",
+
+ "You need to select some text before creating a link": "Du måsta markera ett objekt att applicera länken på!",
+
+ // Insert Table
+ "Insert Table": "Infoga tabell",
+ "Rows:": "Rader:",
+ "Number of rows": "Antal rader",
+ "Cols:": "Kolumner:",
+ "Number of columns": "Antal kolumner",
+ "Width:": "Bredd:",
+ "Width of the table": "Tabellbredd",
+ "Percent": "Procent",
+ "Pixels": "Pixlar",
+ "Em": "",
+ "Width unit": "Breddenheter",
+ "Fixed width columns": "Fixerad bredd",
+ "Alignment:": "Marginaljustering",
+ "Positioning of this table": "Tabellposition",
+ "Border thickness:": "Ramtjocklek",
+ "Leave empty for no border": "Lämna fältet tomt för att undvika ramar",
+ "Spacing": "Cellegenskaper",
+ "Cell spacing:": "Cellmarginaler:",
+ "Space between adjacent cells": "Utrymme mellan celler",
+ "Cell padding:": "Cellindrag:",
+ "Space between content and border in cell": "Utrymme mellan ram och cellinnehåll",
+ "You must enter a number of rows": "Ange ental rader",
+ "You must enter a number of columns": "Ange antal kolumner",
+
+ // Editor Help
+ "Keyboard shortcuts": "Snabbtangenter",
+ "The editor provides the following key combinations:": "Editorn nyttjar följande kombinationer:",
+ "new paragraph": "Ny paragraf ",
+ "insert linebreak": "Infoga radbrytning ",
+ "Set format to paragraph": "Aktivera paragrafläge",
+ "Clean content pasted from Word": "Rensa innehåll inklistrat från MS Word",
+ "Headings": "Skapa standardrubrik",
+ "Cut selection": "Klipp ut markering",
+ "Copy selection": "Kopiera markering",
+ "Paste from clipboard": "Klistra in",
+ "Close": "Stäng",
+
+ // Loading messages
+ "Loading in progress. Please wait !": "Editorn laddas. Vänta...",
+ "Constructing main object": "Skapar huvudobjekt",
+ "Create Toolbar": "Skapar verktygspanel",
+ "Register panel right": "Registerar panel höger",
+ "Register panel left": "Registerar panel vänster",
+ "Register panel top": "Registerar toppanel",
+ "Register panel bottom": "Registerar fotpanel"
+}
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/lang/vn.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/lang/vn.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/lang/vn.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/lang/vn.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,56 @@
+// I18N constants : Vietnamese
+// LANG: "en", ENCODING: UTF-8
+// Author: Nguyá»
n Äình Nam, <hn...@yahoo.com>
+// Modified 21/07/2004 by Phạm Mai Quân <pm...@4vn.org>
+
+{
+ "Bold": "Äáºm",
+ "Italic": "Nghiêng",
+ "Underline": "Gạch Chân",
+ "Strikethrough": "Gạch Xóa",
+ "Subscript": "Viết Xuá»ng Dưá»i",
+ "Superscript": "Viết Lên Trên",
+ "Justify Left": "CÄn Trái",
+ "Justify Center": "CÄn Giữa",
+ "Justify Right": "CÄn Phải",
+ "Justify Full": "CÄn Äá»u",
+ "Ordered List": "Danh Sách Có Thứ Tự (1, 2, 3)",
+ "Bulleted List": "Danh Sách Phi Thứ Tá»± (Chấm Äầu dòng)",
+ "Decrease Indent": "Lùi Ra Ngoà i",
+ "Increase Indent": "Thụt Và o Trong",
+ "Font Color": "Mà u Chữ",
+ "Background Color": "Mà u Ná»n",
+ "Horizontal Rule": "Dòng Kẻ Ngang",
+ "Insert Web Link": "Tạo Liên Kết",
+ "Insert/Modify Image": "Chèn Ảnh",
+ "Insert Table": "Chèn Bảng",
+ "Toggle HTML Source": "Chế Äá» Mã HTML",
+ "Enlarge Editor": "Phóng To à Soạn Thảo",
+ "About this editor": "Tá»± Giá»i Thiá»u",
+ "Help using editor": "Giúp Äỡ",
+ "Current style": "Äá»nh Dạng Hiá»n Thá»i",
+ "Undoes your last action": "Há»§y thao tác trưá»c",
+ "Redoes your last action": "Lấy lại thao tác vừa bá»",
+ "Cut selection": "Cắt",
+ "Copy selection": "Sao chép",
+ "Paste from clipboard": "Dán",
+ "Direction left to right": "Viết từ trái sang phải",
+ "Direction right to left": "Viết từ phải sang trái",
+ "OK": "Äá»ng ý",
+ "Cancel": "Há»§y",
+ "The full screen mode is known to cause problems with Internet Explorer, due to browser bugs that we weren": "Chế Äá» phóng to ô soạn thảo có thá» gây lá»i vá»i Internet Explorer vì má»t sá» lá»i cá»§a trình duyá»t nà y, vì thế chế Äá» nà y có thá» sẽ không chạy. Hiá»n thá» không Äúng, lá»n xá»n, không có Äầy Äá»§ chức nÄng, và cÅ©ng có thá» là m trình duyá»t cá»§a bạn bá» tắt ngang. Nếu bạn Äang sá» dụng Windows 9x bạn có thá» bá» báo lá»i ",
+ "Path": "ÄÆ°á»ng Dẫn",
+ "You are in TEXT MODE. Use the [<>] button to switch back to WYSIWYG.": "Bạn Äang á» chế Äá» text. Sá» dụng nút [<>] Äá» chuyá»n lại chế Äá» WYSIWIG.",
+ "Cancel": "Há»§y",
+ "Insert/Modify Link": "Thêm/Chá»nh sá»a ÄÆ°á»ng dẫn",
+ "New window (_blank)": "Cá»a sá» má»i (_blank)",
+ "None (use implicit)": "Không (sỠdụng implicit)",
+ "OK": "Äá»ng ý",
+ "Other": "Khác",
+ "Same frame (_self)": "Trên cùng khung (_self)",
+ "Target:": "NÆ¡i hiá»n thá»:",
+ "Title (tooltip):": "Tiêu Äá» (cá»§a hưá»ng dẫn):",
+ "Top frame (_top)": "Khung trên cùng (_top)",
+ "URL:": "URL:",
+ "You must enter the URL where this link points to": "Bạn phải Äiá»n Äá»a chá» (URL) mÃ ÄÆ°á»ng dẫn sẽ liên kết tá»i"
+}
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/license.txt
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/license.txt?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/license.txt (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/license.txt Sun Oct 8 12:53:13 2006
@@ -0,0 +1,30 @@
+htmlArea License (based on BSD license)
+Copyright (c) 2002-2004, interactivetools.com, inc.
+Copyright (c) 2003-2004 dynarch.com
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1) Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+2) Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3) Neither the name of interactivetools.com, inc. nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/locks/db-logs.lock
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/locks/db-logs.lock?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/locks/db-logs.lock (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/locks/db-logs.lock Sun Oct 8 12:53:13 2006
@@ -0,0 +1,3 @@
+This file is not used by Subversion 1.3.x or later.
+However, its existence is required for compatibility with
+Subversion 1.2.x or earlier.
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/locks/db.lock
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/locks/db.lock?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/locks/db.lock (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/locks/db.lock Sun Oct 8 12:53:13 2006
@@ -0,0 +1,3 @@
+This file is not used by Subversion 1.3.x or later.
+However, its existence is required for compatibility with
+Subversion 1.2.x or earlier.
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/my_config.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/my_config.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/my_config.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/my_config.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,103 @@
+ xinha_editors = null;
+ xinha_init = null;
+ xinha_config = null;
+ xinha_plugins = null;
+
+ // This contains the names of textareas we will make into Xinha editors
+ xinha_init = xinha_init ? xinha_init : function()
+ {
+ /** STEP 1 ***************************************************************
+ * First, what are the plugins you will be using in the editors on this
+ * page. List all the plugins you will need, even if not all the editors
+ * will use all the plugins.
+ *
+ * The list of plugins below is a good starting point, but if you prefer
+ * a must simpler editor to start with then you can use the following
+ *
+ * xinha_plugins = xinha_plugins ? xinha_plugins : [ ];
+ *
+ * which will load no extra plugins at all.
+ ************************************************************************/
+
+ xinha_plugins = xinha_plugins ? xinha_plugins :
+ [
+ 'CharacterMap',
+ 'ContextMenu',
+ 'FullScreen',
+ 'ListType',
+ 'Stylist',
+ 'TableOperations'
+ ];
+ // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING :)
+ if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return;
+
+ /** STEP 2 ***************************************************************
+ * Now, what are the names of the textareas you will be turning into
+ * editors?
+ ************************************************************************/
+
+ xinha_editors = xinha_editors ? xinha_editors :
+ [
+ 'textarea1',
+ 'textarea2'
+ ];
+
+ /** STEP 3 ***************************************************************
+ * We create a default configuration to be used by all the editors.
+ * If you wish to configure some of the editors differently this will be
+ * done in step 5.
+ *
+ * If you want to modify the default config you might do something like this.
+ *
+ * xinha_config = new HTMLArea.Config();
+ * xinha_config.width = '640px';
+ * xinha_config.height = '420px';
+ *
+ *************************************************************************/
+
+ xinha_config = xinha_config ? xinha_config() : new HTMLArea.Config();
+
+ /** STEP 4 ***************************************************************
+ * We first create editors for the textareas.
+ *
+ * You can do this in two ways, either
+ *
+ * xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins);
+ *
+ * if you want all the editor objects to use the same set of plugins, OR;
+ *
+ * xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config);
+ * xinha_editors['myTextArea'].registerPlugins(['Stylist','FullScreen']);
+ * xinha_editors['anotherOne'].registerPlugins(['CSS','SuperClean']);
+ *
+ * if you want to use a different set of plugins for one or more of the
+ * editors.
+ ************************************************************************/
+
+ xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config);
+ xinha_editors['textarea1'].registerPlugins(['FullScreen','CharacterMap']);
+ xinha_editors['textarea2'].registerPlugins(['FullScreen','CharacterMap']);
+
+
+ /** STEP 5 ***************************************************************
+ * If you want to change the configuration variables of any of the
+ * editors, this is the place to do that, for example you might want to
+ * change the width and height of one of the editors, like this...
+ *
+ * xinha_editors.myTextArea.config.width = '640px';
+ * xinha_editors.myTextArea.config.height = '480px';
+ *
+ ************************************************************************/
+
+ xinha_editors['textarea1'].config.height = '100px';
+ xinha_editors['textarea2'].config.height = '200px';
+
+ /** STEP 6 ***************************************************************
+ * Finally we "start" the editors, this turns the textareas into
+ * Xinha editors.
+ ************************************************************************/
+
+ HTMLArea.startEditors(xinha_editors);
+ }
+
+ window.onload = xinha_init;
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/panel-dialog.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/panel-dialog.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/panel-dialog.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/panel-dialog.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,76 @@
+
+HTMLArea.PanelDialog = function(editor, side, html, localizer)
+{
+ this.id = { };
+ this.r_id = { }; // reverse lookup id
+ this.editor = editor;
+ this.document = document;
+ this.rootElem = editor.addPanel(side);
+
+ var dialog = this;
+ if(typeof localizer == 'function')
+ {
+ this._lc = localizer;
+ }
+ else if(localizer)
+ {
+ this._lc = function(string)
+ {
+ return HTMLArea._lc(string,localizer);
+ };
+ }
+ else
+ {
+ this._lc = function(string)
+ {
+ return string;
+ };
+ }
+
+ html = html.replace(/\[([a-z0-9_]+)\]/ig,
+ function(fullString, id)
+ {
+ if(typeof dialog.id[id] == 'undefined')
+ {
+ dialog.id[id] = HTMLArea.uniq('Dialog');
+ dialog.r_id[dialog.id[id]] = id;
+ }
+ return dialog.id[id];
+ }
+ ).replace(/<l10n>(.*?)<\/l10n>/ig,
+ function(fullString,translate)
+ {
+ return dialog._lc(translate) ;
+ }
+ ).replace(/="_\((.*?)\)"/g,
+ function(fullString, translate)
+ {
+ return '="' + dialog._lc(translate) + '"';
+ }
+ );
+
+ this.rootElem.innerHTML = html;
+};
+
+HTMLArea.PanelDialog.prototype.show = function(values)
+{
+ this.editor.showPanel(this.rootElem);
+};
+
+HTMLArea.PanelDialog.prototype.hide = function()
+{
+ this.editor.hidePanel(this.rootElem);
+ return this.getValues();
+};
+
+HTMLArea.PanelDialog.prototype.onresize = HTMLArea.Dialog.prototype.onresize;
+
+HTMLArea.PanelDialog.prototype.toggle = HTMLArea.Dialog.prototype.toggle;
+
+HTMLArea.PanelDialog.prototype.setValues = HTMLArea.Dialog.prototype.setValues;
+
+HTMLArea.PanelDialog.prototype.getValues = HTMLArea.Dialog.prototype.getValues;
+
+HTMLArea.PanelDialog.prototype.getElementById = HTMLArea.Dialog.prototype.getElementById;
+
+HTMLArea.PanelDialog.prototype.getElementsByName = HTMLArea.Dialog.prototype.getElementsByName;
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbr/de.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbr/de.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbr/de.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbr/de.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,40 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8
+// Author: Udo Schmal, <sc...@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).
+
+{
+ "Abs.": "Absatz",
+ "bspw.": "Beispielsweise",
+ "bzw.": "beziehungsweise",
+ "c/o": "care of / bei, zu Händen von",
+ "ca.": "circa",
+ "d.h.": "das heiÃt",
+ "d.J.": "des Jahres",
+ "Dr.": "Doktor",
+ "e.V.": "Eingetragener Verein",
+ "eG.": "Eingetragene Genossenschaft",
+ "ehem.": "ehemals",
+ "einschl.": "einschlieÃlich",
+ "etc.": "et cetera / und so weiter",
+ "evtl.": "eventuell",
+ "ff.": "(fort) folgende",
+ "gem.": "gemäÃ",
+ "inkl.": "inklusive",
+ "max.": "maximal / maximum",
+ "min.": "mindestens / minimum / minimal",
+ "o.g.": "oben genannt",
+ "rd.": "rund",
+ "S.": "Seite",
+ "u.a.": "unter anderem",
+ "u.ä.": "und ähnlich",
+ "usw.": "und so weiter",
+ "vgl.": "vergleiche",
+ "z.B.": "zum Beispiel",
+ "z.T.": "zum Teil",
+ "z.Z.": "zur Zeit",
+ "zzgl.": "zuzüglich"
+};
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbr/en.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbr/en.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbr/en.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbr/en.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,16 @@
+// I18N constants
+// LANG: "en", ENCODING: UTF-8
+// Author: Udo Schmal, <sc...@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).
+
+{
+ "ANSI": "American National Standards Institute",
+ "ASA": "American Standards Association",
+ "ISO": "International Organisation for Standardization",
+ "mime": "Multipurpose Internet Mail Extensions",
+ "UTF": "Unicode Transformation Format",
+ "W3C": "World Wide Web Consortium"
+};
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbreviation.css
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbreviation.css?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbreviation.css (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbreviation.css Sun Oct 8 12:53:13 2006
@@ -0,0 +1,11 @@
+abbr, acronym, span.abbr {
+ width: 18px;
+ height: 18px;
+ background-image: url(img/ed_abbreviation.gif);
+ background-repeat: no-repeat;
+ background-position: left top;
+ white-space : nowrap;
+ cursor: help;
+ border-bottom: 1px dashed #000;
+ padding-left: 19px;
+}
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbreviation.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbreviation.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbreviation.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/abbreviation.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,99 @@
+// Abbreviation 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 Abbreviation(editor) {
+ this.editor = editor;
+ var cfg = editor.config;
+ var self = this;
+
+ // register the toolbar buttons provided by this plugin
+ cfg.registerButton({
+ id : "abbreviation",
+ tooltip : this._lc("Abbreviation"),
+ image : editor.imgURL("ed_abbreviation.gif", "Abbreviation"),
+ textMode : false,
+ action : function(editor) {
+ self.buttonPress(editor);
+ }
+ })
+ cfg.addToolbarElement("abbreviation", "inserthorizontalrule", 1);
+}
+
+Abbreviation._pluginInfo = {
+ name : "Abbreviation",
+ 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"
+};
+
+Abbreviation.prototype._lc = function(string) {
+ return HTMLArea._lc(string, 'Abbreviation');
+};
+
+Abbreviation.prototype.onGenerate = function() {
+ var style_id = "Abbr-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/Abbreviation/abbreviation.css';
+ this.editor._doc.getElementsByTagName("HEAD")[0].appendChild(style);
+ }
+};
+
+Abbreviation.prototype.buttonPress = function(editor, context, updatecontextclass) {
+ var outparam = null;
+ var html = editor.getSelectedHTML();
+ var sel = editor._getSelection();
+ var range = editor._createRange(sel);
+ var abbr = editor._activeElement(sel);
+ if(!(abbr != null && abbr.tagName.toLowerCase() == "abbr")) {
+ abbr = editor._getFirstAncestor(sel, 'abbr');
+ }
+ if (abbr != null && abbr.tagName.toLowerCase() == "abbr")
+ outparam = { title : abbr.title,
+ text : abbr.innerHTML};
+ else
+ outparam = { title : '',
+ text : html};
+
+ editor._popupDialog( "plugin://Abbreviation/abbreviation", function( param ) {
+ if ( param ) {
+ var title = param["title"];
+ if (title == "" || title == null) {
+ if (abbr) {
+ var child = abbr.innerHTML;
+ abbr.parentNode.removeChild(abbr);
+ editor.insertHTML(child);
+ }
+ return;
+ }
+ try {
+ var doc = editor._doc;
+ if (!abbr) {
+ abbr = doc.createElement("abbr");
+ abbr.title = title;
+ abbr.innerHTML = html;
+ if (HTMLArea.is_ie) {
+ range.pasteHTML(abbr.outerHTML);
+ } else {
+ editor.insertNodeAtSelection(abbr);
+ }
+ } else {
+ abbr.title = title;
+ }
+ }
+ catch (e) { }
+ }
+ }, outparam);
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/img/ed_abbreviation.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/img/ed_abbreviation.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/img/ed_abbreviation.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/lang/de.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/lang/de.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/lang/de.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/lang/de.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,8 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8
+// Author: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de
+{
+ "Abbreviation": "Abkürzung",
+ "Expansion:": "Erklärung:",
+ "Delete": "Löschen"
+};
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/lang/fr.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/lang/fr.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/lang/fr.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/lang/fr.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,7 @@
+// I18N constants
+// LANG: "fr", ENCODING: UTF-8
+{
+ "Abbreviation": "Abréviation",
+ "Expansion:": "Explication",
+ "Delete": "Supprimer"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/lang/nb.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/lang/nb.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/lang/nb.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/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
+{
+ "Abbreviation": "Beskrive forkortelse",
+ "Expansion:": "Betydning:",
+ "Delete": "Fjerne"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/lang/no.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/lang/no.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/lang/no.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/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
+{
+ "Abbreviation": "Beskrive forkortelse",
+ "Expansion:": "Betydning:",
+ "Delete": "Fjerne"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/popups/abbreviation.html
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/popups/abbreviation.html?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/popups/abbreviation.html (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Abbreviation/popups/abbreviation.html Sun Oct 8 12:53:13 2006
@@ -0,0 +1,93 @@
+<html>
+<head>
+ <title>Abbreviation</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 Abbreviation = window.opener.Abbreviation; // load the Abbreviation plugin and lang file ;-)
+
+function fillSelect(text) {
+ var abbr = window.location.href;
+ abbr = abbr.replace(/popups\/abbreviation.html/g, "abbr\/" + window.opener._editor_lang + ".js");
+ var abbrData = HTMLArea._geturlcontent(abbr);
+ if (abbrData) {
+ eval('abbrObj = ' + abbrData);
+ if (abbrObj != "") {
+ dest = document.getElementById("select");
+ for (var i in abbrObj) {
+ same = (i==text);
+ dest.options[dest.options.length] = new Option(i + "=" + abbrObj[i], abbrObj[i], false, same);
+ if (same)
+ document.getElementById("title").value = abbrObj[i];
+ }
+ }
+ }
+}
+
+function Init() {
+ window.resizeTo(260, 160);
+ __dlg_translate("Abbreviation");
+ __dlg_init();
+ var param = window.dialogArguments;
+ var text = null;
+ if (param) {
+ text = param["text"];
+ document.getElementById("title").value = param["title"];
+ }
+ fillSelect(text);
+ document.getElementById("title").focus();
+};
+
+function onOK() {
+ var param = new Object();
+ param["title"] = document.getElementById("title").value;
+ __dlg_close(param);
+ return false;
+}
+
+
+function onDelete() {
+ // pass data back to the calling window
+ var param = new Object();
+ param["title"] = "";
+ __dlg_close(param);
+ return false;
+};
+
+function onCancel() {
+ __dlg_close(null);
+ return false;
+};
+</script>
+
+</head>
+<body class="dialog" onload="Init()">
+<div class="title">Abbreviation</div>
+<form name="form">
+<table border="0" style="width: 100%;">
+ <tr>
+ <td class="lable">Expansion:</td>
+ <td>
+ <select id="select" name="select"
+ onChange="document.form.title.value=document.form.select.options[document.form.select.selectedIndex].value"
+ style="position:absolute; top:35px; left:100px; width:118px; clip:rect(0 120 22 100)">
+ <option value=""></option>
+
+ </select>
+ <input type="title" id="title" name="text"
+ onChange="document.form.select.selectedIndex=-1"
+ style="position:absolute; top:35px; left:100px; width:100px; border-right:0">
+ <!--<input type="text" id="title" name="title" value="" size="30">-->
+ </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/BackgroundImage/background-image.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/background-image.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/background-image.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/background-image.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,52 @@
+// 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 HTMLArea 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 : this._lc("Set page background image"),
+ image : editor.imgURL("ed_bgimage.gif", "BackgroundImage"),
+ textMode : false,
+ action : function(editor) {
+ self.buttonPress(editor);
+ }
+ })
+ 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._lc = function(string) {
+ return HTMLArea._lc(string, 'BackgroundImage');
+};
+
+BackgroundImage.prototype.buttonPress = function(editor) {
+ //var doc = this.editor._doc;
+ editor._popupDialog( "plugin://BackgroundImage/bgimage", function( bgImage ) {
+ if(bgImage) {
+ if(HTMLArea.is_ie) editor.focusEditor();
+ if(bgImage=="*") {
+ editor._doc.body.background = "";
+ } else {
+ editor._doc.body.background = bgImage;
+ }
+ }
+ }, null);
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/blufur.jpg
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/blufur.jpg?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/blufur.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/palecnvs.jpg
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/palecnvs.jpg?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/palecnvs.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/ppplcnvs.jpg
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/ppplcnvs.jpg?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/ppplcnvs.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/thumbnails/blufur.jpg
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/thumbnails/blufur.jpg?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/thumbnails/blufur.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/thumbnails/palecnvs.jpg
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/thumbnails/palecnvs.jpg?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/thumbnails/palecnvs.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/thumbnails/ppplcnvs.jpg
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/thumbnails/ppplcnvs.jpg?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/thumbnails/ppplcnvs.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/thumbnails/ylwsand.jpg
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/thumbnails/ylwsand.jpg?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/thumbnails/ylwsand.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/ylwsand.jpg
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/ylwsand.jpg?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/backgrounds/ylwsand.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/img/ed_bgimage.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/img/ed_bgimage.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/img/ed_bgimage.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/de.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/de.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/de.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/de.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,9 @@
+// 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"
+};
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/fr.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/fr.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/fr.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/fr.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,8 @@
+// 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"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/nb.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/nb.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/nb.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/nb.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,9 @@
+// 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"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/no.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/no.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/no.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/lang/no.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,9 @@
+// I18N constants
+// LANG: "no", 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"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/popups/bgimage.html
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/popups/bgimage.html?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/popups/bgimage.html (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/BackgroundImage/popups/bgimage.html Sun Oct 8 12:53:13 2006
@@ -0,0 +1,48 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Set Page Background Image</title>
+<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
+<script type="text/javascript" src="../../../popups/popup.js"></script>
+<script language='JavaScript' type='text/javascript'>
+
+function Init() {
+ __dlg_translate("BackgroundImage");
+ __dlg_init();
+ window.resizeTo(300, 195);
+}
+
+function onCancel() {
+ __dlg_close(null);
+ return false;
+}
+
+function insertbg(image) {
+ __dlg_close(window.opener._editor_url + "/plugins/BackgroundImage/backgrounds/" + image);
+ return false;
+}
+
+function onDelete() {
+ __dlg_close("*");
+ return false;
+}
+</script>
+</head>
+<body class="dialog" onload="Init()">
+<form action="" method="get">
+ <div class="title">Set Page Background Image</div>
+<table align="center" border="0" cellspacing="0" cellpadding="6">
+<tr align="center" valign="top">
+<td><img onclick="insertbg('blufur.jpg')" border="1" src="../backgrounds/thumbnails/blufur.jpg" width="50" height="50"></td>
+<td><img onclick="insertbg('palecnvs.jpg')" border="1" src="../backgrounds/thumbnails/palecnvs.jpg" width="50" height="50"></td>
+<td><img onclick="insertbg('ppplcnvs.jpg')" border="1" src="../backgrounds/thumbnails/ppplcnvs.jpg" width="50" height="50"></td>
+<td><img onclick="insertbg('ylwsand.jpg')" border="1" src="../backgrounds/thumbnails/ylwsand.jpg" width="50" height="50"></td>
+</tr>
+</table>
+<div class="space"></div>
+<div id="buttons">
+<button type="button" name="delete" onclick="return onDelete()" style="width:auto">Remove Current Background</button>
+<button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
+</div>
+</body>
+</html>
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CSS/css.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CSS/css.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CSS/css.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CSS/css.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,149 @@
+// Simple CSS (className) plugin for the editor
+// Sponsored by http://www.miro.com.au
+// Implementation by Mihai Bazon, http://dynarch.com/mishoo.
+//
+// (c) dynarch.com 2003
+// Distributed under the same terms as HTMLArea itself.
+// This notice MUST stay intact for use (see license.txt).
+//
+// $Id: css.js 419 2005-10-31 05:33:41Z mokhet $
+// @TODO This is the default and won't be very useful to others.
+// We should make this better.
+HTMLArea.Config.prototype.cssPluginConfig =
+ {
+ 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"
+ }
+ }
+ ]
+ };
+
+function CSS(editor, params) {
+ this.editor = editor;
+ var cfg = editor.config;
+ var self = this;
+ var plugin_config;
+ if(params && params.length)
+ {
+ plugin_config = params[0];
+ }
+ else
+ {
+ plugin_config = editor.config.cssPluginConfig;
+ }
+
+ var combos = plugin_config.combos;
+
+ for (var i = 0; i < combos.length; i++) {
+ var combo = combos[i];
+ var id = "CSS-class" + i;
+ var css_class = {
+ id : id,
+ options : combo.options,
+ action : function(editor) { self.onSelect(editor, this, combo.context, combo.updatecontextclass); },
+ refresh : function(editor) { self.updateValue(editor, this); },
+ context : combo.context
+ };
+ cfg.registerDropdown(css_class);
+ cfg.addToolbarElement(["T[" + combo.label + "]", id, "separator"] , "formatblock", -1);
+ }
+}
+
+CSS._pluginInfo = {
+ name : "CSS",
+ version : "1.0",
+ developer : "Mihai Bazon",
+ developer_url : "http://dynarch.com/mishoo/",
+ c_owner : "Mihai Bazon",
+ sponsor : "Miro International",
+ sponsor_url : "http://www.miro.com.au",
+ license : "htmlArea"
+};
+
+CSS.prototype.onSelect = function(editor, obj, context, updatecontextclass) {
+ var tbobj = editor._toolbarObjects[obj.id];
+ var index = tbobj.element.selectedIndex;
+ var className = tbobj.element.value;
+
+ // retrieve parent element of the selection
+ var parent = editor.getParentElement();
+ var surround = true;
+
+ var is_span = (parent && parent.tagName.toLowerCase() == "span");
+ var update_parent = (context && updatecontextclass && parent && parent.tagName.toLowerCase() == context);
+
+ if (update_parent) {
+ parent.className = className;
+ editor.updateToolbar();
+ return;
+ }
+
+ if (is_span && index == 0 && !/\S/.test(parent.style.cssText)) {
+ while (parent.firstChild) {
+ parent.parentNode.insertBefore(parent.firstChild, parent);
+ }
+ parent.parentNode.removeChild(parent);
+ editor.updateToolbar();
+ return;
+ }
+
+ if (is_span) {
+ // maybe we could simply change the class of the parent node?
+ if (parent.childNodes.length == 1) {
+ parent.className = className;
+ surround = false;
+ // in this case we should handle the toolbar updation
+ // ourselves.
+ editor.updateToolbar();
+ }
+ }
+
+ // Other possibilities could be checked but require a lot of code. We
+ // can't afford to do that now.
+ if (surround) {
+ // shit happens ;-) most of the time. this method works, but
+ // it's dangerous when selection spans multiple block-level
+ // elements.
+ editor.surroundHTML("<span class='" + className + "'>", "</span>");
+ }
+};
+
+CSS.prototype.updateValue = function(editor, obj) {
+ var select = editor._toolbarObjects[obj.id].element;
+ var parent = editor.getParentElement();
+ if (typeof parent.className != "undefined" && /\S/.test(parent.className)) {
+ var options = select.options;
+ var value = parent.className;
+ for (var i = options.length; --i >= 0;) {
+ var option = options[i];
+ if (value == option.value) {
+ select.selectedIndex = i;
+ return;
+ }
+ }
+ }
+ select.selectedIndex = 0;
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/char-counter.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/char-counter.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/char-counter.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/char-counter.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,119 @@
+// Charcounter for HTMLArea-3.0
+// (c) Udo Schmal & L.N.Schaffrath NeueMedien
+// Distributed under the same terms as HTMLArea itself.
+// This notice MUST stay intact for use (see license.txt).
+
+function CharCounter(editor) {
+ this.editor = editor;
+}
+
+HTMLArea.Config.prototype.CharCounter =
+{
+ 'showChar': true, // show the characters count,
+ 'showWord': true, // show the words count,
+ 'showHtml': true, // show the exact html count
+ 'separator': ' | ' // separator used to join informations
+};
+
+CharCounter._pluginInfo = {
+ name : "CharCounter",
+ version : "1.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 & L.N.Schaffrath NeueMedien",
+ license : "htmlArea"
+};
+
+CharCounter.prototype._lc = function(string) {
+ return HTMLArea._lc(string, "CharCounter");
+};
+
+
+CharCounter.prototype.onGenerate = function() {
+ var self = this;
+ if (this.charCount==null) {
+ var charCount = document.createElement("span");
+ charCount.style.padding = "2px 5px";
+ if(HTMLArea.is_ie) {
+ charCount.style.styleFloat = "right";
+ } else {
+ charCount.style.cssFloat = "right";
+ }
+ var brk = document.createElement('div');
+ brk.style.height =
+ brk.style.width =
+ brk.style.lineHeight =
+ brk.style.fontSize = '1px';
+ brk.style.clear = 'both';
+ if(HTMLArea.is_ie) {
+ this.editor._statusBarTree.style.styleFloat = "left";
+ } else {
+ this.editor._statusBarTree.style.cssFloat = "left";
+ }
+ this.editor._statusBar.appendChild(charCount);
+ this.editor._statusBar.appendChild(brk);
+ this.charCount = charCount;
+ }
+};
+
+CharCounter.prototype._updateCharCount = function() {
+ var editor = this.editor;
+ var cfg = editor.config;
+ var contents = editor.getHTML();
+ var string = new Array();
+ if (cfg.CharCounter.showHtml) {
+ string[string.length] = this._lc("HTML") + ": " + contents.length;
+ }
+ if (cfg.CharCounter.showWord || cfg.CharCounter.showChar) {
+ contents = contents.replace(/<\/?\s*!--[^-->]*-->/gi, "" );
+ contents = contents.replace(/<(.+?)>/g, '');//Don't count HTML tags
+ contents = contents.replace(/ /gi, ' ');
+ contents = contents.replace(/([\n\r\t])/g, ' ');//convert newlines and tabs into space
+ contents = contents.replace(/( +)/g, ' ');//count spaces only once
+ contents = contents.replace(/&(.*);/g, ' ');//Count htmlentities as one keystroke
+ contents = contents.replace(/^\s*|\s*$/g, '');//trim
+ }
+ if (cfg.CharCounter.showWord) {
+ var words=0;
+ for (var x=0;x<contents.length;x++)
+ {
+ if (contents.charAt(x) == " " ) {words++;}
+ }
+ if (words>=1) { words++; }
+ string[string.length] = this._lc("Words") + ": " + words;
+ }
+
+ if (cfg.CharCounter.showChar) {
+ string[string.length] = this._lc("Chars") + ": " + contents.length;
+ }
+
+ this.charCount.innerHTML = string.join(cfg.CharCounter.separator);
+};
+
+CharCounter.prototype.onUpdateToolbar = function() {
+ this.charCount.innerHTML = this._lc("... in progress");
+ if(this._timeoutID) {
+ window.clearTimeout(this._timeoutID);
+ }
+ var e = this;
+ this._timeoutID = window.setTimeout(function() {e._updateCharCount();}, 1000);
+};
+
+CharCounter.prototype.onMode = function (mode)
+{
+ //Hide Chars in statusbar when switching into textmode
+ switch (mode)
+ {
+ case "textmode":
+ this.charCount.style.display = "none";
+ break;
+ case "wysiwyg":
+ this.charCount.style.display = "";
+ break;
+ default:
+ alert("Mode <" + mode + "> not defined!");
+ return false;
+ }
+};
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/lang/de.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/lang/de.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/lang/de.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/lang/de.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,8 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8
+// Author: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de
+{
+ "Chars": "Zeichen",
+ "Words": "Worte",
+ "... in progress": "... in Bearbeitung"
+};
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/lang/fr.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/lang/fr.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/lang/fr.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/lang/fr.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "fr", ENCODING: UTF-8
+{
+ "Chars": "Caractères",
+ "Words": "Mots"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/lang/nb.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/lang/nb.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/lang/nb.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/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
+{
+ "Chars": "Tegn"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/lang/no.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/lang/no.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/lang/no.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharCounter/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
+{
+ "Chars": "Tegn"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/CharacterMap.css
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/CharacterMap.css?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/CharacterMap.css (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/CharacterMap.css Sun Oct 8 12:53:13 2006
@@ -0,0 +1,41 @@
+.CharacterMap { }
+.CharacterMap a.entity {
+ font-size:12px;
+ width:18px;
+ display:block;
+ float:left;
+ padding:2px;
+ text-decoration:none;
+ color:#000;
+ text-align:center;
+
+}
+.CharacterMap a.light {
+ background-color:#ffffff;
+}
+.CharacterMap a.dark {
+ background-color:#f7f8fd;
+}
+.CharacterMap a.entity:hover {
+ background-color:#ffd760;
+ color:#000;
+}
+.popup td.character {
+ font-family:Verdana,Arial,Helvetica,sans-serif;
+ font-size:14px;
+ font-weight:bold;
+ text-align:center;
+ background:#fff;
+ padding:4px;
+}
+.popup td.character-hilite {
+ background:#ffd760;
+}
+.popup form {
+ text-align:center;
+}
+.popup table {
+ cursor:pointer;
+ background-color:#ADAD9C;
+ border:1px inset;
+}
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/character-map.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/character-map.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/character-map.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/character-map.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,123 @@
+// Character Map plugin for HTMLArea
+// Original Author - Bernhard Pfeifer novocaine@gmx.net
+HTMLArea.loadStyle( 'CharacterMap.css', 'CharacterMap' );
+
+function CharacterMap( editor )
+{
+ this.editor = editor;
+ var cfg = editor.config;
+ var self = this;
+ cfg.registerButton(
+ {
+ id : 'insertcharacter',
+ tooltip : HTMLArea._lc( 'Insert special character', 'CharacterMap' ),
+ image : editor.imgURL( 'ed_charmap.gif', 'CharacterMap' ),
+ textMode : false,
+ action : function( editor ) { self.buttonPress( editor ); }
+ }
+ );
+ cfg.addToolbarElement('insertcharacter', 'createlink', -1);
+
+ if ( cfg.CharacterMap.mode == 'panel' )
+ {
+ editor._CharacterMap = editor.addPanel( 'right' );
+ HTMLArea._addClass( editor._CharacterMap, 'CharacterMap' );
+
+ editor.notifyOn( 'modechange',
+ function( e, args )
+ {
+ if ( args.mode == 'text' ) editor.hidePanel( editor._CharacterMap );
+ }
+ );
+
+ var entites =
+ [
+ 'Ÿ', 'š', '@', '"', '¡', '¢', '£', '¤', '¥', '¦',
+ '§', '¨', '©', 'ª', '«', '¬', '¯', '°', '±', '²',
+ '³', '´', 'µ', '¶', '·', '¸', '¹', 'º', '»', '¼',
+ '½', '¾', '¿', '×', 'Ø', '÷', 'ø', 'ƒ', 'ˆ',
+ '˜', '–', '—', '‘', '’', '‚', '“', '”', '„',
+ '†', '‡', '•', '…', '‰', '‹', '›', '€', '™',
+ 'À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', 'È',
+ 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ð', 'Ñ',
+ 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', '®', '×', 'Ù', 'Ú',
+ 'Û', 'Ü', 'Ý', 'Þ', 'ß', 'à', 'á', 'â', 'ã',
+ 'ä', 'å', 'æ', 'ç', 'è', 'é', 'ê', 'ë', 'ì',
+ 'í', 'î', 'ï', 'ð', 'ñ', 'ò', 'ó', 'ô', 'õ',
+ 'ö', '÷', 'ø', 'ù', 'ú', 'û', 'ü', 'ý', 'þ',
+ 'ÿ', 'Œ', 'œ', 'Š'
+ ];
+
+ for ( var i=0; i<entites.length; i++ )
+ this.addEntity( entites[i], i );
+
+ editor.hidePanel( editor._CharacterMap );
+ }
+}
+
+// configuration mode : panel or popup
+HTMLArea.Config.prototype.CharacterMap =
+{
+ 'mode': 'popup' // configuration mode : panel or popup
+};
+
+CharacterMap._pluginInfo =
+{
+ name : "CharacterMap",
+ version : "2.0",
+ developer : "Laurent Vilday",
+ developer_url : "http://www.mokhet.com/",
+ c_owner : "Xinha community",
+ sponsor : "",
+ sponsor_url : "",
+ license : "Creative Commons Attribution-ShareAlike License"
+};
+
+CharacterMap._isActive = false;
+
+CharacterMap.prototype.buttonPress = function( editor )
+{
+ var cfg = editor.config;
+ if ( cfg.CharacterMap.mode == 'panel' )
+ {
+ if ( this._isActive )
+ {
+ this._isActive = false;
+ editor.hidePanel( editor._CharacterMap );
+ }
+ else
+ {
+ this._isActive = true;
+ editor.showPanel( editor._CharacterMap );
+ }
+ }
+ else
+ {
+ editor._popupDialog( "plugin://CharacterMap/select_character", function( entity )
+ {
+ if ( !entity ) return false;
+ if ( HTMLArea.is_ie ) editor.focusEditor();
+ editor.insertHTML( entity );
+ }, null);
+ }
+};
+
+CharacterMap.prototype.addEntity = function ( entite, pos )
+{
+ var editor = this.editor;
+ var self = this;
+ var a = document.createElement( 'a' );
+ HTMLArea._addClass( a, 'entity' );
+ a.innerHTML = entite;
+ a.href = 'javascript:void(0)';
+ HTMLArea._addClass(a, (pos%2)? 'light':'dark');
+ a.onclick = function()
+ {
+ if (HTMLArea.is_ie) editor.focusEditor();
+ editor.insertHTML( entite );
+ self._isActive = false;
+ editor.hidePanel( editor._CharacterMap );
+ return false;
+ };
+ editor._CharacterMap.appendChild( a );
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/img/ed_charmap.gif
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/img/ed_charmap.gif?view=auto&rev=454197
==============================================================================
Binary file - no diff available.
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/img/ed_charmap.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/de.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/de.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/de.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/de.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,11 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8
+// Sponsored by http://www.systemconcept.de
+// Author: Holger Hees, <hh...@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 special character": "Sonderzeichen einfügen",
+ "Cancel": "Abbrechen"
+}
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/fr.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/fr.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/fr.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/fr.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "fr", ENCODING: UTF-8
+{
+ "Insert special character": "Insérer caractère spécial",
+ "Cancel": "Annuler"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/it.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/it.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/it.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/it.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "it", ENCODING: UTF-8
+{
+ "Insert special character": "Inserisca il carattere speciale",
+ "Cancel": "Annullamento"
+};
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/nb.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/nb.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/nb.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/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 special character": "Sett inn tegn",
+ "Cancel": "Avbryt"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/nl.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/nl.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/nl.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/nl.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,11 @@
+// I18N constants
+// LANG: "nl", ENCODING: UTF-8
+// Sponsored by http://www.systemconcept.de
+// Author: Holger Hees, <hh...@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 special character": "Speciaal character invoegen",
+ "Cancel": "Annuleer"
+};
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/no.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/no.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/no.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/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 special character": "Sett inn tegn",
+ "Cancel": "Avbryt"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/ru.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/ru.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/ru.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/ru.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,7 @@
+// I18N constants
+// LANG: "ru", ENCODING: UTF-8
+// Author: Andrei Blagorazumov, a@fnr.ru
+{
+ "Insert special character": "ÐÑÑавиÑÑ ÑпеÑиалÑнÑй Ñимвол",
+ "Cancel": "ÐÑмениÑÑ"
+};
\ No newline at end of file
Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/sv.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/sv.js?view=auto&rev=454197
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/sv.js (added)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/sv.js Sun Oct 8 12:53:13 2006
@@ -0,0 +1,7 @@
+// I18N constants
+// LANG: "sv" (Swedish), ENCODING: UTF-8
+// translated: Erik Dalén <da...@jpl.se>
+{
+ "Insert special character": "Infoga tecken",
+ "Cancel": "Avbryt"
+};
Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/CharacterMap/lang/sv.js
------------------------------------------------------------------------------
svn:executable = *