Changeset 856
- Timestamp:
- 06/13/07 18:34:34 (6 years ago)
- Location:
- trunk
- Files:
-
- 48 modified
-
examples/full_example.js (modified) (1 diff)
-
lang/b5.js (modified) (1 diff)
-
lang/ch.js (modified) (1 diff)
-
lang/gb.js (modified) (1 diff)
-
lang/it.js (modified) (1 diff)
-
lang/nl.js (modified) (1 diff)
-
modules/GetHtml/TransformInnerHTML.js (modified) (8 diffs)
-
plugins/BackgroundImage/background-image.js (modified) (3 diffs)
-
plugins/CSS/css.js (modified) (1 diff)
-
plugins/CharacterMap/character-map.js (modified) (6 diffs)
-
plugins/ClientsideSpellcheck/clientside-spellcheck.js (modified) (3 diffs)
-
plugins/ContextMenu/context-menu.js (modified) (27 diffs)
-
plugins/DefinitionList/definition-list.js (modified) (2 diffs)
-
plugins/DynamicCSS/dynamiccss.js (modified) (4 diffs)
-
plugins/EditTag/edit-tag.js (modified) (3 diffs)
-
plugins/FindReplace/find-replace.js (modified) (1 diff)
-
plugins/FindReplace/fr_engine.js (modified) (2 diffs)
-
plugins/FullPage/full-page.js (modified) (3 diffs)
-
plugins/HtmlTidy/html-tidy.js (modified) (2 diffs)
-
plugins/ImageManager/assets/images.js (modified) (1 diff)
-
plugins/ImageManager/assets/manager.js (modified) (2 diffs)
-
plugins/ImageManager/assets/popup.js (modified) (2 diffs)
-
plugins/ImageManager/image-manager.js (modified) (6 diffs)
-
plugins/InsertAnchor/insert-anchor.js (modified) (2 diffs)
-
plugins/InsertMarquee/insert-marquee.js (modified) (2 diffs)
-
plugins/InsertPagebreak/insert-pagebreak.js (modified) (2 diffs)
-
plugins/ListType/list-type.js (modified) (6 diffs)
-
plugins/NoteServer/note-server.js (modified) (3 diffs)
-
plugins/QuickTag/quick-tag.js (modified) (1 diff)
-
plugins/SpellChecker/spell-check-ui.js (modified) (6 diffs)
-
plugins/SpellChecker/spell-checker.js (modified) (3 diffs)
-
plugins/TableOperations/lang/cz.js (modified) (1 diff)
-
plugins/TableOperations/lang/da.js (modified) (1 diff)
-
plugins/TableOperations/lang/de.js (modified) (1 diff)
-
plugins/TableOperations/lang/el.js (modified) (1 diff)
-
plugins/TableOperations/lang/fi.js (modified) (1 diff)
-
plugins/TableOperations/lang/fr.js (modified) (1 diff)
-
plugins/TableOperations/lang/he.js (modified) (1 diff)
-
plugins/TableOperations/lang/it.js (modified) (1 diff)
-
plugins/TableOperations/lang/ja.js (modified) (1 diff)
-
plugins/TableOperations/lang/nb.js (modified) (1 diff)
-
plugins/TableOperations/lang/nl.js (modified) (1 diff)
-
plugins/TableOperations/lang/pl.js (modified) (1 diff)
-
plugins/TableOperations/lang/ro.js (modified) (1 diff)
-
plugins/TableOperations/lang/ru.js (modified) (1 diff)
-
plugins/TableOperations/lang/sv.js (modified) (1 diff)
-
plugins/TableOperations/table-operations.js (modified) (38 diffs)
-
plugins/UnFormat/un-format.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/full_example.js
r416 r856 40 40 xinha_config = function() 41 41 { 42 var config = new HTMLArea.Config();42 var config = new Xinha.Config(); 43 43 44 44 if(typeof CSS != 'undefined') -
trunk/lang/b5.js
r60 r856 30 30 "Toggle HTML Source": "åæHTMLåå§ç¢Œ", 31 31 "Enlarge Editor": "æŸå€§", 32 "About this editor": "éæŒ HTMLArea",32 "About this editor": "éæŒ Xinha", 33 33 "Help using editor": "說æ", 34 34 "Current style": "åé«äŸå" -
trunk/lang/ch.js
r104 r856 33 33 "Toggle HTML Source": "åæHTMLåå§ç¢Œ", 34 34 "Enlarge Editor": "䌞åºç·šèŒ¯ç³»çµ±", 35 "About this editor": "éæŒ HTMLArea",35 "About this editor": "éæŒ Xinha", 36 36 "Help using editor": "說æ", 37 37 "Current style": "åé«äŸå", -
trunk/lang/gb.js
r60 r856 31 31 "Enlarge Editor": "æŸå€§", 32 32 "About this editor": "å 33 ³æŒ HTMLArea",33 ³æŒ Xinha", 34 34 "Help using editor": "诎æ", 35 35 "Current style": "åäœäŸå" -
trunk/lang/it.js
r104 r856 27 27 "Toggle HTML Source": "Visualizza/nascondi sorgente HTML", 28 28 "Enlarge Editor": "Allarga editor", 29 "About this editor": "Informazioni su HTMLArea",29 "About this editor": "Informazioni su Xinha", 30 30 "Help using editor": "Aiuto", 31 31 "Current style": "Stile corrente", -
trunk/lang/nl.js
r104 r856 37 37 "Enlarge Editor": "Vergroot Editor", 38 38 "About this editor": "Over deze editor", 39 "Help using editor": " HTMLArea help",39 "Help using editor": "Xinha help", 40 40 "Current style": "Huidige stijl", 41 41 "Undoes your last action": "Ongedaan maken", -
trunk/modules/GetHtml/TransformInnerHTML.js
r855 r856 4 4 * http://www.sitepoint.com/forums/showthread.php?t=201052 5 5 * 6 * A replacement for HTMLArea.getHTML6 * A replacement for Xinha.getHTML 7 7 * 8 8 * Features: 9 9 * - Generates XHTML code 10 * - Much faster than HTMLArea.getHTML10 * - Much faster than Xinha.getHTML 11 11 * - Eliminates the hacks to accomodate browser quirks 12 12 * - Returns correct code for Flash objects and scripts … … 33 33 }; 34 34 35 HTMLArea.RegExpCache = [35 Xinha.RegExpCache = [ 36 36 /*00*/ new RegExp().compile(/<\s*\/?([^\s\/>]+)[\s*\/>]/gi),//lowercase tags 37 37 /*01*/ new RegExp().compile(/(\s+)_moz[^=>]*=[^\s>]*/gi),//strip _moz attributes … … 63 63 * Cleans HTML into wellformed xhtml 64 64 */ 65 HTMLArea.prototype.cleanHTML = function(sHtml) {66 var c = HTMLArea.RegExpCache;65 Xinha.prototype.cleanHTML = function(sHtml) { 66 var c = Xinha.RegExpCache; 67 67 sHtml = sHtml. 68 68 replace(c[0], function(str) { return str.toLowerCase(); } ).//lowercase tags/attribute names … … 80 80 replace(c[8], '<').//strip tagstart whitespace 81 81 replace(c[10], ' ');//trim extra whitespace 82 if( HTMLArea.is_ie && c[13].test(sHtml)) {82 if(Xinha.is_ie && c[13].test(sHtml)) { 83 83 sHtml = sHtml.replace(c[13],'$1'+this.stripBaseURL(RegExp.$3)+'"'); 84 84 } 85 85 if(this.config.only7BitPrintablesInURLs) { 86 if ( HTMLArea.is_ie) c[13].test(sHtml); // oddly the test below only triggers when we call this once before (IE6), in Moz it fails if tested twice86 if (Xinha.is_ie) c[13].test(sHtml); // oddly the test below only triggers when we call this once before (IE6), in Moz it fails if tested twice 87 87 if ( c[13].test(sHtml)) { 88 88 try { //Mozilla returns an incorrectly encoded value with innerHTML … … 99 99 * Prettyfies html by inserting linebreaks before tags, and indenting blocklevel tags 100 100 */ 101 HTMLArea.indent = function(s, sindentChar) {102 HTMLArea.__nindent = 0;103 HTMLArea.__sindent = "";104 HTMLArea.__sindentChar = (typeof sindentChar == "undefined") ? " " : sindentChar;105 var c = HTMLArea.RegExpCache;106 if( HTMLArea.is_gecko) { //moz changes returns into <br> inside <pre> tags101 Xinha.indent = function(s, sindentChar) { 102 Xinha.__nindent = 0; 103 Xinha.__sindent = ""; 104 Xinha.__sindentChar = (typeof sindentChar == "undefined") ? " " : sindentChar; 105 var c = Xinha.RegExpCache; 106 if(Xinha.is_gecko) { //moz changes returns into <br> inside <pre> tags 107 107 s = s.replace(c[19], function(str){return str.replace(/<br \/>/g,"\n")}); 108 108 } … … 111 111 string = $2.replace(/[\n\r]/gi, " ").replace(/\s+/gi," ").replace(c[14], function(str) { 112 112 if (str.match(c[16])) { 113 var s = "\n" + HTMLArea.__sindent + str;113 var s = "\n" + Xinha.__sindent + str; 114 114 // blocklevel openingtag - increase indent 115 HTMLArea.__sindent += HTMLArea.__sindentChar;116 ++ HTMLArea.__nindent;115 Xinha.__sindent += Xinha.__sindentChar; 116 ++Xinha.__nindent; 117 117 return s; 118 118 } else if (str.match(c[15])) { 119 119 // blocklevel closingtag - decrease indent 120 -- HTMLArea.__nindent;121 HTMLArea.__sindent = "";122 for (var i= HTMLArea.__nindent;i>0;--i) {123 HTMLArea.__sindent += HTMLArea.__sindentChar;120 --Xinha.__nindent; 121 Xinha.__sindent = ""; 122 for (var i=Xinha.__nindent;i>0;--i) { 123 Xinha.__sindent += Xinha.__sindentChar; 124 124 } 125 return "\n" + HTMLArea.__sindent + str;125 return "\n" + Xinha.__sindent + str; 126 126 } else if (str.match(c[17])) { 127 127 // singlet tag 128 return "\n" + HTMLArea.__sindent + str;128 return "\n" + Xinha.__sindent + str; 129 129 } 130 130 return str; // this won't actually happen … … 140 140 }; 141 141 142 HTMLArea.getHTML = function(root, outputRoot, editor) {142 Xinha.getHTML = function(root, outputRoot, editor) { 143 143 var html = ""; 144 var c = HTMLArea.RegExpCache;144 var c = Xinha.RegExpCache; 145 145 146 146 if(root.nodeType == 11) {//document fragment … … 192 192 }); 193 193 //IE drops all </li> tags in a list except the last one 194 if( HTMLArea.is_ie) {194 if(Xinha.is_ie) { 195 195 html = html.replace(/<li( [^>]*)?>/g,'</li><li$1>'). 196 196 replace(/(<(ul|ol)[^>]*>)[\s\n]*<\/li>/g, '$1'). 197 197 replace(/<\/li>([\s\n]*<\/li>)+/g, '<\/li>'); 198 198 } 199 if( HTMLArea.is_gecko)199 if(Xinha.is_gecko) 200 200 html = html.replace(/<br \/>\n$/, ''); //strip trailing <br> added by moz 201 201 if (outputRoot) { 202 202 html += "</" + root_tag + ">"; 203 203 } 204 html = HTMLArea.indent(html);204 html = Xinha.indent(html); 205 205 }; 206 // html = HTMLArea.htmlEncode(html);206 // html = Xinha.htmlEncode(html); 207 207 208 208 return html; -
trunk/plugins/BackgroundImage/background-image.js
r677 r856 4 4 // based on TinyMCE (http://tinymce.moxiecode.com/) Distributed under LGPL by Moxiecode Systems AB 5 5 // 6 // Distributed under the same terms as HTMLArea itself.6 // Distributed under the same terms as Xinha itself. 7 7 // This notice MUST stay intact for use (see license.txt). 8 8 … … 35 35 36 36 BackgroundImage.prototype._lc = function(string) { 37 return HTMLArea._lc(string, 'BackgroundImage');37 return Xinha._lc(string, 'BackgroundImage'); 38 38 }; 39 39 … … 42 42 editor._popupDialog( "plugin://BackgroundImage/bgimage", function( bgImage ) { 43 43 if(bgImage) { 44 if( HTMLArea.is_ie) editor.focusEditor();44 if(Xinha.is_ie) editor.focusEditor(); 45 45 if(bgImage=="*") { 46 46 editor._doc.body.background = ""; -
trunk/plugins/CSS/css.js
r419 r856 10 10 // @TODO This is the default and won't be very useful to others. 11 11 // We should make this better. 12 HTMLArea.Config.prototype.cssPluginConfig =12 Xinha.Config.prototype.cssPluginConfig = 13 13 { 14 14 combos : [ -
trunk/plugins/CharacterMap/character-map.js
r770 r856 1 // Character Map plugin for HTMLArea1 // Character Map plugin for Xinha 2 2 // Original Author - Bernhard Pfeifer novocaine@gmx.net 3 HTMLArea.loadStyle( 'CharacterMap.css', 'CharacterMap' );3 Xinha.loadStyle( 'CharacterMap.css', 'CharacterMap' ); 4 4 5 5 function CharacterMap( editor ) … … 11 11 { 12 12 id : 'insertcharacter', 13 tooltip : HTMLArea._lc( 'Insert special character', 'CharacterMap' ),13 tooltip : Xinha._lc( 'Insert special character', 'CharacterMap' ), 14 14 image : editor.imgURL( 'ed_charmap.gif', 'CharacterMap' ), 15 15 textMode : false, … … 22 22 { 23 23 editor._CharacterMap = editor.addPanel( 'right' ); 24 HTMLArea._addClass( editor._CharacterMap, 'CharacterMap' );24 Xinha._addClass( editor._CharacterMap, 'CharacterMap' ); 25 25 26 26 editor.notifyOn( 'modechange', … … 57 57 58 58 // configuration mode : panel or popup 59 HTMLArea.Config.prototype.CharacterMap =59 Xinha.Config.prototype.CharacterMap = 60 60 { 61 61 'mode': 'popup' // configuration mode : panel or popup … … 97 97 { 98 98 if ( !entity ) return false; 99 if ( HTMLArea.is_ie ) editor.focusEditor();99 if ( Xinha.is_ie ) editor.focusEditor(); 100 100 editor.insertHTML( entity ); 101 101 }, null); … … 108 108 var self = this; 109 109 var a = document.createElement( 'a' ); 110 HTMLArea._addClass( a, 'entity' );110 Xinha._addClass( a, 'entity' ); 111 111 a.innerHTML = entite; 112 112 a.href = 'javascript:void(0)'; 113 HTMLArea._addClass(a, (pos%2)? 'light':'dark');113 Xinha._addClass(a, (pos%2)? 'light':'dark'); 114 114 a.onclick = function() 115 115 { 116 if ( HTMLArea.is_ie) editor.focusEditor();116 if (Xinha.is_ie) editor.focusEditor(); 117 117 editor.insertHTML( entite ); 118 118 //self._isActive = false; -
trunk/plugins/ClientsideSpellcheck/clientside-spellcheck.js
r677 r856 3 3 //This implements the API for ieSpell, which is owned by Red Egg Software 4 4 //For more info about ieSpell, go to http://www.iespell.com/index.htm 5 // Distributed under the same terms as HTMLArea itself.5 // Distributed under the same terms as Xinha itself. 6 6 // This notice MUST stay intact for use (see license.txt). 7 7 … … 24 24 }); 25 25 26 if( HTMLArea.is_ie) {26 if(Xinha.is_ie) { 27 27 cfg.addToolbarElement("clientsidespellcheck", "print", 1); 28 28 } … … 43 43 44 44 ClientsideSpellcheck.prototype._lc = function(string) { 45 return HTMLArea._lc(string, 'ClientsideSpellcheck');45 return Xinha._lc(string, 'ClientsideSpellcheck'); 46 46 }; 47 47 -
trunk/plugins/ContextMenu/context-menu.js
r597 r856 9 9 // $Id$ 10 10 11 HTMLArea.loadStyle("menu.css", "ContextMenu");11 Xinha.loadStyle("menu.css", "ContextMenu"); 12 12 13 13 function ContextMenu(editor) { … … 29 29 var self = this; 30 30 var doc = this.editordoc = this.editor._iframe.contentWindow.document; 31 HTMLArea._addEvents(doc, ["contextmenu"],31 Xinha._addEvents(doc, ["contextmenu"], 32 32 function (event) { 33 return self.popupMenu( HTMLArea.is_ie ? self.editor._iframe.contentWindow.event : event);33 return self.popupMenu(Xinha.is_ie ? self.editor._iframe.contentWindow.event : event); 34 34 }); 35 35 this.currentMenu = null; … … 45 45 46 46 var selection = editor.hasSelectedText(); 47 if (! HTMLArea.is_gecko) {47 if (!Xinha.is_gecko) { 48 48 if (selection) { 49 menu.push([ HTMLArea._lc("Cut", "ContextMenu"), function() { editor.execCommand("cut"); }, null, config.btnList["cut"][1] ],50 [ HTMLArea._lc("Copy", "ContextMenu"), function() { editor.execCommand("copy"); }, null, config.btnList["copy"][1] ]);51 menu.push([ HTMLArea._lc("Paste", "ContextMenu"), function() { editor.execCommand("paste"); }, null, config.btnList["paste"][1] ]);49 menu.push([ Xinha._lc("Cut", "ContextMenu"), function() { editor.execCommand("cut"); }, null, config.btnList["cut"][1] ], 50 [ Xinha._lc("Copy", "ContextMenu"), function() { editor.execCommand("copy"); }, null, config.btnList["copy"][1] ]); 51 menu.push([ Xinha._lc("Paste", "ContextMenu"), function() { editor.execCommand("paste"); }, null, config.btnList["paste"][1] ]); 52 52 } 53 53 } … … 73 73 var sel = editor._getSelection(); 74 74 var range = editor._createRange(sel); 75 if (! HTMLArea.is_ie) {75 if (!Xinha.is_ie) { 76 76 sel.removeAllRanges(); 77 77 range.selectNodeContents(p); … … 94 94 img = target; 95 95 elmenus.push(null, 96 [ HTMLArea._lc("_Image Properties...", "ContextMenu"),96 [ Xinha._lc("_Image Properties...", "ContextMenu"), 97 97 function() { 98 98 editor._insertImage(img); 99 99 }, 100 HTMLArea._lc("Show the image properties dialog", "ContextMenu"),100 Xinha._lc("Show the image properties dialog", "ContextMenu"), 101 101 config.btnList["insertimage"][1] ] 102 102 ); … … 105 105 link = target; 106 106 elmenus.push(null, 107 [ HTMLArea._lc("_Modify Link...", "ContextMenu"),107 [ Xinha._lc("_Modify Link...", "ContextMenu"), 108 108 function() { editor.config.btnList['createlink'][3](editor); }, 109 HTMLArea._lc("Current URL is", "ContextMenu") + ': ' + link.href,109 Xinha._lc("Current URL is", "ContextMenu") + ': ' + link.href, 110 110 config.btnList["createlink"][1] ], 111 111 112 [ HTMLArea._lc("Chec_k Link...", "ContextMenu"),112 [ Xinha._lc("Chec_k Link...", "ContextMenu"), 113 113 function() { window.open(link.href); }, 114 HTMLArea._lc("Opens this link in a new window", "ContextMenu") ],115 116 [ HTMLArea._lc("_Remove Link...", "ContextMenu"),114 Xinha._lc("Opens this link in a new window", "ContextMenu") ], 115 116 [ Xinha._lc("_Remove Link...", "ContextMenu"), 117 117 function() { 118 if (confirm( HTMLArea._lc("Please confirm that you want to unlink this element.", "ContextMenu") + "\n" +119 HTMLArea._lc("Link points to:", "ContextMenu") + " " + link.href)) {118 if (confirm(Xinha._lc("Please confirm that you want to unlink this element.", "ContextMenu") + "\n" + 119 Xinha._lc("Link points to:", "ContextMenu") + " " + link.href)) { 120 120 while (link.firstChild) 121 121 link.parentNode.insertBefore(link.firstChild, link); … … 123 123 } 124 124 }, 125 HTMLArea._lc("Unlink the current element", "ContextMenu") ]125 Xinha._lc("Unlink the current element", "ContextMenu") ] 126 126 ); 127 127 break; … … 130 130 if (!tbo) break; 131 131 elmenus.push(null, 132 [ HTMLArea._lc("C_ell Properties...", "ContextMenu"),132 [ Xinha._lc("C_ell Properties...", "ContextMenu"), 133 133 function() { tableOperation("TO-cell-prop"); }, 134 HTMLArea._lc("Show the Table Cell Properties dialog", "ContextMenu"),134 Xinha._lc("Show the Table Cell Properties dialog", "ContextMenu"), 135 135 config.btnList["TO-cell-prop"][1] ], 136 136 137 [ HTMLArea._lc("Insert Cell After", "ContextMenu"),137 [ Xinha._lc("Insert Cell After", "ContextMenu"), 138 138 function() { tableOperation("TO-cell-insert-after"); }, 139 HTMLArea._lc("Insert Cell After", "ContextMenu"),139 Xinha._lc("Insert Cell After", "ContextMenu"), 140 140 config.btnList["TO-cell-insert-after"][1] ], 141 141 142 [ HTMLArea._lc("Insert Cell Before", "ContextMenu"),142 [ Xinha._lc("Insert Cell Before", "ContextMenu"), 143 143 function() { tableOperation("TO-cell-insert-before"); }, 144 HTMLArea._lc("Insert Cell After", "ContextMenu"),144 Xinha._lc("Insert Cell After", "ContextMenu"), 145 145 config.btnList["TO-cell-insert-before"][1] ], 146 146 147 [ HTMLArea._lc("Delete Cell", "ContextMenu"),147 [ Xinha._lc("Delete Cell", "ContextMenu"), 148 148 function() { tableOperation("TO-cell-delete"); }, 149 HTMLArea._lc("Delete Cell", "ContextMenu"),149 Xinha._lc("Delete Cell", "ContextMenu"), 150 150 config.btnList["TO-cell-delete"][1] ], 151 151 152 [ HTMLArea._lc("Merge Cells", "ContextMenu"),152 [ Xinha._lc("Merge Cells", "ContextMenu"), 153 153 function() { tableOperation("TO-cell-merge"); }, 154 HTMLArea._lc("Merge Cells", "ContextMenu"),154 Xinha._lc("Merge Cells", "ContextMenu"), 155 155 config.btnList["TO-cell-merge"][1] ] 156 156 ); … … 160 160 if (!tbo) break; 161 161 elmenus.push(null, 162 [ HTMLArea._lc("Ro_w Properties...", "ContextMenu"),162 [ Xinha._lc("Ro_w Properties...", "ContextMenu"), 163 163 function() { tableOperation("TO-row-prop"); }, 164 HTMLArea._lc("Show the Table Row Properties dialog", "ContextMenu"),164 Xinha._lc("Show the Table Row Properties dialog", "ContextMenu"), 165 165 config.btnList["TO-row-prop"][1] ], 166 166 167 [ HTMLArea._lc("I_nsert Row Before", "ContextMenu"),167 [ Xinha._lc("I_nsert Row Before", "ContextMenu"), 168 168 function() { tableOperation("TO-row-insert-above"); }, 169 HTMLArea._lc("Insert a new row before the current one", "ContextMenu"),169 Xinha._lc("Insert a new row before the current one", "ContextMenu"), 170 170 config.btnList["TO-row-insert-above"][1] ], 171 171 172 [ HTMLArea._lc("In_sert Row After", "ContextMenu"),172 [ Xinha._lc("In_sert Row After", "ContextMenu"), 173 173 function() { tableOperation("TO-row-insert-under"); }, 174 HTMLArea._lc("Insert a new row after the current one", "ContextMenu"),174 Xinha._lc("Insert a new row after the current one", "ContextMenu"), 175 175 config.btnList["TO-row-insert-under"][1] ], 176 176 177 [ HTMLArea._lc("_Delete Row", "ContextMenu"),177 [ Xinha._lc("_Delete Row", "ContextMenu"), 178 178 function() { tableOperation("TO-row-delete"); }, 179 HTMLArea._lc("Delete the current row", "ContextMenu"),179 Xinha._lc("Delete the current row", "ContextMenu"), 180 180 config.btnList["TO-row-delete"][1] ] 181 181 ); … … 185 185 if (!tbo) break; 186 186 elmenus.push(null, 187 [ HTMLArea._lc("_Table Properties...", "ContextMenu"),187 [ Xinha._lc("_Table Properties...", "ContextMenu"), 188 188 function() { tableOperation("TO-table-prop"); }, 189 HTMLArea._lc("Show the Table Properties dialog", "ContextMenu"),189 Xinha._lc("Show the Table Properties dialog", "ContextMenu"), 190 190 config.btnList["TO-table-prop"][1] ], 191 191 192 [ HTMLArea._lc("Insert _Column Before", "ContextMenu"),192 [ Xinha._lc("Insert _Column Before", "ContextMenu"), 193 193 function() { tableOperation("TO-col-insert-before"); }, 194 HTMLArea._lc("Insert a new column before the current one", "ContextMenu"),194 Xinha._lc("Insert a new column before the current one", "ContextMenu"), 195 195 config.btnList["TO-col-insert-before"][1] ], 196 196 197 [ HTMLArea._lc("Insert C_olumn After", "ContextMenu"),197 [ Xinha._lc("Insert C_olumn After", "ContextMenu"), 198 198 function() { tableOperation("TO-col-insert-after"); }, 199 HTMLArea._lc("Insert a new column after the current one", "ContextMenu"),199 Xinha._lc("Insert a new column after the current one", "ContextMenu"), 200 200 config.btnList["TO-col-insert-after"][1] ], 201 201 202 [ HTMLArea._lc("De_lete Column", "ContextMenu"),202 [ Xinha._lc("De_lete Column", "ContextMenu"), 203 203 function() { tableOperation("TO-col-delete"); }, 204 HTMLArea._lc("Delete the current column", "ContextMenu"),204 Xinha._lc("Delete the current column", "ContextMenu"), 205 205 config.btnList["TO-col-delete"][1] ] 206 206 ); … … 208 208 case "body": 209 209 elmenus.push(null, 210 [ HTMLArea._lc("Justify Left", "ContextMenu"),210 [ Xinha._lc("Justify Left", "ContextMenu"), 211 211 function() { editor.execCommand("justifyleft"); }, null, 212 212 config.btnList["justifyleft"][1] ], 213 [ HTMLArea._lc("Justify Center", "ContextMenu"),213 [ Xinha._lc("Justify Center", "ContextMenu"), 214 214 function() { editor.execCommand("justifycenter"); }, null, 215 215 config.btnList["justifycenter"][1] ], 216 [ HTMLArea._lc("Justify Right", "ContextMenu"),216 [ Xinha._lc("Justify Right", "ContextMenu"), 217 217 function() { editor.execCommand("justifyright"); }, null, 218 218 config.btnList["justifyright"][1] ], 219 [ HTMLArea._lc("Justify Full", "ContextMenu"),219 [ Xinha._lc("Justify Full", "ContextMenu"), 220 220 function() { editor.execCommand("justifyfull"); }, null, 221 221 config.btnList["justifyfull"][1] ] … … 226 226 227 227 if (selection && !link) 228 menu.push(null, [ HTMLArea._lc("Make lin_k...", "ContextMenu"),228 menu.push(null, [ Xinha._lc("Make lin_k...", "ContextMenu"), 229 229 function() { editor.config.btnList['createlink'][3](editor); }, 230 HTMLArea._lc("Create a link", "ContextMenu"),230 Xinha._lc("Create a link", "ContextMenu"), 231 231 config.btnList["createlink"][1] ]); 232 232 … … 236 236 if (!/html|body/i.test(currentTarget.tagName)) 237 237 menu.push(null, 238 [ HTMLArea._lc({string: "Remove the $elem Element...", replace: {elem: "<" + currentTarget.tagName + ">"}}, "ContextMenu"),238 [ Xinha._lc({string: "Remove the $elem Element...", replace: {elem: "<" + currentTarget.tagName + ">"}}, "ContextMenu"), 239 239 function() { 240 if (confirm( HTMLArea._lc("Please confirm that you want to remove this element:", "ContextMenu") + " " +240 if (confirm(Xinha._lc("Please confirm that you want to remove this element:", "ContextMenu") + " " + 241 241 currentTarget.tagName)) { 242 242 var el = currentTarget; 243 243 var p = el.parentNode; 244 244 p.removeChild(el); 245 if ( HTMLArea.is_gecko) {245 if (Xinha.is_gecko) { 246 246 if (p.tagName.toLowerCase() == "td" && !p.hasChildNodes()) 247 247 p.appendChild(editor._doc.createElement("br")); … … 258 258 } 259 259 }, 260 HTMLArea._lc("Remove this node from the document", "ContextMenu") ],261 [ HTMLArea._lc("Insert paragraph before", "ContextMenu"),260 Xinha._lc("Remove this node from the document", "ContextMenu") ], 261 [ Xinha._lc("Insert paragraph before", "ContextMenu"), 262 262 function() { insertPara(false); }, 263 HTMLArea._lc("Insert a paragraph before the current node", "ContextMenu") ],264 [ HTMLArea._lc("Insert paragraph after", "ContextMenu"),263 Xinha._lc("Insert a paragraph before the current node", "ContextMenu") ], 264 [ Xinha._lc("Insert paragraph after", "ContextMenu"), 265 265 function() { insertPara(true); }, 266 HTMLArea._lc("Insert a paragraph after the current node", "ContextMenu") ]266 Xinha._lc("Insert a paragraph after the current node", "ContextMenu") ] 267 267 ); 268 268 if (!menu[0]) menu.shift(); //If the menu begins with a separator, remove it for cosmetical reasons … … 288 288 ev || (ev = window.event); 289 289 if (!self.currentMenu) { 290 alert( HTMLArea._lc("How did you get here? (Please report!)", "ContextMenu"));290 alert(Xinha._lc("How did you get here? (Please report!)", "ContextMenu")); 291 291 return false; 292 292 } 293 var el = HTMLArea.is_ie ? ev.srcElement : ev.target;293 var el = Xinha.is_ie ? ev.srcElement : ev.target; 294 294 for (; el != null && el != self.currentMenu; el = el.parentNode); 295 295 if (el == null) 296 296 self.closeMenu(); 297 // HTMLArea._stopEvent(ev);297 //Xinha._stopEvent(ev); 298 298 //return false; 299 299 } … … 301 301 function keyPress(ev) { 302 302 ev || (ev = window.event); 303 HTMLArea._stopEvent(ev);303 Xinha._stopEvent(ev); 304 304 if (ev.keyCode == 27) { 305 305 self.closeMenu(); 306 306 return false; 307 307 } 308 var key = String.fromCharCode( HTMLArea.is_ie ? ev.keyCode : ev.charCode).toLowerCase();308 var key = String.fromCharCode(Xinha.is_ie ? ev.keyCode : ev.charCode).toLowerCase(); 309 309 for (var i = keys.length; --i >= 0;) { 310 310 var k = keys[i]; … … 316 316 self.currentMenu.parentNode.removeChild(self.currentMenu); 317 317 self.currentMenu = null; 318 HTMLArea._removeEvent(document, "mousedown", documentClick);319 HTMLArea._removeEvent(self.editordoc, "mousedown", documentClick);318 Xinha._removeEvent(document, "mousedown", documentClick); 319 Xinha._removeEvent(self.editordoc, "mousedown", documentClick); 320 320 if (keys.length > 0) 321 HTMLArea._removeEvent(self.editordoc, "keypress", keyPress);322 if ( HTMLArea.is_ie)321 Xinha._removeEvent(self.editordoc, "keypress", keyPress); 322 if (Xinha.is_ie) 323 323 self.iePopup.hide(); 324 324 } 325 var target = HTMLArea.is_ie ? ev.srcElement : ev.target;325 var target = Xinha.is_ie ? ev.srcElement : ev.target; 326 326 var ifpos = getPos(self.editor._htmlArea);//_iframe); 327 327 var x = ev.clientX + ifpos.x; … … 330 330 var div; 331 331 var doc; 332 if (! HTMLArea.is_ie) {332 if (!Xinha.is_ie) { 333 333 doc = document; 334 334 } else { … … 341 341 } 342 342 div = doc.createElement("div"); 343 if ( HTMLArea.is_ie)343 if (Xinha.is_ie) 344 344 div.unselectable = "on"; 345 345 div.oncontextmenu = function() { return false; }; 346 346 div.className = "htmlarea-context-menu"; 347 if (! HTMLArea.is_ie)347 if (!Xinha.is_ie) 348 348 div.style.left = div.style.top = "0px"; 349 349 doc.body.appendChild(div); … … 361 361 var item = doc.createElement("tr"); 362 362 parent.appendChild(item); 363 if ( HTMLArea.is_ie)363 if (Xinha.is_ie) 364 364 item.unselectable = "on"; 365 365 else item.onmousedown = function(ev) { 366 HTMLArea._stopEvent(ev);366 Xinha._stopEvent(ev); 367 367 return false; 368 368 }; … … 372 372 td.className = "icon"; 373 373 var IE_IS_A_FUCKING_SHIT = '>'; 374 if ( HTMLArea.is_ie) {374 if (Xinha.is_ie) { 375 375 td.unselectable = "on"; 376 376 IE_IS_A_FUCKING_SHIT = " unselectable='on' style='height=1px'> "; … … 401 401 label = label.replace(/__/, "_"); 402 402 var td1 = doc.createElement("td"); 403 if ( HTMLArea.is_ie)403 if (Xinha.is_ie) 404 404 td1.unselectable = "on"; 405 405 item.appendChild(td1); … … 407 407 if (item.__msh.icon) 408 408 { 409 var t = HTMLArea.makeBtnImg(item.__msh.icon, doc);409 var t = Xinha.makeBtnImg(item.__msh.icon, doc); 410 410 td1.appendChild(t); 411 411 // td1.innerHTML = "<img align='middle' src='" + item.__msh.icon + "' />"; 412 412 } 413 413 var td2 = doc.createElement("td"); 414 if ( HTMLArea.is_ie)414 if (Xinha.is_ie) 415 415 td2.unselectable = "on"; 416 416 item.appendChild(td2); … … 424 424 item.oncontextmenu = function(ev) { 425 425 this.__msh.activate(); 426 if (! HTMLArea.is_ie)427 HTMLArea._stopEvent(ev);426 if (!Xinha.is_ie) 427 Xinha._stopEvent(ev); 428 428 return false; 429 429 }; … … 432 432 if (timeStamp - self.timeStamp > 500) 433 433 this.__msh.activate(); 434 if (! HTMLArea.is_ie)435 HTMLArea._stopEvent(ev);434 if (!Xinha.is_ie) 435 Xinha._stopEvent(ev); 436 436 return false; 437 437 }; … … 441 441 } 442 442 443 if (! HTMLArea.is_ie) {443 if (!Xinha.is_ie) { 444 444 /* FIXME: I think this is to stop the popup from running off the bottom of the screen? 445 445 var dx = x + div.offsetWidth - window.innerWidth + 4; … … 464 464 this.timeStamp = (new Date()).getTime(); 465 465 466 HTMLArea._addEvent(document, "mousedown", documentClick);467 HTMLArea._addEvent(this.editordoc, "mousedown", documentClick);466 Xinha._addEvent(document, "mousedown", documentClick); 467 Xinha._addEvent(this.editordoc, "mousedown", documentClick); 468 468 if (keys.length > 0) 469 HTMLArea._addEvent(this.editordoc, "keypress", keyPress);470 471 HTMLArea._stopEvent(ev);469 Xinha._addEvent(this.editordoc, "keypress", keyPress); 470 471 Xinha._stopEvent(ev); 472 472 return false; 473 473 }; -
trunk/plugins/DefinitionList/definition-list.js
r719 r856 1 // DefinitionList plugin for HTMLArea2 // Distributed under the same terms as HTMLArea itself.1 // DefinitionList plugin for Xinha 2 // Distributed under the same terms as Xinha itself. 3 3 // This notice MUST stay intact for use (see license.txt). 4 4 … … 46 46 47 47 DefinitionList.prototype._lc = function(string) { 48 return HTMLArea._lc(string, 'DefinitionList');48 return Xinha._lc(string, 'DefinitionList'); 49 49 }; 50 50 -
trunk/plugins/DynamicCSS/dynamiccss.js
r419 r856 39 39 40 40 // Mozilla 41 if( HTMLArea.is_gecko){41 if(Xinha.is_gecko){ 42 42 try{ 43 43 cssArray=DynamicCSS.applyCSSRule(iframe.styleSheets[i].cssRules,cssArray); … … 93 93 else{ 94 94 className='none'; 95 if(tagName=='all') cssName= HTMLArea._lc("Default", 'DynamicCSS');96 else cssName='<'+ HTMLArea._lc("Default", 'DynamicCSS')+'>';95 if(tagName=='all') cssName=Xinha._lc("Default", 'DynamicCSS'); 96 else cssName='<'+Xinha._lc("Default", 'DynamicCSS')+'>'; 97 97 } 98 98 cssArray[tagName][className]=cssName; … … 121 121 122 122 DynamicCSS.prototype._lc = function(string) { 123 return HTMLArea._lc(string, 'DynamicCSS');123 return Xinha._lc(string, 'DynamicCSS'); 124 124 }; 125 125 … … 136 136 } 137 137 else{ 138 if( HTMLArea.is_gecko) parent.removeAttribute('class');138 if(Xinha.is_gecko) parent.removeAttribute('class'); 139 139 else parent.removeAttribute('className'); 140 140 } -
trunk/plugins/EditTag/edit-tag.js
r677 r856 1 // Character Map plugin for HTMLArea1 // Character Map plugin for Xinha 2 2 // Sponsored by http://www.systemconcept.de 3 3 // Implementation by Holger Hees based on HTMLArea XTD 1.5 (http://mosforge.net/projects/htmlarea3xtd/) … … 5 5 // 6 6 // (c) systemconcept.de 2004 7 // Distributed under the same terms as HTMLArea itself.7 // Distributed under the same terms as Xinha itself. 8 8 // This notice MUST stay intact for use (see license.txt). 9 9 … … 39 39 40 40 EditTag.prototype._lc = function(string) { 41 return HTMLArea._lc(string, 'EditTag');41 return Xinha._lc(string, 'EditTag'); 42 42 }; 43 43 -
trunk/plugins/FindReplace/find-replace.js
r677 r856 39 39 40 40 FindReplace.prototype._lc = function(string) { 41 return HTMLArea._lc(string, 'FindReplace');41 return Xinha._lc(string, 'FindReplace'); 42 42 }; -
trunk/plugins/FindReplace/fr_engine.js
r677 r856 8 8 var FindReplace = window.opener.FindReplace; 9 9 var editor = FindReplace.editor; 10 var is_mo = window.opener. HTMLArea.is_gecko;10 var is_mo = window.opener.Xinha.is_gecko; 11 11 var tosearch = ''; 12 12 var pater = null; … … 16 16 var fr_spans = new Array(); 17 17 function _lc(string) { 18 return(window.opener. HTMLArea._lc(string, 'FindReplace'));18 return(window.opener.Xinha._lc(string, 'FindReplace')); 19 19 } 20 20 function execSearch(params) { -
trunk/plugins/FullPage/full-page.js
r419 r856 41 41 42 42 FullPage.prototype._lc = function(string) { 43 return HTMLArea._lc(string, 'FullPage');43 return Xinha._lc(string, 'FullPage'); 44 44 }; 45 45 … … 81 81 f_doctype : editor.doctype, 82 82 f_title : title, 83 f_body_bgcolor : HTMLArea._colorToRgb(doc.body.style.backgroundColor),84 f_body_fgcolor : HTMLArea._colorToRgb(doc.body.style.color),83 f_body_bgcolor : Xinha._colorToRgb(doc.body.style.backgroundColor), 84 f_body_fgcolor : Xinha._colorToRgb(doc.body.style.color), 85 85 f_base_style : style1, 86 86 f_alt_style : style2, … … 191 191 } else while (node = title.lastChild) 192 192 title.removeChild(node); 193 if (! HTMLArea.is_ie)193 if (!Xinha.is_ie) 194 194 title.appendChild(doc.createTextNode(val)); 195 195 else -
trunk/plugins/HtmlTidy/html-tidy.js
r419 r856 58 58 59 59 HtmlTidy.prototype._lc = function(string) { 60 return HTMLArea._lc(string, 'HtmlTidy');60 return Xinha._lc(string, 'HtmlTidy'); 61 61 }; 62 62 … … 93 93 if(oldhtml=="") break; //don't clean empty text 94 94 // Ask the server for some nice new html, based on the old... 95 HTMLArea._postback(_editor_url + 'plugins/HtmlTidy/html-tidy-logic.php', {'htisource_name' : oldhtml},95 Xinha._postback(_editor_url + 'plugins/HtmlTidy/html-tidy-logic.php', {'htisource_name' : oldhtml}, 96 96 function(javascriptResponse) { eval(javascriptResponse) }); 97 97 } -
trunk/plugins/ImageManager/assets/images.js
r829 r856 7 7 8 8 function i18n(str) { 9 return HTMLArea._lc(str, 'ImageManager');9 return Xinha._lc(str, 'ImageManager'); 10 10 } 11 11 -
trunk/plugins/ImageManager/assets/manager.js
r833 r856 8 8 //Translation 9 9 function i18n(str) { 10 return HTMLArea._lc(str, 'ImageManager');10 return Xinha._lc(str, 'ImageManager'); 11 11 } 12 12 … … 148 148 { 149 149 // Yup, need to resize 150 var resized = HTMLArea._geturlcontent(_backend_url + '&__function=resizer&img=' + encodeURIComponent(document.getElementById('f_url').value) + '&width=' + param.f_width + '&height=' + param.f_height);150 var resized = Xinha._geturlcontent(_backend_url + '&__function=resizer&img=' + encodeURIComponent(document.getElementById('f_url').value) + '&width=' + param.f_width + '&height=' + param.f_height); 151 151 // alert(resized); 152 152 resized = eval(resized); -
trunk/plugins/ImageManager/assets/popup.js
r677 r856 21 21 var span = spans[i]; 22 22 if (span.firstChild && span.firstChild.data) { 23 var txt = HTMLArea._lc(span.firstChild.data, context);23 var txt = Xinha._lc(span.firstChild.data, context); 24 24 if (txt) 25 25 span.firstChild.data = txt; 26 26 } 27 27 if (span.title) { 28 var txt = HTMLArea._lc(span.title, context);28 var txt = Xinha._lc(span.title, context); 29 29 if (txt) 30 30 span.title = txt; 31 31 } 32 32 if (span.alt) { 33 var txt = HTMLArea._lc(span.alt, context);33 var txt = Xinha._lc(span.alt, context); 34 34 if (txt) 35 35 span.alt = txt; … … 37 37 } 38 38 } 39 document.title = HTMLArea._lc(document.title, context);39 document.title = Xinha._lc(document.title, context); 40 40 } -
trunk/plugins/ImageManager/image-manager.js
r770 r856 7 7 8 8 /** 9 * To Enable the plug-in add the following line before HTMLArea is initialised.9 * To Enable the plug-in add the following line before Xinha is initialised. 10 10 * 11 * HTMLArea.loadPlugin("ImageManager");11 * Xinha.loadPlugin("ImageManager"); 12 12 * 13 13 * Then configure the config.inc.php file, that is all. … … 16 16 17 17 /** 18 * It is pretty simple, this file over rides the HTMLArea.prototype._insertImage18 * It is pretty simple, this file over rides the Xinha.prototype._insertImage 19 19 * function with our own, only difference is the popupDialog url 20 20 * point that to the php script. … … 64 64 // file to suit your setup. 65 65 66 HTMLArea.Config.prototype.ImageManager =66 Xinha.Config.prototype.ImageManager = 67 67 { 68 68 'backend' : _editor_url + 'plugins/ImageManager/backend.php?__plugin=ImageManager&', … … 80 80 // Open up the ImageManger script instead. 81 81 82 HTMLArea.prototype._insertImage = function(image) {82 Xinha.prototype._insertImage = function(image) { 83 83 84 84 var editor = this; // for nested functions … … 101 101 outparam = 102 102 { 103 f_url : HTMLArea.is_ie ? image.src : image.src,103 f_url : Xinha.is_ie ? image.src : image.src, 104 104 f_alt : image.alt, 105 105 f_border : image.style.borderWidth ? image.style.borderWidth : image.border, … … 189 189 var img = image; 190 190 if (!img) { 191 if ( HTMLArea.is_ie) {191 if (Xinha.is_ie) { 192 192 var sel = editor._getSelection(); 193 193 var range = editor._createRange(sel); -
trunk/plugins/InsertAnchor/insert-anchor.js
r677 r856 30 30 31 31 InsertAnchor.prototype._lc = function(string) { 32 return HTMLArea._lc(string, 'InsertAnchor');32 return Xinha._lc(string, 'InsertAnchor'); 33 33 }; 34 34 … … 80 80 a.className = "anchor"; 81 81 a.innerHTML = html; 82 if ( HTMLArea.is_ie) {82 if (Xinha.is_ie) { 83 83 range.pasteHTML(a.outerHTML); 84 84 } else { -
trunk/plugins/InsertMarquee/insert-marquee.js
r677 r856 1 // Marquee plugin for HTMLArea 1 // Marquee plugin for HTMLArea/Xinha 2 2 // Implementation by Udo Schmal based on HTMLArea 3.0 3 3 // Original Author - Udo Schmal, Schaffrath-NeueMedien … … 36 36 37 37 InsertMarquee.prototype._lc = function(string) { 38 return HTMLArea._lc(string, "InsertMarquee");38 return Xinha._lc(string, "InsertMarquee"); 39 39 }; 40 40 -
trunk/plugins/InsertPagebreak/insert-pagebreak.js
r677 r856 1 // InsertPagebreak plugin for HTMLArea 1 // InsertPagebreak plugin for HTMLArea/Xinha 2 2 // Implementation by Udo Schmal & Schaffrath NeueMedien 3 3 // Original Author - Udo Schmal … … 36 36 37 37 InsertPagebreak.prototype._lc = function(string) { 38 return HTMLArea._lc(string, 'InsertPagebreak');38 return Xinha._lc(string, 'InsertPagebreak'); 39 39 }; 40 40 -
trunk/plugins/ListType/list-type.js
r430 r856 1 1 // ListType Plugin for Xinha 2 2 // Toolbar Implementation by Mihai Bazon, http://dynarch.com/mishoo/ 3 HTMLArea.loadStyle( 'ListType.css', 'ListType' );3 Xinha.loadStyle( 'ListType.css', 'ListType' ); 4 4 5 5 function ListType( editor ) … … 12 12 { 13 13 var options = {}; 14 options[ HTMLArea._lc( "Decimal numbers", "ListType" )] = "decimal";15 options[ HTMLArea._lc( "Lower roman numbers", "ListType" )] = "lower-roman";16 options[ HTMLArea._lc( "Upper roman numbers", "ListType" )] = "upper-roman";17 options[ HTMLArea._lc( "Lower latin letters", "ListType" )] = "lower-alpha";18 options[ HTMLArea._lc( "Upper latin letters", "ListType" )] = "upper-alpha";19 if (! HTMLArea.is_ie)14 options[Xinha._lc( "Decimal numbers", "ListType" )] = "decimal"; 15 options[Xinha._lc( "Lower roman numbers", "ListType" )] = "lower-roman"; 16 options[Xinha._lc( "Upper roman numbers", "ListType" )] = "upper-roman"; 17 options[Xinha._lc( "Lower latin letters", "ListType" )] = "lower-alpha"; 18 options[Xinha._lc( "Upper latin letters", "ListType" )] = "upper-alpha"; 19 if (!Xinha.is_ie) 20 20 // IE doesn't support this property; even worse, it complains 21 21 // with a gross error message when we tried to select it, 22 22 // therefore let's hide it from the damn "browser". 23 options[ HTMLArea._lc( "Lower greek letters", "ListType" )] = "lower-greek";23 options[Xinha._lc( "Lower greek letters", "ListType" )] = "lower-greek"; 24 24 var obj = 25 25 { 26 26 id : "listtype", 27 tooltip : HTMLArea._lc( "Choose list style type (for ordered lists)", "ListType" ),27 tooltip : Xinha._lc( "Choose list style type (for ordered lists)", "ListType" ), 28 28 options : options, 29 29 action : function( editor ) { self.onSelect( editor, this ); }, … … 37 37 { 38 38 editor._ListType = editor.addPanel( 'right' ); 39 HTMLArea.freeLater( editor, '_ListType' );40 HTMLArea.addClass( editor._ListType, 'ListType' );39 Xinha.freeLater( editor, '_ListType' ); 40 Xinha.addClass( editor._ListType, 'ListType' ); 41 41 // hurm, ok it's pretty to use the background color for the whole panel, 42 42 // but should not it be set by default when creating the panel ? 43 HTMLArea.addClass( editor._ListType.parentNode, 'dialog' );43 Xinha.addClass( editor._ListType.parentNode, 'dialog' ); 44 44 45 45 editor.notifyOn( 'modechange', … … 77 77 } 78 78 79 HTMLArea.Config.prototype.ListType =79 Xinha.Config.prototype.ListType = 80 80 { 81 81 'mode': 'toolbar' // configuration mode : toolbar or panel … … 150 150 var a = document.createElement( 'a' ); 151 151 a.href = 'javascript:void(0)'; 152 HTMLArea._addClass( a, listStyleType );153 HTMLArea._addEvent( a, "click", function ()152 Xinha._addClass( a, listStyleType ); 153 Xinha._addEvent( a, "click", function () 154 154 { 155 155 var parent = editor._ListType.currentListTypeParent; … … 173 173 { 174 174 var elt = activeDiv.childNodes[i]; 175 if ( HTMLArea._hasClass( elt, defaultType ) )175 if ( Xinha._hasClass( elt, defaultType ) ) 176 176 { 177 HTMLArea._addClass( elt, 'active' );177 Xinha._addClass( elt, 'active' ); 178 178 } 179 179 else 180 180 { 181 HTMLArea._removeClass( elt, 'active' );181 Xinha._removeClass( elt, 'active' ); 182 182 } 183 183 } -
trunk/plugins/NoteServer/note-server.js
r677 r856 1 // GUIDO Music Notation plugin for HTMLArea1 // GUIDO Music Notation plugin for Xinha 2 2 // Implementation by Richard Christophe 3 3 // Original Author - Richard Christophe cvrichard@infonie.fr … … 43 43 44 44 NoteServer.prototype._lc = function(string) { 45 return HTMLArea._lc(string, 'NoteServer');45 return Xinha._lc(string, 'NoteServer'); 46 46 }; 47 47 … … 176 176 177 177 // To test code source in textarea 178 //if (param["f_affcode"]) string2 = string2 + HTMLArea._lc("Source Code","NoteServer") + " :" + '<br> <textarea cols=60 rows=10 style = "background: #FFFFE6">' + param["f_code"] + '</textarea> <br>';179 180 if (param["f_affcode"]) string2 = string2 + HTMLArea._lc("GUIDO Code","NoteServer") + " : " + param["f_code"] + "<br>";181 if (param["f_midi"]) string2 = string2 + "<a href=" + stringmidi + ">" + HTMLArea._lc("MIDI File","NoteServer") + "</a> <br>";178 //if (param["f_affcode"]) string2 = string2 + Xinha._lc("Source Code","NoteServer") + " :" + '<br> <textarea cols=60 rows=10 style = "background: #FFFFE6">' + param["f_code"] + '</textarea> <br>'; 179 180 if (param["f_affcode"]) string2 = string2 + Xinha._lc("GUIDO Code","NoteServer") + " : " + param["f_code"] + "<br>"; 181 if (param["f_midi"]) string2 = string2 + "<a href=" + stringmidi + ">" + Xinha._lc("MIDI File","NoteServer") + "</a> <br>"; 182 182 183 183 editor.focusEditor(); -
trunk/plugins/QuickTag/quick-tag.js
r677 r856 50 50 51 51 QuickTag.prototype._lc = function(string) { 52 return HTMLArea._lc(string, 'QuickTag');52 return Xinha._lc(string, 'QuickTag'); 53 53 }; -
trunk/plugins/SpellChecker/spell-check-ui.js
r670 r856 13 13 14 14 var Xinha = window.opener.Xinha; 15 var HTMLArea = Xinha;16 15 17 16 var _editor_url = window.opener._editor_url; 18 17 19 var is_ie = HTMLArea.is_ie;18 var is_ie = Xinha.is_ie; 20 19 var editor = SpellChecker.editor; 21 20 var frame = null; … … 31 30 32 31 function _lc(string) { 33 return HTMLArea._lc(string, 'SpellChecker');32 return Xinha._lc(string, 'SpellChecker'); 34 33 } 35 34 … … 77 76 } 78 77 // var win = window; 79 window.opener. HTMLArea._postback(_editor_url + '/plugins/SpellChecker/spell-check-savedicts.php', data);78 window.opener.Xinha._postback(_editor_url + '/plugins/SpellChecker/spell-check-savedicts.php', data); 80 79 window.close(); 81 80 } … … 207 206 frame = document.getElementById("i_framecontent"); 208 207 var field = document.getElementById("f_content"); 209 field.value = HTMLArea.getHTML(editor._doc.body, false, editor);208 field.value = Xinha.getHTML(editor._doc.body, false, editor); 210 209 var dict = document.getElementById("f_dictionary"); 211 210 if(typeof editor.config.SpellChecker.defaultDictionary != "undefined" … … 380 379 suggested_words = frame.contentWindow.suggested_words; 381 380 382 document.getElementById("status").innerHTML = " HTMLArea Spell Checker (<a href='readme-tech.html' target='_blank' title='Technical information'>info</a>)";381 document.getElementById("status").innerHTML = "Xinha Spell Checker (<a href='readme-tech.html' target='_blank' title='Technical information'>info</a>)"; 383 382 var doc = frame.contentWindow.document; 384 383 var spans = doc.getElementsByTagName("span"); … … 392 391 el.onclick = function(ev) { 393 392 ev || (ev = window.event); 394 ev && HTMLArea._stopEvent(ev);393 ev && Xinha._stopEvent(ev); 395 394 return this.__msh_wordClicked(false); 396 395 }; -
trunk/plugins/SpellChecker/spell-checker.js
r498 r856 9 9 // $Id$ 10 10 11 HTMLArea.Config.prototype.SpellChecker = { 'backend': 'php', 'personalFilesDir' : '', 'defaultDictionary' : 'en_GB', 'utf8_to_entities' : true };11 Xinha.Config.prototype.SpellChecker = { 'backend': 'php', 'personalFilesDir' : '', 'defaultDictionary' : 'en_GB', 'utf8_to_entities' : true }; 12 12 13 13 function SpellChecker(editor) { … … 41 41 42 42 SpellChecker.prototype._lc = function(string) { 43 return HTMLArea._lc(string, 'SpellChecker');43 return Xinha._lc(string, 'SpellChecker'); 44 44 }; 45 45 … … 56 56 var uiurl = _editor_url + "plugins/SpellChecker/spell-check-ui.html"; 57 57 var win; 58 if ( HTMLArea.is_ie) {58 if (Xinha.is_ie) { 59 59 win = window.open(uiurl, "SC_spell_checker", 60 60 "toolbar=no,location=no,directories=no,status=no,menubar=no," + -
trunk/plugins/TableOperations/lang/cz.js
r383 r856 72 72 "Vertical align": "Svislé zarovnánÃ", 73 73 "Width": "Å ÃÅka", 74 " HTMLArea cowardly refuses to delete the last cell in row.": "HTMLArea zbabÄle odmÃtá smazat poslednà buÅku v Åádku.",75 " HTMLArea cowardly refuses to delete the last column in table.": "HTMLArea zbabÄle odmÃtá smazat poslednà sloupec v tabulce.",76 " HTMLArea cowardly refuses to delete the last row in table.": "HTMLArea zbabÄle odmÃtá smazat poslednà Åádek v tabulce.",74 "Xinha cowardly refuses to delete the last cell in row.": "Xinha zbabÄle odmÃtá smazat poslednà buÅku v Åádku.", 75 "Xinha cowardly refuses to delete the last column in table.": "Xinha zbabÄle odmÃtá smazat poslednà sloupec v tabulce.", 76 "Xinha cowardly refuses to delete the last row in table.": "Xinha zbabÄle odmÃtá smazat poslednà Åádek v tabulce.", 77 77 "percent": "procent", 78 78 "pixels": "pixelů" -
trunk/plugins/TableOperations/lang/da.js
r383 r856 72 72 "Vertical align": "Vertikal placering", 73 73 "Width": "Bredde", 74 " HTMLArea cowardly refuses to delete the last cell in row.": "Du kan ikke slette den sidste celle i en rÊkke.",75 " HTMLArea cowardly refuses to delete the last column in table.": "Du kan ikke slette den sidste kolonne i en tabel.",76 " HTMLArea cowardly refuses to delete the last row in table.": "Du kan ikke slette den sidste rÊkke i en tabel.",74 "Xinha cowardly refuses to delete the last cell in row.": "Du kan ikke slette den sidste celle i en rÊkke.", 75 "Xinha cowardly refuses to delete the last column in table.": "Du kan ikke slette den sidste kolonne i en tabel.", 76 "Xinha cowardly refuses to delete the last row in table.": "Du kan ikke slette den sidste rÊkke i en tabel.", 77 77 "percent": "procent", 78 78 "pixels": "pixel" -
trunk/plugins/TableOperations/lang/de.js
r383 r856 72 72 "Vertical align": "Vertikale Ausrichtung", 73 73 "Width": "Breite", 74 " HTMLArea cowardly refuses to delete the last cell in row.": "Letzte Zelle in dieser Zeile kann nicht gelöscht werden",75 " HTMLArea cowardly refuses to delete the last column in table.": "Letzte Spalte in dieser Tabelle kann nicht gelöscht werden",76 " HTMLArea cowardly refuses to delete the last row in table.": "Letzte Reihe in dieser Tabelle kann nicht gelöscht werden",74 "Xinha cowardly refuses to delete the last cell in row.": "Letzte Zelle in dieser Zeile kann nicht gelöscht werden", 75 "Xinha cowardly refuses to delete the last column in table.": "Letzte Spalte in dieser Tabelle kann nicht gelöscht werden", 76 "Xinha cowardly refuses to delete the last row in table.": "Letzte Reihe in dieser Tabelle kann nicht gelöscht werden", 77 77 "percent": "%", 78 78 "pixels": "Pixel", -
trunk/plugins/TableOperations/lang/el.js
r383 r856 86 86 Ïη ÏÏοίÏηÏη", 87 87 "Width": "ΠλάÏοÏ", 88 " HTMLArea cowardly refuses to delete the last cell in row.": "ÎεΜ ÎŒÏοÏεί Μα ΎιαγÏαÏεί Ïο ÏελεÏ88 "Xinha cowardly refuses to delete the last cell in row.": "ÎεΜ ÎŒÏοÏεί Μα ΎιαγÏαÏεί Ïο ÏÎµÎ»ÎµÏ 89 89 Ïαίο κελί Ïε Όια γÏαΌΌή.", 90 " HTMLArea cowardly refuses to delete the last column in table.": "ÎεΜ ÎŒÏοÏεί Μα ΎιαγÏαÏεί η ÏελεÏ90 "Xinha cowardly refuses to delete the last column in table.": "ÎεΜ ÎŒÏοÏεί Μα ΎιαγÏαÏεί η ÏÎµÎ»ÎµÏ 91 91 Ïαία ÏÏήλη Ïε ÎΜα ÏίΜακα.", 92 " HTMLArea cowardly refuses to delete the last row in table.": "ÎεΜ ÎŒÏοÏεί Μα ΎιαγÏαÏεί η ÏελεÏ92 "Xinha cowardly refuses to delete the last row in table.": "ÎεΜ ÎŒÏοÏεί Μα ΎιαγÏαÏεί η ÏÎµÎ»ÎµÏ 93 93 Ïαία γÏαΌΌή Ïε ÎΜα ÏίΜακα.", 94 94 "percent": "ÏÎ¿Î¹Ï ÎµÎºÎ±ÏÏΜ", -
trunk/plugins/TableOperations/lang/fi.js
r383 r856 61 61 "Vertical align": "Vertikaali kohdistus", 62 62 "Width": "Leveys", 63 " HTMLArea cowardly refuses to delete the last cell in row.": "Ei voida poistaa viimeistÀ solua rivistÀ.",64 " HTMLArea cowardly refuses to delete the last column in table.": "Ei voida poistaa viimeistÀ saraketta taulusta.",65 " HTMLArea cowardly refuses to delete the last row in table.": "Ei voida poistaa viimeistÀ riviÀ taulusta.",63 "Xinha cowardly refuses to delete the last cell in row.": "Ei voida poistaa viimeistÀ solua rivistÀ.", 64 "Xinha cowardly refuses to delete the last column in table.": "Ei voida poistaa viimeistÀ saraketta taulusta.", 65 "Xinha cowardly refuses to delete the last row in table.": "Ei voida poistaa viimeistÀ riviÀ taulusta.", 66 66 "percent": "prosenttia", 67 67 "pixels": "pikseliÀ" -
trunk/plugins/TableOperations/lang/fr.js
r464 r856 71 71 "Vertical align": "Vertical", 72 72 "Width": "Longeur", 73 " HTMLArea cowardly refuses to delete the last cell in row.": "Il est impossible de supprimer la derniÚre cellule de la rangée.",74 " HTMLArea cowardly refuses to delete the last column in table.": "Il est impossible de supprimer la derniÚre colonne de la table.",75 " HTMLArea cowardly refuses to delete the last row in table.": "Il est impossible de supprimer la derniÚre rangée de la table",73 "Xinha cowardly refuses to delete the last cell in row.": "Il est impossible de supprimer la derniÚre cellule de la rangée.", 74 "Xinha cowardly refuses to delete the last column in table.": "Il est impossible de supprimer la derniÚre colonne de la table.", 75 "Xinha cowardly refuses to delete the last row in table.": "Il est impossible de supprimer la derniÚre rangée de la table", 76 76 "percent": "%", 77 77 "pixels": "pixels" -
trunk/plugins/TableOperations/lang/he.js
r383 r856 72 72 "Vertical align": "××ש×ך ×× ××", 73 73 "Width": "ך×××", 74 " HTMLArea cowardly refuses to delete the last cell in row.": "HTMLArea ××¡×š× ××€××× ×ת ×××××§ ×ת ××ª× ×××ך×× ×ש×ך×.",75 " HTMLArea cowardly refuses to delete the last column in table.": "HTMLArea ××¡×š× ××€××× ×ת ×××××§ ×ת ×××ך ×××ך×× ×××××.",76 " HTMLArea cowardly refuses to delete the last row in table.": "HTMLArea ××¡×š× ××€××× ×ת ×××××§ ×ת ×ש××š× ×××ך×× × ×××××.",74 "Xinha cowardly refuses to delete the last cell in row.": "Xinha ××¡×š× ××€××× ×ת ×××××§ ×ת ××ª× ×××ך×× ×ש×ך×.", 75 "Xinha cowardly refuses to delete the last column in table.": "Xinha ××¡×š× ××€××× ×ת ×××××§ ×ת ×××ך ×××ך×× ×××××.", 76 "Xinha cowardly refuses to delete the last row in table.": "Xinha ××¡×š× ××€××× ×ת ×××××§ ×ת ×ש××š× ×××ך×× × ×××××.", 77 77 "percent": "××××", 78 78 "pixels": "×€×קס×××" -
trunk/plugins/TableOperations/lang/it.js
r383 r856 72 72 "Vertical align": "Allineamento verticale", 73 73 "Width": "Larghezza", 74 " HTMLArea cowardly refuses to delete the last cell in row.": "HTMLArea si rifiuta codardamente di cancellare l'ultima cella nella riga.",75 " HTMLArea cowardly refuses to delete the last column in table.": "HTMLArea si rifiuta codardamente di cancellare l'ultima colonna nella tabella.",76 " HTMLArea cowardly refuses to delete the last row in table.": "HTMLArea si rifiuta codardamente di cancellare l'ultima riga nella tabella.",74 "Xinha cowardly refuses to delete the last cell in row.": "Xinha si rifiuta codardamente di cancellare l'ultima cella nella riga.", 75 "Xinha cowardly refuses to delete the last column in table.": "Xinha si rifiuta codardamente di cancellare l'ultima colonna nella tabella.", 76 "Xinha cowardly refuses to delete the last row in table.": "Xinha si rifiuta codardamente di cancellare l'ultima riga nella tabella.", 77 77 "percent": "percento", 78 78 "pixels": "pixels" -
trunk/plugins/TableOperations/lang/ja.js
r719 r856 80 80 "Width": "å¹ 81 81 ", 82 " HTMLArea cowardly refuses to delete the last cell in row.": "å®å82 "Xinha cowardly refuses to delete the last cell in row.": "å®å 83 83 šã®ããã«ãè¡ã«ã²ãšã€ã ãæ®ã£ãŠããåã®åé€ã¯æåŠãããŸãã", 84 " HTMLArea cowardly refuses to delete the last column in table.": "å®å84 "Xinha cowardly refuses to delete the last column in table.": "å®å 85 85 šã®ããã«ãããŒãã«ã«ã²ãšã€ã ãæ®ã£ãŠããåã®åé€ã¯æåŠãããŸãã", 86 " HTMLArea cowardly refuses to delete the last row in table.": "å®å86 "Xinha cowardly refuses to delete the last row in table.": "å®å 87 87 šã®ããã«ãããŒãã«ã«ã²ãšã€ã ãæ®ã£ãŠããè¡ã®åé€ã¯æåŠãããŸãã", 88 88 "percent": "ããŒã»ã³ã", -
trunk/plugins/TableOperations/lang/nb.js
r530 r856 73 73 "Vertical align": "Vertikal justering", 74 74 "Width": "Bredde", 75 " HTMLArea cowardly refuses to delete the last cell in row.": "HTMLArea nekter å slette siste cellen i tabellen.",76 " HTMLArea cowardly refuses to delete the last column in table.": "HTMLArea nekter å slette siste kolonnen i tabellen.",77 " HTMLArea cowardly refuses to delete the last row in table.": "HTMLArea nekter å slette siste raden i tabellen.",75 "Xinha cowardly refuses to delete the last cell in row.": "Xinha nekter å slette siste cellen i tabellen.", 76 "Xinha cowardly refuses to delete the last column in table.": "Xinha nekter å slette siste kolonnen i tabellen.", 77 "Xinha cowardly refuses to delete the last row in table.": "Xinha nekter å slette siste raden i tabellen.", 78 78 "percent": "prosent", 79 79 "pixels": "billedpunkter" -
trunk/plugins/TableOperations/lang/nl.js
r383 r856 72 72 "Vertical align": "Vertikale uitlijning", 73 73 "Width": "Breedte", 74 " HTMLArea cowardly refuses to delete the last cell in row.": "HTMLArea kan de laatste cel in deze tabel niet verwijderen.",75 " HTMLArea cowardly refuses to delete the last column in table.": "HTMLArea kan de laatste kolom in deze tabel niet verwijderen.",76 " HTMLArea cowardly refuses to delete the last row in table.": "HTMLArea kan de laatste rij in deze tabel niet verwijderen.",74 "Xinha cowardly refuses to delete the last cell in row.": "Xinha kan de laatste cel in deze tabel niet verwijderen.", 75 "Xinha cowardly refuses to delete the last column in table.": "Xinha kan de laatste kolom in deze tabel niet verwijderen.", 76 "Xinha cowardly refuses to delete the last row in table.": "Xinha kan de laatste rij in deze tabel niet verwijderen.", 77 77 "percent": "procent", 78 78 "pixels": "pixels" -
trunk/plugins/TableOperations/lang/pl.js
r677 r856 78 78 "Vertical align": "Wyr. w pionie", 79 79 "Width": "SzerokoÅÄ", 80 " HTMLArea cowardly refuses to delete the last cell in row.": "Nie moÅŒesz skasowaÄ ostatniej komórki w wierszu.",81 " HTMLArea cowardly refuses to delete the last column in table.": "Nie moÅŒesz skasowaÄ ostatniej kolumny w tabeli.",82 " HTMLArea cowardly refuses to delete the last row in table.": "Nie moÅŒesz skasowaÄ ostatniego wiersza w tabeli.",80 "Xinha cowardly refuses to delete the last cell in row.": "Nie moÅŒesz skasowaÄ ostatniej komórki w wierszu.", 81 "Xinha cowardly refuses to delete the last column in table.": "Nie moÅŒesz skasowaÄ ostatniej kolumny w tabeli.", 82 "Xinha cowardly refuses to delete the last row in table.": "Nie moÅŒesz skasowaÄ ostatniego wiersza w tabeli.", 83 83 "percent": "%", 84 84 "pixels": "pikseli", -
trunk/plugins/TableOperations/lang/ro.js
r383 r856 72 72 "Vertical align": "Aliniere pe verticalÄ", 73 73 "Width": "LÄÅ£ime", 74 " HTMLArea cowardly refuses to delete the last cell in row.": "HTMLArea refuzÄ cu laÅitate sÄ ÅteargÄ ultima celulÄ din rând.",75 " HTMLArea cowardly refuses to delete the last column in table.": "HTMLArea refuzÄ cu laÅitate sÄ ÅteargÄ ultima coloamÄ din tabela.",76 " HTMLArea cowardly refuses to delete the last row in table.": "HTMLArea refuzÄ cu laÅitate sÄ ÅteargÄ ultimul rând din tabela.",74 "Xinha cowardly refuses to delete the last cell in row.": "Xinha refuzÄ cu laÅitate sÄ ÅteargÄ ultima celulÄ din rând.", 75 "Xinha cowardly refuses to delete the last column in table.": "Xinha refuzÄ cu laÅitate sÄ ÅteargÄ ultima coloamÄ din tabela.", 76 "Xinha cowardly refuses to delete the last row in table.": "Xinha refuzÄ cu laÅitate sÄ ÅteargÄ ultimul rând din tabela.", 77 77 "percent": "procente", 78 78 "pixels": "pixeli" -
trunk/plugins/TableOperations/lang/ru.js
r677 r856 72 72 "Vertical align": "Вертикальное выравнивание", 73 73 "Width": "Ширина", 74 " HTMLArea cowardly refuses to delete the last cell in row.": "HTMLArea отказалась удалять последнюю ячейку в строке.",75 " HTMLArea cowardly refuses to delete the last column in table.": "HTMLArea отказалась удалять последний столбец в таблице.",76 " HTMLArea cowardly refuses to delete the last row in table.": "HTMLArea отказалась удалять последнюю строку в таблице.",74 "Xinha cowardly refuses to delete the last cell in row.": "Xinha отказалась удалять последнюю ячейку в строке.", 75 "Xinha cowardly refuses to delete the last column in table.": "Xinha отказалась удалять последний столбец в таблице.", 76 "Xinha cowardly refuses to delete the last row in table.": "Xinha отказалась удалять последнюю строку в таблице.", 77 77 "percent": "процентов", 78 78 "pixels": "пикселей" -
trunk/plugins/TableOperations/lang/sv.js
r677 r856 72 72 "Vertical align": "Vertikal justering", 73 73 "Width": "Bredd", 74 " HTMLArea cowardly refuses to delete the last cell in row.": "Xinha nekar att radera sista cellen i tabellen.",75 " HTMLArea cowardly refuses to delete the last column in table.": "Xinha nekar att radera sista kolumnen i tabellen.",76 " HTMLArea cowardly refuses to delete the last row in table.": "Xinha nekar att radera sista raden i tabellen.",74 "Xinha cowardly refuses to delete the last cell in row.": "Xinha nekar att radera sista cellen i tabellen.", 75 "Xinha cowardly refuses to delete the last column in table.": "Xinha nekar att radera sista kolumnen i tabellen.", 76 "Xinha cowardly refuses to delete the last row in table.": "Xinha nekar att radera sista raden i tabellen.", 77 77 "percent": "procent", 78 78 "pixels": "bildpunkter" -
trunk/plugins/TableOperations/table-operations.js
r827 r856 43 43 } else { 44 44 var id = "TO-" + btn[0]; 45 cfg.registerButton(id, HTMLArea._lc(btn[2], "TableOperations"), editor.imgURL(btn[0] + ".gif", "TableOperations"), false,45 cfg.registerButton(id, Xinha._lc(btn[2], "TableOperations"), editor.imgURL(btn[0] + ".gif", "TableOperations"), false, 46 46 function(editor, id) { 47 47 // dispatch button press event … … 74 74 75 75 TableOperations.prototype._lc = function(string) { 76 return HTMLArea._lc(string, 'TableOperations');76 return Xinha._lc(string, 'TableOperations'); 77 77 }; 78 78 … … 105 105 // this.editor.updateToolbar(); 106 106 107 var dialog = new PopupWin(this.editor, HTMLArea._lc("Table Properties", "TableOperations"), function(dialog, params) {107 var dialog = new PopupWin(this.editor, Xinha._lc("Table Properties", "TableOperations"), function(dialog, params) { 108 108 TableOperations.processStyle(params, table); 109 109 for (var i in params) { … … 191 191 dialog.content.style.width = "400px"; 192 192 dialog.content.innerHTML = " \ 193 <div class='title'>" + HTMLArea._lc("Table Properties", "TableOperations") + "\193 <div class='title'>" + Xinha._lc("Table Properties", "TableOperations") + "\ 194 194 </div> \ 195 195 <table style='width:100%'> \ 196 196 <tr> \ 197 197 <td> \ 198 <fieldset><legend>" + HTMLArea._lc("Description", "TableOperations") + "</legend> \198 <fieldset><legend>" + Xinha._lc("Description", "TableOperations") + "</legend> \ 199 199 <table style='width:100%'> \ 200 200 <tr> \ 201 <td class='label'>" + HTMLArea._lc("Caption", "TableOperations") + ":</td> \201 <td class='label'>" + Xinha._lc("Caption", "TableOperations") + ":</td> \ 202 202 <td class='value'><input type='text' name='f_caption' value='" + f_caption + "'/></td> \ 203 203 </tr><tr> \ 204 <td class='label'>" + HTMLArea._lc("Summary", "TableOperations") + ":</td> \204 <td class='label'>" + Xinha._lc("Summary", "TableOperations") + ":</td> \ 205 205 <td class='value'><input type='text' name='f_summary' value='" + f_summary + "'/></td> \ 206 206 </tr> \ … … 212 212 <tr> \ 213 213 <td> \ 214 <fieldset><legend>" + HTMLArea._lc("Spacing and padding", "TableOperations") + "</legend> \214 <fieldset><legend>" + Xinha._lc("Spacing and padding", "TableOperations") + "</legend> \ 215 215 <table style='width:100%'> \ 216 216 "+// <tr> \ 217 // <td class='label'>" + HTMLArea._lc("Width", "TableOperations") + ":</td> \217 // <td class='label'>" + Xinha._lc("Width", "TableOperations") + ":</td> \ 218 218 // <td><input type='text' name='f_width' value='" + f_width + "' size='5' /> \ 219 219 // <select name='f_unit'> \ 220 // <option value='%'" + selected(f_unit == "percent") + ">" + HTMLArea._lc("percent", "TableOperations") + "</option> \221 // <option value='px'" + selected(f_unit == "pixels") + ">" + HTMLArea._lc("pixels", "TableOperations") + "</option> \222 // </select> " + HTMLArea._lc("Align", "TableOperations") + ": \220 // <option value='%'" + selected(f_unit == "percent") + ">" + Xinha._lc("percent", "TableOperations") + "</option> \ 221 // <option value='px'" + selected(f_unit == "pixels") + ">" + Xinha._lc("pixels", "TableOperations") + "</option> \ 222 // </select> " + Xinha._lc("Align", "TableOperations") + ": \ 223 223 // <select name='f_align'> \ 224 // <option value='left'" + selected(f_align == "left") + ">" + HTMLArea._lc("Left", "TableOperations") + "</option> \225 // <option value='center'" + selected(f_align == "center") + ">" + HTMLArea._lc("Center", "TableOperations") + "</option> \226 // <option value='right'" + selected(f_align == "right") + ">" + HTMLArea._lc("Right", "TableOperations") + "</option> \224 // <option value='left'" + selected(f_align == "left") + ">" + Xinha._lc("Left", "TableOperations") + "</option> \ 225 // <option value='center'" + selected(f_align == "center") + ">" + Xinha._lc("Center", "TableOperations") + "</option> \ 226 // <option value='right'" + selected(f_align == "right") + ">" + Xinha._lc("Right", "TableOperations") + "</option> \ 227 227 // </select> \ 228 228 // </td> \ 229 229 // </tr> \ 230 230 " <tr> \ 231 <td class='label'>" + HTMLArea._lc("Spacing", "TableOperations") + ":</td> \232 <td><input type='text' name='f_spacing' size='5' value='" + f_spacing + "' /> " + HTMLArea._lc("Padding", "TableOperations") + ":\233 <input type='text' name='f_padding' size='5' value='" + f_padding + "' /> " + HTMLArea._lc("pixels", "TableOperations") + "\231 <td class='label'>" + Xinha._lc("Spacing", "TableOperations") + ":</td> \ 232 <td><input type='text' name='f_spacing' size='5' value='" + f_spacing + "' /> " + Xinha._lc("Padding", "TableOperations") + ":\ 233 <input type='text' name='f_padding' size='5' value='" + f_padding + "' /> " + Xinha._lc("pixels", "TableOperations") + "\ 234 234 </td> \ 235 235 </tr> \ … … 240 240 <tr> \ 241 241 <td> \ 242 <fieldset><legend>" + HTMLArea._lc("Frame and borders", "TableOperations") + "</legend> \242 <fieldset><legend>" + Xinha._lc("Frame and borders", "TableOperations") + "</legend> \ 243 243 <table width='100%'> \ 244 244 <tr> \ 245 <td class='label'>" + HTMLArea._lc("Borders", "TableOperations") + ":</td> \246 <td><input name='f_borders' type='text' size='5' value='" + f_borders + "' /> " + HTMLArea._lc("pixels", "TableOperations") + "</td> \245 <td class='label'>" + Xinha._lc("Borders", "TableOperations") + ":</td> \ 246 <td><input name='f_borders' type='text' size='5' value='" + f_borders + "' /> " + Xinha._lc("pixels", "TableOperations") + "</td> \ 247 247 </tr> \ 248 248 <tr> \ 249 <td class='label'>" + HTMLArea._lc("Frames", "TableOperations") + ":</td> \249 <td class='label'>" + Xinha._lc("Frames", "TableOperations") + ":</td> \ 250 250 <td> \ 251 251 <select name='f_frames'> \ 252 <option value='void'" + selected(f_frames == "void") + ">" + HTMLArea._lc("No sides", "TableOperations") + "</option> \253 <option value='above'" + selected(f_frames == "above") + ">" + HTMLArea._lc("The top side only", "TableOperations") + "</option> \254 <option value='below'" + selected(f_frames == "below") + ">" + HTMLArea._lc("The bottom side only", "TableOperations") + "</option> \255 <option value='hsides'" + selected(f_frames == "hsides") + ">" + HTMLArea._lc("The top and bottom sides only", "TableOperations") + "</option> \256 <option value='vsides'" + selected(f_frames == "vsides") + ">" + HTMLArea._lc("The right and left sides only", "TableOperations") + "</option> \257 <option value='lhs'" + selected(f_frames == "lhs") + ">" + HTMLArea._lc("The left-hand side only", "TableOperations") + "</option> \258 <option value='rhs'" + selected(f_frames == "rhs") + ">" + HTMLArea._lc("The right-hand side only", "TableOperations") + "</option> \259 <option value='box'" + selected(f_frames == "box") + ">" + HTMLArea._lc("All four sides", "TableOperations") + "</option> \252 <option value='void'" + selected(f_frames == "void") + ">" + Xinha._lc("No sides", "TableOperations") + "</option> \ 253 <option value='above'" + selected(f_frames == "above") + ">" + Xinha._lc("The top side only", "TableOperations") + "</option> \ 254 <option value='below'" + selected(f_frames == "below") + ">" + Xinha._lc("The bottom side only", "TableOperations") + "</option> \ 255 <option value='hsides'" + selected(f_frames == "hsides") + ">" + Xinha._lc("The top and bottom sides only", "TableOperations") + "</option> \ 256 <option value='vsides'" + selected(f_frames == "vsides") + ">" + Xinha._lc("The right and left sides only", "TableOperations") + "</option> \ 257 <option value='lhs'" + selected(f_frames == "lhs") + ">" + Xinha._lc("The left-hand side only", "TableOperations") + "</option> \ 258 <option value='rhs'" + selected(f_frames == "rhs") + ">" + Xinha._lc("The right-hand side only", "TableOperations") + "</option> \ 259 <option value='box'" + selected(f_frames == "box") + ">" + Xinha._lc("All four sides", "TableOperations") + "</option> \ 260 260 </select> \ 261 261 </td> \ 262 262 </tr> \ 263 263 <tr> \ 264 <td class='label'>" + HTMLArea._lc("Rules", "TableOperations") + ":</td> \264 <td class='label'>" + Xinha._lc("Rules", "TableOperations") + ":</td> \ 265 265 <td> \ 266 266 <select name='f_rules'> \ 267 <option value='none'" + selected(f_rules == "none") + ">" + HTMLArea._lc("No rules", "TableOperations") + "</option> \268 <option value='rows'" + selected(f_rules == "rows") + ">" + HTMLArea._lc("Rules will appear between rows only", "TableOperations") + "</option> \269 <option value='cols'" + selected(f_rules == "cols") + ">" + HTMLArea._lc("Rules will appear between columns only", "TableOperations") + "</option> \270 <option value='all'" + selected(f_rules == "all") + ">" + HTMLArea._lc("Rules will appear between all rows and columns", "TableOperations") + "</option> \267 <option value='none'" + selected(f_rules == "none") + ">" + Xinha._lc("No rules", "TableOperations") + "</option> \ 268 <option value='rows'" + selected(f_rules == "rows") + ">" + Xinha._lc("Rules will appear between rows only", "TableOperations") + "</option> \ 269 <option value='cols'" + selected(f_rules == "cols") + ">" + Xinha._lc("Rules will appear between columns only", "TableOperations") + "</option> \ 270 <option value='all'" + selected(f_rules == "all") + ">" + Xinha._lc("Rules will appear between all rows and columns", "TableOperations") + "</option> \ 271 271 </select> \ 272 272 </td> \ … … 301 301 // this.editor.updateToolbar(); 302 302 303 var dialog = new PopupWin(this.editor, cell ? HTMLArea._lc("Cell Properties", "TableOperations") : HTMLArea._lc("Row Properties", "TableOperations"), function(dialog, params) {303 var dialog = new PopupWin(this.editor, cell ? Xinha._lc("Cell Properties", "TableOperations") : Xinha._lc("Row Properties", "TableOperations"), function(dialog, params) { 304 304 TableOperations.processStyle(params, element); 305 305 for (var i in params) { … … 343 343 dialog.content.style.width = "400px"; 344 344 dialog.content.innerHTML = " \ 345 <div class='title'>" + HTMLArea._lc(cell ? "Cell Properties" : "Row Properties", "TableOperations") + "</div> \345 <div class='title'>" + Xinha._lc(cell ? "Cell Properties" : "Row Properties", "TableOperations") + "</div> \ 346 346 <table style='width:100%'> \ 347 347 <tr> \ 348 348 <td id='--HA-layout'> \ 349 "+// <fieldset><legend>" + HTMLArea._lc("Layout", "TableOperations") + "</legend> \349 "+// <fieldset><legend>" + Xinha._lc("Layout", "TableOperations") + "</legend> \ 350 350 // <table style='width:100%'> \ 351 351 // <tr> \ 352 // <td class='label'>" + HTMLArea._lc("Align", "TableOperations") + ":</td> \352 // <td class='label'>" + Xinha._lc("Align", "TableOperations") + ":</td> \ 353 353 // <td> \ 354 354 // <select name='f_align'> \ 355 // <option value='left'" + selected(f_align == "left") + ">" + HTMLArea._lc("Left", "TableOperations") + "</option> \356 // <option value='center'" + selected(f_align == "center") + ">" + HTMLArea._lc("Center", "TableOperations") + "</option> \357 // <option value='right'" + selected(f_align == "right") + ">" + HTMLArea._lc("Right", "TableOperations") + "</option> \358 // <option value='char'" + selected(f_align == "char") + ">" + HTMLArea._lc("Char", "TableOperations") + "</option> \355 // <option value='left'" + selected(f_align == "left") + ">" + Xinha._lc("Left", "TableOperations") + "</option> \ 356 // <option value='center'" + selected(f_align == "center") + ">" + Xinha._lc("Center", "TableOperations") + "</option> \ 357 // <option value='right'" + selected(f_align == "right") + ">" + Xinha._lc("Right", "TableOperations") + "</option> \ 358 // <option value='char'" + selected(f_align == "char") + ">" + Xinha._lc("Char", "TableOperations") + "</option> \ 359 359 // </select> \ 360 // " + HTMLArea._lc("Char", "TableOperations") + ": \360 // " + Xinha._lc("Char", "TableOperations") + ": \ 361 361 // <input type='text' style='font-family: monospace; text-align: center' name='f_char' size='1' value='" + f_char + "' /> \ 362 362 // </td> \ 363 363 // </tr><tr> \ 364 // <td class='label'>" + HTMLArea._lc("Vertical align", "TableOperations") + ":</td> \364 // <td class='label'>" + Xinha._lc("Vertical align", "TableOperations") + ":</td> \ 365 365 // <td> \ 366 366 // <select name='f_valign'> \ 367 // <option value='top'" + selected(f_valign == "top") + ">" + HTMLArea._lc("Top", "TableOperations") + "</option> \368 // <option value='middle'" + selected(f_valign == "middle") + ">" + HTMLArea._lc("Middle", "TableOperations") + "</option> \369 // <option value='bottom'" + selected(f_valign == "bottom") + ">" + HTMLArea._lc("Bottom", "TableOperations") + "</option> \370 // <option value='baseline'" + selected(f_valign == "baseline") + ">" + HTMLArea._lc("Baseline", "TableOperations") + "</option> \367 // <option value='top'" + selected(f_valign == "top") + ">" + Xinha._lc("Top", "TableOperations") + "</option> \ 368 // <option value='middle'" + selected(f_valign == "middle") + ">" + Xinha._lc("Middle", "TableOperations") + "</option> \ 369 // <option value='bottom'" + selected(f_valign == "bottom") + ">" + Xinha._lc("Bottom", "TableOperations") + "</option> \ 370 // <option value='baseline'" + selected(f_valign == "baseline") + ">" + Xinha._lc("Baseline", "TableOperations") + "</option> \ 371 371 // </select> \ 372 372 // </td> \ … … 397 397 TableOperations.prototype.buttonPress = function(editor, button_id) { 398 398 this.editor = editor; 399 var mozbr = HTMLArea.is_gecko ? "<br />" : "";399 var mozbr = Xinha.is_gecko ? "<br />" : ""; 400 400 401 401 // helper function that clears the content in a table row … … 538 538 var par = tr.parentNode; 539 539 if (par.rows.length == 1) { 540 alert( HTMLArea._lc("HTMLArea cowardly refuses to delete the last row in table.", "TableOperations"));540 alert(Xinha._lc("Xinha cowardly refuses to delete the last row in table.", "TableOperations")); 541 541 break; 542 542 } … … 572 572 var otd = editor._doc.createElement("td"); 573 573 otd.innerHTML = mozbr; 574 if (lastColumn && HTMLArea.is_ie)574 if (lastColumn && Xinha.is_ie) 575 575 { 576 576 tr.insertBefore(otd); … … 598 598 var index = td.cellIndex; 599 599 if (td.parentNode.cells.length == 1) { 600 alert( HTMLArea._lc("HTMLArea cowardly refuses to delete the last column in table.", "TableOperations"));600 alert(Xinha._lc("Xinha cowardly refuses to delete the last column in table.", "TableOperations")); 601 601 break; 602 602 } … … 641 641 } 642 642 if (td.parentNode.cells.length == 1) { 643 alert( HTMLArea._lc("HTMLArea cowardly refuses to delete the last cell in row.", "TableOperations"));643 alert(Xinha._lc("Xinha cowardly refuses to delete the last cell in row.", "TableOperations")); 644 644 break; 645 645 } … … 653 653 //Mozilla, as opposed to IE, allows the selection of several cells, which is fine :) 654 654 var sel = editor._getSelection(); 655 if (! HTMLArea.is_ie && sel.rangeCount > 1) {655 if (!Xinha.is_ie && sel.rangeCount > 1) { 656 656 var range = sel.getRangeAt(0); 657 657 var td = range.startContainer.childNodes[range.startOffset]; … … 687 687 var td = this.getClosest("td"); 688 688 if (!td) { 689 alert( HTMLArea._lc("Please click into some cell", "TableOperations"));689 alert(Xinha._lc("Please click into some cell", "TableOperations")); 690 690 break; 691 691 } … … 858 858 color = ""; 859 859 } else if (!/#/.test(color)) { 860 color = HTMLArea._colorToRgb(color);860 color = Xinha._colorToRgb(color); 861 861 } 862 862 … … 891 891 span2.innerHTML = "×"; 892 892 span2.className = "nocolor"; 893 span2.title = HTMLArea._lc("Unset color", "TableOperations");893 span2.title = Xinha._lc("Unset color", "TableOperations"); 894 894 button.appendChild(span2); 895 895 span2.onmouseover = function() { if (!this.parentNode.disabled) { this.className += " nocolor-hilite"; }}; … … 906 906 var legend = doc.createElement("legend"); 907 907 fieldset.appendChild(legend); 908 legend.innerHTML = HTMLArea._lc("Layout", "TableOperations");908 legend.innerHTML = Xinha._lc("Layout", "TableOperations"); 909 909 var table = doc.createElement("table"); 910 910 fieldset.appendChild(table); … … 922 922 td.className = "label"; 923 923 tr.appendChild(td); 924 td.innerHTML = HTMLArea._lc("Float", "TableOperations") + ":";924 td.innerHTML = Xinha._lc("Float", "TableOperations") + ":"; 925 925 td = doc.createElement("td"); 926 926 tr.appendChild(td); … … 933 933 var val = options[i].toLowerCase(); 934 934 option = doc.createElement("option"); 935 option.innerHTML = HTMLArea._lc(Val, "TableOperations");935 option.innerHTML = Xinha._lc(Val, "TableOperations"); 936 936 option.value = val; 937 937 option.selected = (("" + el.style.cssFloat).toLowerCase() == val); … … 945 945 td.className = "label"; 946 946 tr.appendChild(td); 947 td.innerHTML = HTMLArea._lc("Width", "TableOperations") + ":";947 td.innerHTML = Xinha._lc("Width", "TableOperations") + ":"; 948 948 td = doc.createElement("td"); 949 949 tr.appendChild(td); … … 958 958 select.name = "f_st_widthUnit"; 959 959 option = doc.createElement("option"); 960 option.innerHTML = HTMLArea._lc("percent", "TableOperations");960 option.innerHTML = Xinha._lc("percent", "TableOperations"); 961 961 option.value = "%"; 962 962 option.selected = /%/.test(el.style.width); 963 963 select.appendChild(option); 964 964 option = doc.createElement("option"); 965 option.innerHTML = HTMLArea._lc("pixels", "TableOperations");965 option.innerHTML = Xinha._lc("pixels", "TableOperations"); 966 966 option.value = "px"; 967 967 option.selected = /px/.test(el.style.width); … … 970 970 971 971 select.style.marginRight = "0.5em"; 972 td.appendChild(doc.createTextNode( HTMLArea._lc("Text align", "TableOperations") + ":"));972 td.appendChild(doc.createTextNode(Xinha._lc("Text align", "TableOperations") + ":")); 973 973 select = doc.createElement("select"); 974 974 select.style.marginLeft = select.style.marginRight = "0.5em"; … … 989 989 option = doc.createElement("option"); 990 990 option.value = val; 991 option.innerHTML = HTMLArea._lc(Val, "TableOperations");991 option.innerHTML = Xinha._lc(Val, "TableOperations"); 992 992 option.selected = ((el.style.textAlign.toLowerCase() == val) || (el.style.textAlign == "" && Val == "-")); 993 993 select.appendChild(option); … … 1008 1008 td.className = "label"; 1009 1009 tr.appendChild(td); 1010 td.innerHTML = HTMLArea._lc("Height", "TableOperations") + ":";1010 td.innerHTML = Xinha._lc("Height", "TableOperations") + ":"; 1011 1011 td = doc.createElement("td"); 1012 1012 tr.appendChild(td); … … 1021 1021 select.name = "f_st_heightUnit"; 1022 1022 option = doc.createElement("option"); 1023 option.innerHTML = HTMLArea._lc("percent", "TableOperations");1023 option.innerHTML = Xinha._lc("percent", "TableOperations"); 1024 1024 option.value = "%"; 1025 1025 option.selected = /%/.test(el.style.height); 1026 1026 select.appendChild(option); 1027 1027 option = doc.createElement("option"); 1028 option.innerHTML = HTMLArea._lc("pixels", "TableOperations");1028 option.innerHTML = Xinha._lc("pixels", "TableOperations"); 1029 1029 option.value = "px"; 1030 1030 option.selected = /px/.test(el.style.height); … … 1033 1033 1034 1034 select.style.marginRight = "0.5em"; 1035 td.appendChild(doc.createTextNode( HTMLArea._lc("Vertical align", "TableOperations") + ":"));1035 td.appendChild(doc.createTextNode(Xinha._lc("Vertical align", "TableOperations") + ":")); 1036 1036 select = doc.createElement("select"); 1037 1037 select.name = "f_st_verticalAlign"; … … 1044 1044 option = doc.createElement("option"); 1045 1045 option.value = val; 1046 option.innerHTML = HTMLArea._lc(Val, "TableOperations");1046 option.innerHTML = Xinha._lc(Val, "TableOperations"); 1047 1047 option.selected = ((el.style.verticalAlign.toLowerCase() == val) || (el.style.verticalAlign == "" && Val == "-")); 1048 1048 select.appendChild(option); … … 1059 1059 var legend = doc.createElement("legend"); 1060 1060 fieldset.appendChild(legend); 1061 legend.innerHTML = HTMLArea._lc("CSS Style", "TableOperations");1061 legend.innerHTML = Xinha._lc("CSS Style", "TableOperations"); 1062 1062 var table = doc.createElement("table"); 1063 1063 fieldset.appendChild(table); … … 1073 1073 tr.appendChild(td); 1074 1074 td.className = "label"; 1075 td.innerHTML = HTMLArea._lc("Background", "TableOperations") + ":";1075 td.innerHTML = Xinha._lc("Background", "TableOperations") + ":"; 1076 1076 td = doc.createElement("td"); 1077 1077 tr.appendChild(td); … … 1079 1079 df.firstChild.nextSibling.style.marginRight = "0.5em"; 1080 1080 td.appendChild(df); 1081 td.appendChild(doc.createTextNode( HTMLArea._lc("Image URL", "TableOperations") + ": "));1081 td.appendChild(doc.createTextNode(Xinha._lc("Image URL", "TableOperations") + ": ")); 1082 1082 input = doc.createElement("input"); 1083 1083 input.type = "text"; … … 1094 1094 tr.appendChild(td); 1095 1095 td.className = "label"; 1096 td.innerHTML = HTMLArea._lc("FG Color", "TableOperations") + ":";1096 td.innerHTML = Xinha._lc("FG Color", "TableOperations") + ":"; 1097 1097 td = doc.createElement("td"); 1098 1098 tr.appendChild(td); … … 1110 1110 tr.appendChild(td); 1111 1111 td.className = "label"; 1112 td.innerHTML = HTMLArea._lc("Border", "TableOperations") + ":";1112 td.innerHTML = Xinha._lc("Border", "TableOperations") + ":"; 1113 1113 td = doc.createElement("td"); 1114 1114 tr.appendChild(td); … … 1161 1161 input.style.marginRight = "0.5em"; 1162 1162 var span = doc.createElement("span"); 1163 span.innerHTML = HTMLArea._lc("pixels", "TableOperations");1163 span.innerHTML = Xinha._lc("pixels", "TableOperations"); 1164 1164 td.appendChild(span); 1165 1165 borderFields.push(span); … … 1186 1186 var label = doc.createElement("label"); 1187 1187 label.htmlFor = "f_st_borderCollapse"; 1188 label.innerHTML = HTMLArea._lc("Collapsed borders", "TableOperations");1188 label.innerHTML = Xinha._lc("Collapsed borders", "TableOperations"); 1189 1189 td.appendChild(label); 1190 1190 } … … 1195 1195 // td.className = "label"; 1196 1196 // tr.appendChild(td); 1197 // td.innerHTML = HTMLArea._lc("Margin", "TableOperations") + ":";1197 // td.innerHTML = Xinha._lc("Margin", "TableOperations") + ":"; 1198 1198 // td = doc.createElement("td"); 1199 1199 // tr.appendChild(td); … … 1204 1204 // td.appendChild(input); 1205 1205 // input.style.marginRight = "0.5em"; 1206 // td.appendChild(doc.createTextNode( HTMLArea._lc("Padding", "TableOperations") + ":"));1206 // td.appendChild(doc.createTextNode(Xinha._lc("Padding", "TableOperations") + ":")); 1207 1207 1208 1208 // input = doc.createElement("input"); … … 1213 1213 // input.style.marginLeft = "0.5em"; 1214 1214 // input.style.marginRight = "0.5em"; 1215 // td.appendChild(doc.createTextNode( HTMLArea._lc("pixels", "TableOperations")));1215 // td.appendChild(doc.createTextNode(Xinha._lc("pixels", "TableOperations"))); 1216 1216 1217 1217 return fieldset; -
trunk/plugins/UnFormat/un-format.js
r677 r856 1 // Unormat plugin for HTMLArea1 // Unormat plugin for Xinha 2 2 3 3 … … 28 28 29 29 UnFormat.prototype._lc = function(string) { 30 return HTMLArea._lc(string, 'UnFormat');30 return Xinha._lc(string, 'UnFormat'); 31 31 }; 32 32
