Changeset 419
- Timestamp:
- 10/31/05 05:33:41 (8 years ago)
- Location:
- trunk
- Files:
-
- 75 modified
-
dialog.js (modified) (3 diffs)
-
htmlarea.js (modified) (18 diffs)
-
plugins/BackgroundImage/background-image.js (modified) (1 diff)
-
plugins/BackgroundImage/popups/bgimage.html (modified) (2 diffs)
-
plugins/CSS/css.js (modified) (1 diff)
-
plugins/CharCounter/char-counter.js (modified) (1 diff)
-
plugins/CharacterMap/character-map.js (modified) (1 diff)
-
plugins/CharacterMap/popups/select_character.html (modified) (1 diff)
-
plugins/ClientsideSpellcheck/clientside-spellcheck.js (modified) (1 diff)
-
plugins/ContextMenu/context-menu.js (modified) (7 diffs)
-
plugins/DoubleClick/double-click.js (modified) (1 diff)
-
plugins/DynamicCSS/dynamiccss.js (modified) (1 diff)
-
plugins/EditTag/edit-tag.js (modified) (1 diff)
-
plugins/EnterParagraphs/enter-paragraphs.js (modified) (1 diff)
-
plugins/Equation/equation.js (modified) (1 diff)
-
plugins/Equation/popups/operations.html (modified) (2 diffs)
-
plugins/Filter/filter.js (modified) (1 diff)
-
plugins/Filter/filters/paragraph.js (modified) (1 diff)
-
plugins/Filter/filters/word.js (modified) (1 diff)
-
plugins/FindReplace/find-replace.js (modified) (1 diff)
-
plugins/FindReplace/fr_engine.js (modified) (7 diffs)
-
plugins/FindReplace/popups/find_replace.html (modified) (4 diffs)
-
plugins/FormOperations/form-operations.js (modified) (2 diffs)
-
plugins/Forms/forms.js (modified) (3 diffs)
-
plugins/Forms/popups/fieldset.html (modified) (2 diffs)
-
plugins/Forms/popups/form.html (modified) (2 diffs)
-
plugins/Forms/popups/input.html (modified) (2 diffs)
-
plugins/Forms/popups/label.html (modified) (2 diffs)
-
plugins/Forms/popups/select.html (modified) (2 diffs)
-
plugins/Forms/popups/textarea.html (modified) (2 diffs)
-
plugins/FullPage/full-page.js (modified) (3 diffs)
-
plugins/FullPage/popups/docprop.html (modified) (2 diffs)
-
plugins/GetHtml/get-html.js (modified) (2 diffs)
-
plugins/HorizontalRule/popups/edit_horizontal_rule.html (modified) (3 diffs)
-
plugins/HtmlTidy/html-tidy.js (modified) (1 diff)
-
plugins/ImageManager/assets/dialog.js (modified) (3 diffs)
-
plugins/ImageManager/assets/editorFrame.js (modified) (1 diff)
-
plugins/ImageManager/assets/images.js (modified) (1 diff)
-
plugins/ImageManager/assets/manager.js (modified) (3 diffs)
-
plugins/ImageManager/assets/popup.js (modified) (1 diff)
-
plugins/ImageManager/editorFrame.php (modified) (1 diff)
-
plugins/ImageManager/image-manager.js (modified) (2 diffs)
-
plugins/InsertAnchor/popups/insert_anchor.html (modified) (3 diffs)
-
plugins/InsertMarquee/insert-marquee.js (modified) (1 diff)
-
plugins/InsertMarquee/popups/insert_marquee.html (modified) (2 diffs)
-
plugins/InsertPagebreak/insert-pagebreak.js (modified) (1 diff)
-
plugins/InsertPicture/InsertPicture.php (modified) (5 diffs)
-
plugins/InsertPicture/insert-picture.js (modified) (1 diff)
-
plugins/InsertPicture/viewpicture.html (modified) (3 diffs)
-
plugins/InsertSmiley/insert-smiley.js (modified) (1 diff)
-
plugins/InsertSmiley/popups/insertsmiley.html (modified) (3 diffs)
-
plugins/InsertWords/insert-words.js (modified) (1 diff)
-
plugins/LangMarks/lang-marks.js (modified) (1 diff)
-
plugins/Linker/dTree/dtree.js (modified) (4 diffs)
-
plugins/Linker/linker.js (modified) (3 diffs)
-
plugins/ListType/list-type.js (modified) (1 diff)
-
plugins/NoteServer/note-server.js (modified) (3 diffs)
-
plugins/NoteServer/popups/codenote.html (modified) (4 diffs)
-
plugins/PasteText/paste-text.js (modified) (1 diff)
-
plugins/QuickTag/popups/quicktag.html (modified) (8 diffs)
-
plugins/QuickTag/quick-tag.js (modified) (1 diff)
-
plugins/SpellChecker/spell-check-ui.js (modified) (16 diffs)
-
plugins/SpellChecker/spell-checker.js (modified) (1 diff)
-
plugins/Stylist/stylist.js (modified) (1 diff)
-
plugins/TableOperations/table-operations.js (modified) (10 diffs)
-
plugins/Template/popups/template.html (modified) (2 diffs)
-
plugins/Template/template.js (modified) (1 diff)
-
plugins/UnFormat/popups/unformat.html (modified) (2 diffs)
-
plugins/UnFormat/un-format.js (modified) (1 diff)
-
popups/editor_help.html (modified) (2 diffs)
-
popups/insert_image.html (modified) (4 diffs)
-
popups/insert_table.html (modified) (3 diffs)
-
popups/link.html (modified) (4 diffs)
-
popups/popup.js (modified) (6 diffs)
-
popupwin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dialog.js
r183 r419 20 20 } 21 21 Dialog._geckoOpenModal(url, action, init); 22 } ;22 } 23 23 24 24 Dialog._parentEvent = function(ev) { … … 51 51 HTMLArea._addEvent(w, "mousedown", Dialog._parentEvent); 52 52 HTMLArea._addEvent(w, "focus", Dialog._parentEvent); 53 } ;53 } 54 54 // release the captured events 55 55 function relwin(w) { … … 57 57 HTMLArea._removeEvent(w, "mousedown", Dialog._parentEvent); 58 58 HTMLArea._removeEvent(w, "focus", Dialog._parentEvent); 59 } ;59 } 60 60 capwin(window); 61 61 // capture other frames, note the exception trapping, this is because -
trunk/htmlarea.js
r417 r419 153 153 HTMLArea.freeLater(this, '_textArea'); 154 154 } 155 } ;155 } 156 156 157 157 HTMLArea.onload = function(){}; … … 792 792 793 793 table.className = 'toolbarRow'; // meh, kinda. 794 } ;// END of function: newLine794 } // END of function: newLine 795 795 796 796 // init first line … … 824 824 this[id] = newval; 825 825 } 826 } ;// END of function: setButtonStatus826 } // END of function: setButtonStatus 827 827 828 828 // this function will handle creation of combo boxes. Receives as … … 895 895 } 896 896 return el; 897 } ;// END of function: createSelect897 } // END of function: createSelect 898 898 899 899 // appends a new button to toolbar … … 1010 1010 img.style.left = '0px'; 1011 1011 } 1012 } 1012 }; 1013 1013 1014 1014 } else if (!el) { … … 1017 1017 1018 1018 return el; 1019 } ;1019 } 1020 1020 1021 1021 var first = true; … … 2240 2240 ta.value += " "; 2241 2241 ta.value += str + "\n"; 2242 } ;2242 } 2243 2243 function _dt(root, level) { 2244 2244 var tag = root.tagName.toLowerCase(), i; … … 2248 2248 if (i.nodeType == 1) 2249 2249 _dt(i, level + 2); 2250 } ;2250 } 2251 2251 _dt(this._doc.body, 0); 2252 2252 document.body.appendChild(ta); … … 2290 2290 txt += "Clean-up took " + (((new Date()).getTime() - stats.T) / 1000) + " seconds"; 2291 2291 alert(txt); 2292 } ;2292 } 2293 2293 function clearClass(node) { 2294 2294 var newc = node.className.replace(/(^|\s)mso.*?(\s|$)/ig, ' '); … … 2300 2300 } 2301 2301 } 2302 } ;2302 } 2303 2303 function clearStyle(node) { 2304 2304 var declarations = node.style.cssText.split(/\s*;\s*/); … … 2310 2310 } 2311 2311 node.style.cssText = declarations.join("; "); 2312 } ;2312 } 2313 2313 function stripTag(el) { 2314 2314 if (HTMLArea.is_ie) … … 2320 2320 } 2321 2321 ++stats.mso_xmlel; 2322 } ;2322 } 2323 2323 function checkEmpty(el) { 2324 2324 if (/^(a|span|b|strong|i|em|font)$/i.test(el.tagName) && … … 2327 2327 ++stats.empty_tags; 2328 2328 } 2329 } ;2329 } 2330 2330 function parseTree(root) { 2331 2331 var tag = root.tagName.toLowerCase(), i, next; … … 2343 2343 } 2344 2344 return true; 2345 } ;2345 } 2346 2346 parseTree(this._doc.body); 2347 2347 // showStats(); … … 2828 2828 if ((parent.nodeType != 1) || (parent.tagName.toLowerCase() == 'body')) break; 2829 2829 parent = parent.parentElement; 2830 } ;2830 } 2831 2831 return parent; 2832 2832 case "None": … … 4886 4886 function hex(d) { 4887 4887 return (d < 16) ? ("0" + d.toString(16)) : d.toString(16); 4888 } ;4888 } 4889 4889 4890 4890 if (typeof v == "number") { … … 5097 5097 } 5098 5098 } 5099 } ;5099 } 5100 5100 5101 5101 req.onreadystatechange = callBack; … … 5136 5136 } 5137 5137 } 5138 } ;5138 } 5139 5139 5140 5140 req.onreadystatechange = callBack; -
trunk/plugins/BackgroundImage/background-image.js
r376 r419 21 21 }) 22 22 cfg.addToolbarElement("bgImage", "inserthorizontalrule", 1); 23 } ;23 } 24 24 25 25 BackgroundImage._pluginInfo = { -
trunk/plugins/BackgroundImage/popups/bgimage.html
r320 r419 11 11 __dlg_init(); 12 12 window.resizeTo(300, 195); 13 } ;13 } 14 14 15 15 function onCancel() { 16 16 __dlg_close(null); 17 17 return false; 18 } ;18 } 19 19 20 20 function insertbg(image) { … … 34 34 <table align="center" border="0" cellspacing="0" cellpadding="6"> 35 35 <tr align="center" valign="top"> 36 <td><img onclick="insertbg('blufur.jpg')" border= 1src="../backgrounds/thumbnails/blufur.jpg" width="50" height="50"></td>37 <td><img onclick="insertbg('palecnvs.jpg')" border= 1src="../backgrounds/thumbnails/palecnvs.jpg" width="50" height="50"></td>38 <td><img onclick="insertbg('ppplcnvs.jpg')" border= 1src="../backgrounds/thumbnails/ppplcnvs.jpg" width="50" height="50"></td>39 <td><img onclick="insertbg('ylwsand.jpg')" border= 1src="../backgrounds/thumbnails/ylwsand.jpg" width="50" height="50"></td>36 <td><img onclick="insertbg('blufur.jpg')" border="1" src="../backgrounds/thumbnails/blufur.jpg" width="50" height="50"></td> 37 <td><img onclick="insertbg('palecnvs.jpg')" border="1" src="../backgrounds/thumbnails/palecnvs.jpg" width="50" height="50"></td> 38 <td><img onclick="insertbg('ppplcnvs.jpg')" border="1" src="../backgrounds/thumbnails/ppplcnvs.jpg" width="50" height="50"></td> 39 <td><img onclick="insertbg('ylwsand.jpg')" border="1" src="../backgrounds/thumbnails/ylwsand.jpg" width="50" height="50"></td> 40 40 </tr> 41 41 </table> -
trunk/plugins/CSS/css.js
r152 r419 71 71 cfg.addToolbarElement(["T[" + combo.label + "]", id, "separator"] , "formatblock", -1); 72 72 } 73 } ;73 } 74 74 75 75 CSS._pluginInfo = { -
trunk/plugins/CharCounter/char-counter.js
r387 r419 6 6 function CharCounter(editor) { 7 7 this.editor = editor; 8 } ;8 } 9 9 10 10 CharCounter._pluginInfo = { -
trunk/plugins/CharacterMap/character-map.js
r376 r419 54 54 editor.hidePanel( editor._CharacterMap ); 55 55 } 56 } ;56 } 57 57 58 58 // configuration mode : panel or popup -
trunk/plugins/CharacterMap/popups/select_character.html
r313 r419 38 38 __dlg_close( null ); 39 39 return false; 40 } ;40 } 41 41 42 42 </script> -
trunk/plugins/ClientsideSpellcheck/clientside-spellcheck.js
r383 r419 28 28 } 29 29 30 } ;30 } 31 31 32 32 ClientsideSpellcheck._pluginInfo = { -
trunk/plugins/ContextMenu/context-menu.js
r290 r419 13 13 function ContextMenu(editor) { 14 14 this.editor = editor; 15 } ;15 } 16 16 17 17 ContextMenu._pluginInfo = { … … 61 61 function tableOperation(opcode) { 62 62 tbo.buttonPress(editor, opcode); 63 } ;63 } 64 64 65 65 function insertPara(after) { … … 81 81 range.select(); 82 82 } 83 } ;83 } 84 84 85 85 for (; target; target = target.parentNode) { … … 259 259 } 260 260 return r; 261 } ;261 } 262 262 function documentClick(ev) { 263 263 ev || (ev = window.event); … … 272 272 //HTMLArea._stopEvent(ev); 273 273 //return false; 274 } ;274 } 275 275 var keys = []; 276 276 function keyPress(ev) { … … 287 287 k[1].__msh.activate(); 288 288 } 289 } ;289 } 290 290 self.closeMenu = function() { 291 291 self.currentMenu.parentNode.removeChild(self.currentMenu); … … 297 297 if (HTMLArea.is_ie) 298 298 self.iePopup.hide(); 299 } ;299 } 300 300 var target = HTMLArea.is_ie ? ev.srcElement : ev.target; 301 301 var ifpos = getPos(self.editor._htmlArea);//_iframe); -
trunk/plugins/DoubleClick/double-click.js
r376 r419 49 49 td: [ function(e) {e.execCommand("inserttable");} ] 50 50 }; 51 } ;51 } 52 52 53 53 DoubleClick.prototype.onGenerate = function() { -
trunk/plugins/DynamicCSS/dynamiccss.js
r376 r419 26 26 cfg.registerDropdown(css_class); 27 27 cfg.addToolbarElement(["T[CSS]", "DynamicCSS-class", "separator"] , "formatblock", -1); 28 } ;28 } 29 29 30 30 DynamicCSS.parseStyleSheet=function(editor){ -
trunk/plugins/EditTag/edit-tag.js
r376 r419 21 21 self.buttonPress(editor); 22 22 } 23 }) 23 }); 24 24 25 25 cfg.addToolbarElement("edittag", "htmlmode",1); 26 26 27 } ;27 } 28 28 29 29 EditTag._pluginInfo = { -
trunk/plugins/EnterParagraphs/enter-paragraphs.js
r190 r419 114 114 } 115 115 116 } ;// end of constructor.116 } // end of constructor. 117 117 118 118 // ------------------------------------------------------------------ -
trunk/plugins/Equation/equation.js
r376 r419 28 28 self.buttonPress(editor, id); 29 29 } 30 }) 30 }); 31 31 cfg.addToolbarElement("equation", "inserthorizontalrule", -1); 32 } ;32 } 33 33 34 34 Equation._pluginInfo = { -
trunk/plugins/Equation/popups/operations.html
r310 r419 26 26 var selected_op="none"; 27 27 document.getElementById("cancel").focus(); 28 } ;28 } 29 29 30 30 function SelectOperation(sop,sop_name) { … … 54 54 __dlg_close(null); 55 55 return false; 56 } ;56 } 57 57 </script> 58 58 </head> -
trunk/plugins/Filter/filter.js
r376 r419 19 19 self.buttonPress(editor); 20 20 } 21 }) 21 }); 22 22 //cfg.Filters = ["Paragraph","Word"]; 23 23 for (var i = 0; i < editor.config.Filters.length; i++) { -
trunk/plugins/Filter/filters/paragraph.js
r359 r419 4 4 html = html.trim(); 5 5 return html; 6 } 6 }; -
trunk/plugins/Filter/filters/word.js
r359 r419 51 51 html = html.trim(); 52 52 return html; 53 } 53 }; -
trunk/plugins/FindReplace/find-replace.js
r376 r419 14 14 function(editor) { self.buttonPress(editor); }); 15 15 cfg.addToolbarElement(["FR-findreplace","separator"], ["formatblock","fontsize","fontname"], -1); 16 } ;16 } 17 17 18 18 FindReplace.prototype.buttonPress = function(editor) { -
trunk/plugins/FindReplace/fr_engine.js
r90 r419 50 50 51 51 spanWalker(params['fr_pattern'],params['fr_replacement'],params['fr_replaceall']); 52 } ;52 } 53 53 54 54 function spanWalker(pattern,replacement,replaceall) { … … 96 96 alert(message+'.'); 97 97 } 98 } ;98 } 99 99 100 100 function clearDoc() { … … 108 108 replaces = 0; 109 109 disab("fr_hiliteall,fr_clear",true); 110 } ;110 } 111 111 112 function clearMarks() { 112 function clearMarks() { 113 113 var getall = editor._doc.body.getElementsByTagName("span"); 114 114 for (var i = 0; i < getall.length; i++) { … … 121 121 } 122 122 } 123 } ;123 } 124 124 125 125 function hiliteAll() { … … 134 134 } 135 135 } 136 } ;136 } 137 137 138 138 function resetContents() { … … 141 141 editor._doc.body.innerHTML = buffer; 142 142 buffer = transp; 143 } ;143 } 144 144 145 145 function disab(elms,toset) { … … 147 147 for(var i = 0; i < names.length; i++) 148 148 document.getElementById(names[i]).disabled = toset; 149 } ;149 } -
trunk/plugins/FindReplace/popups/find_replace.html
r239 r419 41 41 42 42 document.body.onkeypress = __dlg_key_press; 43 } ;43 } 44 44 45 45 function onCancel() { … … 47 47 __dlg_close(null); 48 48 return false; 49 } ;49 } 50 50 51 51 function onOK() { … … 67 67 execSearch(param); 68 68 return false; 69 } ;69 } 70 70 71 71 function __dlg_key_press(ev) { … … 82 82 } 83 83 return true; 84 } ;84 } 85 85 86 86 </script> -
trunk/plugins/FormOperations/form-operations.js
r377 r419 164 164 'form' 165 165 ]; 166 } ;166 } 167 167 168 168 FormOperations.prototype.onGenerate = function() … … 467 467 'button_value' : input.value, 468 468 'button_type' : input.type.toLowerCase() 469 } 469 }; 470 470 this.panel.setValues(vals); 471 471 -
trunk/plugins/Forms/forms.js
r376 r419 27 27 // add a new line in the toolbar 28 28 cfg.toolbar.push(toolbar); 29 } ;29 } 30 30 31 31 Forms._pluginInfo = { … … 174 174 for (var i=0; i<=node.options.length-1; i++) { 175 175 a_options[i] = new optionValues(node.options[i].text, node.options[i].value); 176 } ;176 } 177 177 outparam.f_options = a_options; 178 178 break; … … 268 268 outparam.f_text = ""; 269 269 outparam.f_legend = ""; 270 } ;270 } 271 271 editor._popupDialog("plugin://Forms/" + tagName + ".html", function(param) { 272 272 if (param) { -
trunk/plugins/Forms/popups/fieldset.html
r254 r419 14 14 document.getElementById("f_text").value = param["f_text"]; 15 15 document.getElementById("f_text").focus(); 16 } ;16 } 17 17 18 18 function onOK() { … … 22 22 __dlg_close(param); 23 23 return false; 24 } ;24 } 25 25 26 26 function onCancel() { 27 27 __dlg_close(null); 28 28 return false; 29 } ;29 } 30 30 31 31 </script> -
trunk/plugins/Forms/popups/form.html
r239 r419 19 19 } 20 20 document.getElementById("f_name").focus(); 21 } ;21 } 22 22 23 23 function onOK() { … … 40 40 __dlg_close(param); 41 41 return false; 42 } ;42 } 43 43 44 44 function onCancel() { 45 45 __dlg_close(null); 46 46 return false; 47 } ;47 } 48 48 </script> 49 49 </head> -
trunk/plugins/Forms/popups/input.html
r276 r419 73 73 window.resizeTo(320,height); 74 74 document.getElementById("f_name").focus(); 75 } ;75 } 76 76 77 77 function onOK() { … … 100 100 __dlg_close(param); 101 101 return false; 102 } ;102 } 103 103 104 104 function onCancel() { 105 105 __dlg_close(null); 106 106 return false; 107 } ;107 } 108 108 </script> 109 109 -
trunk/plugins/Forms/popups/label.html
r239 r419 18 18 } 19 19 document.getElementById("f_text").focus(); 20 } ;20 } 21 21 22 22 function onOK() { … … 29 29 __dlg_close(param); 30 30 return false; 31 } ;31 } 32 32 33 33 function onCancel() { 34 34 __dlg_close(null); 35 35 return false; 36 } ;36 } 37 37 38 38 </script> -
trunk/plugins/Forms/popups/select.html
r254 r419 29 29 } 30 30 document.getElementById("f_name").focus(); 31 } ;31 } 32 32 33 33 function onOK() { … … 65 65 __dlg_close(param); 66 66 return false; 67 } ;67 } 68 68 69 69 function onCancel() { 70 70 __dlg_close(null); 71 71 return false; 72 } ;72 } 73 73 74 74 -
trunk/plugins/Forms/popups/textarea.html
r254 r419 25 25 } 26 26 document.getElementById("f_name").focus(); 27 } ;27 } 28 28 29 29 function onOK() { … … 51 51 __dlg_close(param); 52 52 return false; 53 } ;53 } 54 54 55 55 function onCancel() { 56 56 __dlg_close(null); 57 57 return false; 58 } ;58 } 59 59 </script> 60 60 </head> -
trunk/plugins/FullPage/full-page.js
r376 r419 27 27 // add a new line in the toolbar 28 28 cfg.addToolbarElement(["separator","FP-docprop"],"separator",-1); 29 } ;29 } 30 30 31 31 FullPage._pluginInfo = { … … 135 135 head.appendChild(link); 136 136 return link; 137 } ;137 } 138 138 function createMeta(httpEquiv, name, content) { 139 139 var meta = doc.createElement("meta"); … … 144 144 head.appendChild(meta); 145 145 return meta; 146 } ;146 } 147 147 148 148 if (!style1 && params.f_base_style) -
trunk/plugins/FullPage/popups/docprop.html
r305 r419 45 45 document.getElementById("f_title").focus(); 46 46 document.getElementById("f_title").select(); 47 } ;47 } 48 48 49 49 function onOK() { … … 66 66 __dlg_close(param); 67 67 return false; 68 } ;68 } 69 69 70 70 function onCancel() { 71 71 __dlg_close(null); 72 72 return false; 73 } ;73 } 74 74 </script> 75 75 <style type="text/css"> -
trunk/plugins/GetHtml/get-html.js
r406 r419 21 21 function GetHtml(editor) { 22 22 this.editor = editor; 23 } ;23 } 24 24 25 25 GetHtml._pluginInfo = { … … 76 76 if(HTMLArea.is_ie && c[13].test(sHtml)) {// 77 77 sHtml = sHtml.replace(c[13],'$1'+this.stripBaseURL(RegExp.$3)+'"'); 78 } ;78 } 79 79 if(this.config.only7BitPrintablesInURLs && c[13].test(sHtml)) { 80 80 sHtml = sHtml.replace(c[13], '$1'+RegExp.$3.replace(/([^!-~]+)/g,function(chr){return escape(chr);})+'"'); -
trunk/plugins/HorizontalRule/popups/edit_horizontal_rule.html
r348 r419 23 23 } 24 24 document.getElementById("f_width").focus(); 25 } ;25 } 26 26 27 27 function onOK() { … … 35 35 __dlg_close(param); 36 36 return false; 37 } ;37 } 38 38 39 39 function onCancel() { 40 40 __dlg_close(null); 41 41 return false; 42 } ;42 } 43 43 44 44 function selectColor(id1,id2,color) { … … 52 52 function Dialog(url, action, init) { 53 53 Dialog.openModal(url, action, init); 54 } ;54 } 55 55 Dialog.openModal = function(url, action, init) { 56 56 var dlg2 = window.open(url, "hadialog2", -
trunk/plugins/HtmlTidy/html-tidy.js
r376 r419 45 45 cfg.toolbar[0].push(toolbar[i]); 46 46 } 47 } ;47 } 48 48 49 49 HtmlTidy._pluginInfo = { -
trunk/plugins/ImageManager/assets/dialog.js
r43 r419 20 20 } 21 21 Dialog._geckoOpenModal(url, action, init); 22 } ;22 } 23 23 24 24 Dialog._parentEvent = function(ev) { … … 55 55 Dialog._addEvent(w, "mousedown", Dialog._parentEvent); 56 56 Dialog._addEvent(w, "focus", Dialog._parentEvent); 57 } ;57 } 58 58 // release the captured events 59 59 function relwin(w) { … … 61 61 Dialog._removeEvent(w, "mousedown", Dialog._parentEvent); 62 62 Dialog._removeEvent(w, "focus", Dialog._parentEvent); 63 } ;63 } 64 64 capwin(window); 65 65 // capture other frames -
trunk/plugins/ImageManager/assets/editorFrame.js
r48 r419 94 94 95 95 initEditor(); 96 } 96 }; 97 97 98 98 addEvent(window, 'load', init); 99 -
trunk/plugins/ImageManager/assets/images.js
r256 r419 8 8 function i18n(str) { 9 9 return HTMLArea._lc(str, 'ImageManager'); 10 } ;10 } 11 11 12 12 function changeDir(newDir) -
trunk/plugins/ImageManager/assets/manager.js
r377 r419 9 9 function i18n(str) { 10 10 return HTMLArea._lc(str, 'ImageManager'); 11 } ;11 } 12 12 13 13 … … 106 106 __dlg_close(null); 107 107 return false; 108 } ;108 } 109 109 110 110 function onOK() … … 157 157 __dlg_close(param); 158 158 return false; 159 } ;159 } 160 160 161 161 //similar to the Files::makeFile() in Files.php -
trunk/plugins/ImageManager/assets/popup.js
r302 r419 38 38 } 39 39 document.title = HTMLArea._lc(document.title, context); 40 } ;40 } -
trunk/plugins/ImageManager/editorFrame.php
r270 r419 34 34 function i18n(str) { 35 35 return HTMLArea._lc(str, 'ImageManager'); 36 } ;36 } 37 37 38 38 var mode = "<?php echo $editor->getAction(); ?>" //crop, scale, measure -
trunk/plugins/ImageManager/image-manager.js
r409 r419 24 24 { 25 25 26 } ;26 } 27 27 28 28 ImageManager._pluginInfo = { … … 253 253 }, outparam); 254 254 }; 255 -
trunk/plugins/InsertAnchor/popups/insert_anchor.html
r349 r419 15 15 } 16 16 document.getElementById("name").focus(); 17 } ;17 } 18 18 19 19 function onOK() { … … 23 23 __dlg_close(param); 24 24 return false; 25 } ;25 } 26 26 27 27 function onDelete() { … … 31 31 __dlg_close(param); 32 32 return false; 33 } ;33 } 34 34 35 35 function onCancel() { 36 36 __dlg_close(null); 37 37 return false; 38 } ;38 } 39 39 </script> 40 40 </head> -
trunk/plugins/InsertMarquee/insert-marquee.js
r376 r419 24 24 }) 25 25 cfg.addToolbarElement("insertmarquee", "inserthorizontalrule", -1); 26 } ;26 } 27 27 28 28 InsertMarquee._pluginInfo = { -
trunk/plugins/InsertMarquee/popups/insert_marquee.html
r276 r419 18 18 } 19 19 document.getElementById("f_name").focus(); 20 } ;20 } 21 21 22 22 function onOK() { … … 39 39 __dlg_close(param); 40 40 return false; 41 } ;41 } 42 42 43 43 function onCancel() { 44 44 __dlg_close(null); 45 45 return false; 46 } ;46 } 47 47 48 48 </script> -
trunk/plugins/InsertPagebreak/insert-pagebreak.js
r376 r419 20 20 self.buttonPress(editor); 21 21 } 22 }) 22 }); 23 23 cfg.addToolbarElement("pagebreak", "inserthorizontalrule", 1); 24 } ;24 } 25 25 26 26 InsertPagebreak._pluginInfo = { -
trunk/plugins/InsertPicture/InsertPicture.php
r307 r419 65 65 function i18n(str) { 66 66 return (HTMLArea._lc(str, 'HTMLArea')); 67 } ;67 } 68 68 69 69 function Init() { … … 85 85 } 86 86 document.getElementById("f_url").focus(); 87 } ;87 } 88 88 89 89 function onOK() { … … 110 110 __dlg_close(param); 111 111 return false; 112 } ;112 } 113 113 114 114 function onUpload() { … … 131 131 __dlg_close(null); 132 132 return false; 133 } ;133 } 134 134 135 135 function onPreview() { … … 147 147 } 148 148 return false; 149 } ;149 } 150 150 151 151 function CopyToURL(imgName) { 152 152 document.getElementById("f_url").value = imgName; 153 153 onPreview(); 154 } ;154 } 155 155 156 156 function openFile() { -
trunk/plugins/InsertPicture/insert-picture.js
r307 r419 20 20 function InsertPicture(editor) { 21 21 // nothing to do 22 } ;22 } 23 23 24 24 InsertPicture._pluginInfo = { -
trunk/plugins/InsertPicture/viewpicture.html
r304 r419 6 6 <!-- 7 7 function imgWait() { 8 waiting = window.setInterval("imgIsLoaded()", 1000) 8 waiting = window.setInterval("imgIsLoaded()", 1000); 9 9 } 10 10 function imgIsLoaded() { 11 11 if(document.getElementById("myImg").width > 0) { 12 window.clearInterval(waiting) 13 imgShowWidth() 12 window.clearInterval(waiting); 13 imgShowWidth(); 14 14 } 15 15 } 16 16 function imgShowWidth() { 17 var width = document.getElementById("myImg").width 18 var height = document.getElementById("myImg").height 17 var width = document.getElementById("myImg").width; 18 var height = document.getElementById("myImg").height; 19 19 if(width > 120) { 20 20 var dx = (120 / width); … … 24 24 width = width * ratio; 25 25 height = height * ratio; 26 document.getElementById("myImg").width = width 27 document.getElementById("myImg").height = height 26 document.getElementById("myImg").width = width; 27 document.getElementById("myImg").height = height; 28 28 } 29 document.getElementById("myImg").style.visibility = 'visible' 29 document.getElementById("myImg").style.visibility = 'visible'; 30 30 } 31 31 function showPreview() { 32 32 img = document.location.toString().split("?"); 33 33 document.getElementById("myImg").src = img[1]; 34 img.onLoad = imgWait() 34 img.onLoad = imgWait(); 35 35 } 36 36 //--> … … 40 40 <img id="myImg" src="" Style="visibility:hidden"> 41 41 <script language="JavaScript" type="text/javascript"> 42 showPreview() 42 showPreview(); 43 43 </script> 44 44 -
trunk/plugins/InsertSmiley/insert-smiley.js
r376 r419 21 21 self.buttonPress(editor); 22 22 } 23 }) 23 }); 24 24 cfg.addToolbarElement("insertsmiley", "inserthorizontalrule", 1); 25 } ;25 } 26 26 27 27 InsertSmiley._pluginInfo = { -
trunk/plugins/InsertSmiley/popups/insertsmiley.html
r239 r419 42 42 } 43 43 document.body.onkeypress = __dlg_key_press; 44 } ;44 } 45 45 46 46 function onCancel() { 47 47 __dlg_close(null); 48 48 return false; 49 } ;49 } 50 50 51 51 function onOK(smileynum) { … … 54 54 __dlg_close(params); 55 55 return false; 56 } ;56 } 57 57 58 58 function __dlg_key_press(ev) { … … 67 67 } 68 68 return true; 69 } ;69 } 70 70 </script> 71 71 -
trunk/plugins/InsertWords/insert-words.js
r376 r419 46 46 cfg.addToolbarElement(toolbar, "linebreak", 1); 47 47 48 } ;48 } 49 49 50 50 InsertWords._pluginInfo = { -
trunk/plugins/LangMarks/lang-marks.js
r376 r419 25 25 }); 26 26 cfg.addToolbarElement("langmarks", "inserthorizontalrule", 1); 27 } ;27 } 28 28 29 29 LangMarks._pluginInfo = { -
trunk/plugins/Linker/dTree/dtree.js
r377 r419 53 53 this._p; 54 54 55 } ;55 } 56 56 57 57 … … 81 81 inOrder : false 82 82 83 } 83 }; 84 84 85 85 this.icon = { … … 129 129 this.completed = false; 130 130 131 } ;131 } 132 132 133 133 … … 388 388 node._hc = ids[node.id]._hc; 389 389 } 390 }; 391 392 // Returns the selected node 393 394 dTree.prototype.getSelected = function() { 395 396 var sn = this.getCookie('cs' + this.obj); 397 398 return (sn) ? sn : null; 399 400 }; 401 402 403 404 // Highlights the selected node 405 406 dTree.prototype.s = function(id) { 407 408 if (!this.config.useSelection) return; 409 410 var cn = this.aNodes[id]; 411 412 if (cn._hc && !this.config.folderLinks) return; 413 414 if (this.selectedNode != id) { 415 416 if (this.selectedNode || this.selectedNode==0) { 417 418 eOld = document.getElementById("s" + this.obj + this.selectedNode); 419 420 eOld.className = "node"; 421 422 } 423 424 eNew = document.getElementById("s" + this.obj + id); 425 426 eNew.className = "nodeSel"; 427 428 this.selectedNode = id; 429 430 if (this.config.useCookies) this.setCookie('cs' + this.obj, cn.id); 431 432 } 433 434 }; 435 436 437 438 // Toggle Open or close 439 440 dTree.prototype.o = function(id) { 441 442 var cn = this.aNodes[id]; 443 444 this.nodeStatus(!cn._io, id, cn._ls); 445 446 cn._io = !cn._io; 447 448 if (this.config.closeSameLevel) this.closeLevel(cn); 449 450 if (this.config.useCookies) this.updateCookie(); 451 452 }; 453 454 455 456 // Open or close all nodes 457 458 dTree.prototype.oAll = function(status) { 459 460 for (var n=0; n<this.aNodes.length; n++) { 461 462 if (this.aNodes[n]._hc && this.aNodes[n].pid != this.root.id) { 463 464 this.nodeStatus(status, n, this.aNodes[n]._ls) 465 466 this.aNodes[n]._io = status; 467 468 } 469 470 } 471 472 if (this.config.useCookies) this.updateCookie(); 473 474 }; 475 476 477 478 // Opens the tree to a specific node 479 480 dTree.prototype.openTo = function(nId, bSelect, bFirst) { 481 482 if (!bFirst) { 483 484 for (var n=0; n<this.aNodes.length; n++) { 485 486 if (this.aNodes[n].id == nId) { 487 488 nId=n; 489 490 break; 491 492 } 493 494 } 495 496 } 497 498 var cn=this.aNodes[nId]; 499 500 if (cn.pid==this.root.id || !cn._p) return; 501 502 cn._io = true; 503 504 cn._is = bSelect; 505 506 if (this.completed && cn._hc) this.nodeStatus(true, cn._ai, cn._ls); 507 508 if (this.completed && bSelect) this.s(cn._ai); 509 510 else if (bSelect) this._sn=cn._ai; 511 512 this.openTo(cn._p._ai, false, true); 513 514 }; 515 516 517 518 // Closes all nodes on the same level as certain node 519 520 dTree.prototype.closeLevel = function(node) { 521 522 for (var n=0; n<this.aNodes.length; n++) { 523 524 if (this.aNodes[n].pid == node.pid && this.aNodes[n].id != node.id && this.aNodes[n]._hc) { 525 526 this.nodeStatus(false, n, this.aNodes[n]._ls); 527 528 this.aNodes[n]._io = false; 529 530 this.closeAllChildren(this.aNodes[n]); 531 532 } 533 534 } 535 390 536 } 391 537 392 // Returns the selected node 393 394 dTree.prototype.getSelected = function() { 395 396 var sn = this.getCookie('cs' + this.obj); 397 398 return (sn) ? sn : null; 399 400 }; 401 402 403 404 // Highlights the selected node 405 406 dTree.prototype.s = function(id) { 407 408 if (!this.config.useSelection) return; 409 410 var cn = this.aNodes[id]; 411 412 if (cn._hc && !this.config.folderLinks) return; 413 414 if (this.selectedNode != id) { 415 416 if (this.selectedNode || this.selectedNode==0) { 417 418 eOld = document.getElementById("s" + this.obj + this.selectedNode); 419 420 eOld.className = "node"; 421 422 } 423 424 eNew = document.getElementById("s" + this.obj + id); 425 426 eNew.className = "nodeSel"; 427 428 this.selectedNode = id; 429 430 if (this.config.useCookies) this.setCookie('cs' + this.obj, cn.id); 431 432 } 433 434 }; 435 436 437 438 // Toggle Open or close 439 440 dTree.prototype.o = function(id) { 441 442 var cn = this.aNodes[id]; 443 444 this.nodeStatus(!cn._io, id, cn._ls); 445 446 cn._io = !cn._io; 447 448 if (this.config.closeSameLevel) this.closeLevel(cn); 449 450 if (this.config.useCookies) this.updateCookie(); 451 452 }; 453 454 455 456 // Open or close all nodes 457 458 dTree.prototype.oAll = function(status) { 538 539 540 // Closes all children of a node 541 542 dTree.prototype.closeAllChildren = function(node) { 459 543 460 544 for (var n=0; n<this.aNodes.length; n++) { 461 545 462 if (this.aNodes[n]._hc && this.aNodes[n].pid != this.root.id) { 463 464 this.nodeStatus(status, n, this.aNodes[n]._ls) 465 466 this.aNodes[n]._io = status; 467 468 } 469 470 } 471 472 if (this.config.useCookies) this.updateCookie(); 473 474 }; 475 476 477 478 // Opens the tree to a specific node 479 480 dTree.prototype.openTo = function(nId, bSelect, bFirst) { 481 482 if (!bFirst) { 483 484 for (var n=0; n<this.aNodes.length; n++) { 485 486 if (this.aNodes[n].id == nId) { 487 488 nId=n; 489 490 break; 491 492 } 493 494 } 495 496 } 497 498 var cn=this.aNodes[nId]; 499 500 if (cn.pid==this.root.id || !cn._p) return; 501 502 cn._io = true; 503 504 cn._is = bSelect; 505 506 if (this.completed && cn._hc) this.nodeStatus(true, cn._ai, cn._ls); 507 508 if (this.completed && bSelect) this.s(cn._ai); 509 510 else if (bSelect) this._sn=cn._ai; 511 512 this.openTo(cn._p._ai, false, true); 513 514 }; 515 516 517 518 // Closes all nodes on the same level as certain node 519 520 dTree.prototype.closeLevel = function(node) { 546 if (this.aNodes[n].pid == node.id && this.aNodes[n]._hc) { 547 548 if (this.aNodes[n]._io) this.nodeStatus(false, n, this.aNodes[n]._ls); 549 550 this.aNodes[n]._io = false; 551 552 this.closeAllChildren(this.aNodes[n]); 553 554 } 555 556 } 557 558 } 559 560 561 562 // Change the status of a node(open or closed) 563 564 dTree.prototype.nodeStatus = function(status, id, bottom) { 565 566 eDiv = document.getElementById('d' + this.obj + id); 567 568 eJoin = document.getElementById('j' + this.obj + id); 569 570 if (this.config.useIcons) { 571 572 eIcon = document.getElementById('i' + this.obj + id); 573 574 eIcon.src = (status) ? this.aNodes[id].iconOpen : this.aNodes[id].icon; 575 576 } 577 578 eJoin.src = (this.config.useLines)? 579 580 ((status)?((bottom)?this.icon.minusBottom:this.icon.minus):((bottom)?this.icon.plusBottom:this.icon.plus)): 581 582 ((status)?this.icon.nlMinus:this.icon.nlPlus); 583 584 eDiv.style.display = (status) ? 'block': 'none'; 585 586 }; 587 588 589 590 591 592 // [Cookie] Clears a cookie 593 594 dTree.prototype.clearCookie = function() { 595 596 var now = new Date(); 597 598 var yesterday = new Date(now.getTime() - 1000 * 60 * 60 * 24); 599 600 this.setCookie('co'+this.obj, 'cookieValue', yesterday); 601 602 this.setCookie('cs'+this.obj, 'cookieValue', yesterday); 603 604 }; 605 606 607 608 // [Cookie] Sets value in a cookie 609 610 dTree.prototype.setCookie = function(cookieName, cookieValue, expires, path, domain, secure) { 611 612 document.cookie = 613 614 escape(cookieName) + '=' + escape(cookieValue) 615 616 + (expires ? '; expires=' + expires.toGMTString() : '') 617 618 + (path ? '; path=' + path : '') 619 620 + (domain ? '; domain=' + domain : '') 621 622 + (secure ? '; secure' : ''); 623 624 }; 625 626 627 628 // [Cookie] Gets a value from a cookie 629 630 dTree.prototype.getCookie = function(cookieName) { 631 632 var cookieValue = ''; 633 634 var posName = document.cookie.indexOf(escape(cookieName) + '='); 635 636 if (posName != -1) { 637 638 var posValue = posName + (escape(cookieName) + '=').length; 639 640 var endPos = document.cookie.indexOf(';', posValue); 641 642 if (endPos != -1) cookieValue = unescape(document.cookie.substring(posValue, endPos)); 643 644 else cookieValue = unescape(document.cookie.substring(posValue)); 645 646 } 647 648 return (cookieValue); 649 650 }; 651 652 653 654 // [Cookie] Returns ids of open nodes as a string 655 656 dTree.prototype.updateCookie = function() { 657 658 var str = ''; 521 659 522 660 for (var n=0; n<this.aNodes.length; n++) { 523 661 524 if (this.aNodes[n].pid == node.pid && this.aNodes[n].id != node.id && this.aNodes[n]._hc) { 525 526 this.nodeStatus(false, n, this.aNodes[n]._ls); 527 528 this.aNodes[n]._io = false; 529 530 this.closeAllChildren(this.aNodes[n]); 531 532 } 533 534 } 662 if (this.aNodes[n]._io && this.aNodes[n].pid != this.root.id) { 663 664 if (str) str += '.'; 665 666 str += this.aNodes[n].id; 667 668 } 669 670 } 671 672 this.setCookie('co' + this.obj, str); 673 674 }; 675 676 677 678 // [Cookie] Checks if a node id is in a cookie 679 680 dTree.prototype.isOpen = function(id) { 681 682 var aOpen = this.getCookie('co' + this.obj).split('.'); 683 684 for (var n=0; n<aOpen.length; n++) 685 686 if (aOpen[n] == id) return true; 687 688 return false; 689 690 }; 691 692 693 694 // If Push and pop is not implemented by the browser 695 696 if (!Array.prototype.push) { 697 698 Array.prototype.push = function array_push() { 699 700 for(var i=0;i<arguments.length;i++) 701 702 this[this.length]=arguments[i]; 703 704 return this.length; 705 706 }; 535 707 536 708 } 537 709 538 539 540 // Closes all children of a node 541 542 dTree.prototype.closeAllChildren = function(node) { 543 544 for (var n=0; n<this.aNodes.length; n++) { 545 546 if (this.aNodes[n].pid == node.id && this.aNodes[n]._hc) { 547 548 if (this.aNodes[n]._io) this.nodeStatus(false, n, this.aNodes[n]._ls); 549 550 this.aNodes[n]._io = false; 551 552 this.closeAllChildren(this.aNodes[n]); 553 554 } 555 556 } 710 if (!Array.prototype.pop) { 711 712 Array.prototype.pop = function array_pop() { 713 714 lastElement = this[this.length-1]; 715 716 this.length = Math.max(this.length-1,0); 717 718 return lastElement; 719 720 }; 557 721 558 722 } 559 560 561 562 // Change the status of a node(open or closed)563 564 dTree.prototype.nodeStatus = function(status, id, bottom) {565 566 eDiv = document.getElementById('d' + this.obj + id);567 568 eJoin = document.getElementById('j' + this.obj + id);569 570 if (this.config.useIcons) {571 572 eIcon = document.getElementById('i' + this.obj + id);573 574 eIcon.src = (status) ? this.aNodes[id].iconOpen : this.aNodes[id].icon;575 576 }577 578 eJoin.src = (this.config.useLines)?579 580 ((status)?((bottom)?this.icon.minusBottom:this.icon.minus):((bottom)?this.icon.plusBottom:this.icon.plus)):581 582 ((status)?this.icon.nlMinus:this.icon.nlPlus);583 584 eDiv.style.display = (status) ? 'block': 'none';585 586 };587 588 589 590 591 592 // [Cookie] Clears a cookie593 594 dTree.prototype.clearCookie = function() {595 596 var now = new Date();597 598 var yesterday = new Date(now.getTime() - 1000 * 60 * 60 * 24);599 600 this.setCookie('co'+this.obj, 'cookieValue', yesterday);601 602 this.setCookie('cs'+this.obj, 'cookieValue', yesterday);603 604 };605 606 607 608 // [Cookie] Sets value in a cookie609 610 dTree.prototype.setCookie = function(cookieName, cookieValue, expires, path, domain, secure) {611 612 document.cookie =613 614 escape(cookieName) + '=' + escape(cookieValue)615 616 + (expires ? '; expires=' + expires.toGMTString() : '')617 618 + (path ? '; path=' + path : '')619 620 + (domain ? '; domain=' + domain : '')621 622 + (secure ? '; secure' : '');623 624 };625 626 627 628 // [Cookie] Gets a value from a cookie629 630 dTree.prototype.getCookie = function(cookieName) {631 632 var cookieValue = '';633 634 var posName = document.cookie.indexOf(escape(cookieName) + '=');635 636 if (posName != -1) {637 638 var posValue = posName + (escape(cookieName) + '=').length;639 640 var endPos = document.cookie.indexOf(';', posValue);641 642 if (endPos != -1) cookieValue = unescape(document.cookie.substring(posValue, endPos));643 644 else cookieValue = unescape(document.cookie.substring(posValue));645 646 }647 648 return (cookieValue);649 650 };651 652 653 654 // [Cookie] Returns ids of open nodes as a string655 656 dTree.prototype.updateCookie = function() {657 658 var str = '';659 660 for (var n=0; n<this.aNodes.length; n++) {661 662 if (this.aNodes[n]._io && this.aNodes[n].pid != this.root.id) {663 664 if (str) str += '.';665 666 str += this.aNodes[n].id;667 668 }669 670 }671 672 this.setCookie('co' + this.obj, str);673 674 };675 676 677 678 // [Cookie] Checks if a node id is in a cookie679 680 dTree.prototype.isOpen = function(id) {681 682 var aOpen = this.getCookie('co' + this.obj).split('.');683 684 for (var n=0; n<aOpen.length; n++)685 686 if (aOpen[n] == id) return true;687 688 return false;689 690 };691 692 693 694 // If Push and pop is not implemented by the browser695 696 if (!Array.prototype.push) {697 698 Array.prototype.push = function array_push() {699 700 for(var i=0;i<arguments.length;i++)701 702 this[this.length]=arguments[i];703 704 return this.length;705 706 };707 708 };709 710 if (!Array.prototype.pop) {711 712 Array.prototype.pop = function array_pop() {713 714 lastElement = this[this.length-1];715 716 this.length = Math.max(this.length-1,0);717 718 return lastElement;719 720 };721 722 };723 -
trunk/plugins/Linker/linker.js
r376 r419 68 68 subject: '', 69 69 body: '' 70 } 70 }; 71 71 72 72 if(a && a.tagName.toLowerCase() == 'a') … … 157 157 title:'', 158 158 onclick:'' 159 } 159 }; 160 160 161 161 if(values.type == 'url') … … 254 254 } 255 255 } 256 } 256 }; 257 257 258 258 this._dialog.show(inputs, doOK); -
trunk/plugins/ListType/list-type.js
r317 r419 75 75 editor.hidePanel( editor._ListType ); 76 76 } 77 } ;77 } 78 78 79 79 HTMLArea.Config.prototype.ListType = -
trunk/plugins/NoteServer/note-server.js
r376 r419 27 27 self.buttonPress(editor); 28 28 } 29 }) 29 }); 30 30 cfg.addToolbarElement("insertscore", "insertimage", 1); 31 } ;31 } 32 32 33 33 NoteServer._pluginInfo = { … … 186 186 //var html = linktext.link(stringmidi); 187 187 //editor.insertHTML(html); 188 } ;188 } 189 189 190 190 // this routine includes the applet-definition … … 206 206 editor.focusEditor(); 207 207 editor.insertHTML(string); 208 } ;208 } -
trunk/plugins/NoteServer/popups/codenote.html
r310 r419 30 30 document.getElementById("f_code").focus(); 31 31 // document.getElementById("f_code").select(); 32 } ;32 } 33 33 34 34 function onOK() { … … 60 60 __dlg_close(param); 61 61 return false; 62 } ;62 } 63 63 64 64 function onCancel() { … … 66 66 return false; 67 67 68 } ;68 } 69 69 70 70 … … 99 99 100 100 return false; 101 } ;101 } 102 102 103 103 </script> -
trunk/plugins/PasteText/paste-text.js
r405 r419 17 17 self.buttonPress(editor); 18 18 } 19 }) 19 }); 20 20 21 21 cfg.addToolbarElement("pastetext", ["paste", "killword"], 1); 22 22 23 } ;23 } 24 24 25 25 PasteText._pluginInfo = { -
trunk/plugins/QuickTag/popups/quicktag.html
r239 r419 34 34 document.getElementById('bt_colors').style.display = 'none'; 35 35 document.body.onkeypress = __dlg_key_press; 36 } ;36 } 37 37 38 38 function onCancel() { 39 39 __dlg_close(null); 40 40 return false; 41 } ;41 } 42 42 43 43 function quoteTest(val) { 44 44 var er = /^\w+\s*(\w+=\"[^\"]*\"\s*|\w+=\'[^\']*\'\s*)*$/; 45 45 return er.test(val); 46 } ;46 } 47 47 48 48 function onOK() { … … 72 72 __dlg_close(param); 73 73 return false; 74 } ;74 } 75 75 76 76 function __dlg_key_press(ev) { … … 85 85 } 86 86 return true; 87 } ;87 } 88 88 89 89 function selchange() { … … 150 150 document.getElementById('tagopen').focus(); 151 151 document.getElementById('tagopen').value += toadd; 152 } ;153 } ;152 } 153 } 154 154 155 155 function captureClasses() { … … 194 194 } 195 195 return cont; 196 } ;196 } 197 197 198 198 function choice_dropdown(e) { … … 223 223 224 224 createDropdown(att); 225 } ;225 } 226 226 227 227 function createDropdown(type) { … … 271 271 _sel.appendChild(opt); 272 272 } 273 } ;274 } ;273 } 274 } 275 275 276 276 function colors() { … … 279 279 window.open(colloc, 'colors', "toolbar=no,location=no,directories=no," + 280 280 "status=no,menubar=no,scrollbars=no,resizable=no,width=240,height=182"); 281 } ;281 } 282 282 283 283 // simulation of Dialog._return - select_color.html needs it. -
trunk/plugins/QuickTag/quick-tag.js
r376 r419 20 20 }); 21 21 cfg.addToolbarElement("quickeditor", "htmlmode", 1); 22 } ;22 } 23 23 24 24 QuickTag.prototype.buttonPress = function(editor) { -
trunk/plugins/SpellChecker/spell-check-ui.js
r388 r419 47 47 // anymore. 48 48 return window.opener.HTMLArea.getHTML(frame.contentWindow.document.body, false, editor); 49 } ;49 } 50 50 51 51 function recheckClicked() { … … 54 54 field.value = makeCleanDoc(true); 55 55 field.form.submit(); 56 } ;56 } 57 57 58 58 function saveClicked() { … … 82 82 } 83 83 return false; 84 } ;84 } 85 85 86 86 function cancelClicked() { … … 93 93 } 94 94 return false; 95 } ;95 } 96 96 97 97 function replaceWord(el) { … … 110 110 to_r_list.push([el.innerHTML, replacement]); 111 111 el.innerHTML = replacement; 112 } ;112 } 113 113 114 114 function replaceClicked() { … … 128 128 wrongWords[index].__msh_wordClicked(true); 129 129 return false; 130 } ;130 } 131 131 132 132 function revertClicked() { … … 135 135 currentElement.className = "HA-spellcheck-error HA-spellcheck-current"; 136 136 return false; 137 } ;137 } 138 138 139 139 function replaceAllClicked() { … … 165 165 } 166 166 return false; 167 } ;167 } 168 168 169 169 function ignoreClicked() { … … 171 171 replaceClicked(); 172 172 return false; 173 } ;173 } 174 174 175 175 function ignoreAllClicked() { … … 177 177 replaceAllClicked(); 178 178 return false; 179 } ;179 } 180 180 181 181 function learnClicked() { 182 182 to_p_dict.push(currentElement.__msh_origWord); 183 183 return ignoreAllClicked(); 184 } ;184 } 185 185 186 186 function internationalizeWindow() { … … 197 197 } 198 198 } 199 } ;199 } 200 200 201 201 function initDocument() { … … 255 255 document.getElementById("f_dictionary").value = this.value; 256 256 }; 257 } ;257 } 258 258 259 259 function getAbsolutePos(el) { … … 265 265 } 266 266 return r; 267 } ;267 } 268 268 269 269 function wordClicked(scroll) { … … 338 338 select.style.display = "block"; 339 339 return false; 340 } ;340 } 341 341 342 342 function wordMouseOver() { 343 343 this.className += " HA-spellcheck-hover"; 344 } ;344 } 345 345 346 346 function wordMouseOut() { 347 347 this.className = this.className.replace(/\s*HA-spellcheck-hover\s*/g, " "); 348 } ;348 } 349 349 350 350 function displayInfo() { … … 360 360 } 361 361 return false; 362 } ;362 } 363 363 364 364 function finishedSpellChecking() { … … 443 443 }; 444 444 } 445 } ;445 } -
trunk/plugins/SpellChecker/spell-checker.js
r376 r419 27 27 28 28 cfg.addToolbarElement("SC-spell-check", "htmlmode", 1); 29 } ;29 } 30 30 31 31 SpellChecker._pluginInfo = { -
trunk/plugins/Stylist/stylist.js
r376 r419 504 504 } 505 505 ); 506 } ;506 } 507 507 508 508 Stylist._pluginInfo = -
trunk/plugins/TableOperations/table-operations.js
r413 r419 43 43 // add a new line in the toolbar 44 44 cfg.toolbar.push(toolbar); 45 } ;45 } 46 46 47 47 TableOperations._pluginInfo = { … … 169 169 function selected(val) { 170 170 return val ? " selected" : ""; 171 } ;171 } 172 172 173 173 // dialog contents … … 322 322 function selected(val) { 323 323 return val ? " selected" : ""; 324 } ;324 } 325 325 326 326 // dialog contents … … 392 392 td.innerHTML = mozbr; 393 393 } 394 } ;394 } 395 395 396 396 function splitRow(td) { … … 411 411 editor.forceRedraw(); 412 412 editor.updateToolbar(); 413 } ;413 } 414 414 415 415 function splitCol(td) { … … 426 426 editor.forceRedraw(); 427 427 editor.updateToolbar(); 428 } ;428 } 429 429 430 430 function splitCell(td) { … … 436 436 splitRow(items[index++]); 437 437 } 438 } ;438 } 439 439 440 440 function selectNextNode(el) { … … 453 453 } 454 454 editor.selectNodeContents(node); 455 } ;455 } 456 456 457 457 switch (button_id) { … … 959 959 input.select(); 960 960 } 961 } ;961 } 962 962 select.onchange = function() { setCharVisibility(this.value == "char"); }; 963 963 setCharVisibility(select.value == "char"); … … 1109 1109 } 1110 1110 } 1111 } ;1111 } 1112 1112 select.onchange = function() { setBorderFieldsStatus(this.value == "none"); }; 1113 1113 -
trunk/plugins/Template/popups/template.html
r310 r419 11 11 window.resizeTo(400, 200); 12 12 document.getElementById("cancel").focus(); 13 } ;13 } 14 14 15 15 function onOK(sel) { … … 19 19 __dlg_close(param); 20 20 return false; 21 } ;21 } 22 22 23 23 function onCancel() { 24 24 __dlg_close(null); 25 25 return false; 26 } ;26 } 27 27 </script> 28 28 </head> -
trunk/plugins/Template/template.js
r376 r419 21 21 self.buttonPress(editor); 22 22 } 23 }) 23 }); 24 24 cfg.addToolbarElement("template", "inserthorizontalrule", 1); 25 } ;25 } 26 26 27 27 Template._pluginInfo = { -
trunk/plugins/UnFormat/popups/unformat.html
r243 r419 20 20 __dlg_translate('UnFormat'); 21 21 __dlg_init(); 22 } ;22 } 23 23 24 24 function onOK() { … … 41 41 __dlg_close(param); 42 42 return false; 43 } ;43 } 44 44 45 45 function onCancel() { 46 46 __dlg_close(null); 47 47 return false; 48 } ;48 } 49 49 50 50 </script> -
trunk/plugins/UnFormat/un-format.js
r376 r419 18 18 19 19 cfg.addToolbarElement("unformat", "killword", 1); 20 } ;20 } 21 21 22 22 UnFormat._pluginInfo = { -
trunk/popups/editor_help.html
r352 r419 11 11 __dlg_init(); 12 12 window.resizeTo(400, 480); 13 } ;13 } 14 14 15 15 … … 17 17 __dlg_close(null); 18 18 return false; 19 } ;19 } 20 20 21 21 </script> -
trunk/popups/insert_image.html
r246 r419 14 14 function i18n(str) { 15 15 return (HTMLArea._lc(str, 'HTMLArea')); 16 } ;16 } 17 17 18 18 function Init() { … … 33 33 } 34 34 document.getElementById("f_url").focus(); 35 } ;35 } 36 36 37 37 function onOK() { … … 58 58 __dlg_close(param); 59 59 return false; 60 } ;60 } 61 61 62 62 function onCancel() { 63 63 __dlg_close(null); 64 64 return false; 65 } ;65 } 66 66 67 67 function onPreview() { … … 75 75 window.ipreview.location.replace(url); 76 76 return false; 77 } ;77 } 78 78 </script> 79 79 -
trunk/popups/insert_table.html
r246 r419 14 14 function i18n(str) { 15 15 return (HTMLArea._lc(str, 'HTMLArea')); 16 } ;16 } 17 17 18 18 function Init() { … … 26 26 document.getElementById("f_align").selectedIndex = 0; 27 27 document.getElementById("f_rows").focus(); 28 } ;28 } 29 29 30 30 function onOK() { … … 51 51 __dlg_close(param); 52 52 return false; 53 } ;53 } 54 54 55 55 function onCancel() { 56 56 __dlg_close(null); 57 57 return false; 58 } ;58 } 59 59 60 60 </script> -
trunk/popups/link.html
r239 r419 13 13 function i18n(str) { 14 14 return (HTMLArea._lc(str, 'HTMLArea')); 15 } ;15 } 16 16 17 17 function onTargetChanged() { … … 22 22 f.focus(); 23 23 } else f.style.visibility = "hidden"; 24 } ;24 } 25 25 26 26 function Init() { … … 64 64 document.getElementById("f_href").focus(); 65 65 document.getElementById("f_href").select(); 66 } ;66 } 67 67 68 68 function onOK() { … … 92 92 __dlg_close(param); 93 93 return false; 94 } ;94 } 95 95 96 96 function onCancel() { 97 97 __dlg_close(null); 98 98 return false; 99 } ;99 } 100 100 101 101 </script> -
trunk/popups/popup.js
r239 r419 21 21 } 22 22 return r; 23 } ;23 } 24 24 25 25 function comboSelectValue(c, val) { … … 30 30 } 31 31 c.value = val; 32 } ;32 } 33 33 34 34 function __dlg_onclose() { 35 35 opener.Dialog._return(null); 36 } ;36 } 37 37 38 38 function __dlg_init(bottom) { … … 83 83 } 84 84 HTMLArea.addDom0Event(document.body, 'keypress', __dlg_close_on_esc); 85 } ;85 } 86 86 87 87 function __dlg_translate(context) { … … 104 104 } 105 105 document.title = HTMLArea._lc(document.title, context); 106 } ;106 } 107 107 108 108 // closes the dialog and passes the return info upper. … … 110 110 opener.Dialog._return(val); 111 111 window.close(); 112 } ;112 } 113 113 114 114 function __dlg_close_on_esc(ev) { … … 119 119 } 120 120 return true; 121 } ;121 } -
trunk/popupwin.js
r177 r419 55 55 initFunction(self); 56 56 dlg.focus(); 57 } ;57 } 58 58 init2(); 59 } ;59 } 60 60 61 61 PopupWin.prototype.callHandler = function() {
