Changeset 774
- Timestamp:
- 03/13/07 12:03:09 (6 years ago)
- Location:
- branches/ray
- Files:
-
- 4 modified
-
examples/testbed.html (modified) (2 diffs)
-
modules/Dialogs/inline-dialog.js (modified) (6 diffs)
-
plugins/Linker/linker.js (modified) (2 diffs)
-
plugins/SmartReplace/smart-replace.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/ray/examples/testbed.html
r762 r774 54 54 xinha_plugins = xinha_plugins ? xinha_plugins : 55 55 [ 56 'CharacterMap', 'SpellChecker', 'SmartReplace','PasteText','SuperClean' 57 //'Linker'//,'GetHtml' 56 //'CharacterMap', 57 //'SpellChecker', 58 //'SmartReplace'//, 59 //'PasteText'//,'SuperClean', 60 'Linker'//,'GetHtml' 58 61 ]; 59 62 // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING :) … … 89 92 xinha_config.height = 300; 90 93 xinha_config.fullPage = false; 91 xinha_config.CharacterMap.mode = 'panel';94 // xinha_config.CharacterMap.mode = 'panel'; 92 95 xinha_config.toolbar = 93 96 [ 94 ["popupeditor"], 95 ["separator","formatblock","fontname","fontsize","bold","italic","underline","strikethrough"], 96 ["separator","forecolor","hilitecolor","textindicator"], 97 ["separator","subscript","superscript"], 98 ["linebreak","separator","justifyleft","justifycenter","justifyright","justifyfull"], 99 ["separator","insertorderedlist","insertunorderedlist","outdent","indent"], 100 ["separator","inserthorizontalrule","createlink","insertimage","inserttable"], 101 ["linebreak","separator","undo","redo","selectall","print"], (Xinha.is_gecko ? [] : ["cut","copy","paste","overwrite","saveas"]), 102 ["separator","killword","clearfonts","removeformat","toggleborders","splitblock","lefttoright", "righttoleft"], 103 ["separator","htmlmode","showhelp","about"] 97 ["htmlmode","formatblock"] 104 98 ]; 105 99 /* -
branches/ray/modules/Dialogs/inline-dialog.js
r762 r774 58 58 document.body.appendChild(backG); 59 59 Xinha.Dialog.background[this.layer].push(backG); 60 60 61 61 backG = document.createElement("div"); 62 62 with (backG.style) … … 71 71 document.body.appendChild(backG); 72 72 Xinha.Dialog.background[this.layer].push(backG); 73 backG = null; 74 Xinha.freeLater(Xinha.Dialog.background[this.layer]); 73 75 } 74 76 var rootElem = document.createElement('div'); … … 157 159 but.onmouseup = function() { this.className = "closeButton"; dialog.hide(); return false;}; 158 160 titleBar.appendChild(but); 159 161 160 162 var butX = document.createElement('span'); 163 butX.className = 'innerX'; 161 164 butX.style.position = 'relative'; 162 165 butX.style.top = '-3px'; … … 164 167 butX.appendChild(document.createTextNode('\u00D7')); 165 168 but.appendChild(butX); 166 169 butX = null; 170 but = null; 167 171 var icon = document.createElement('img'); 172 icon.className = 'icon'; 168 173 icon.src = _editor_url + 'images/xinha-small-icon.gif'; 169 174 icon.style.position = 'absolute'; … … 172 177 titleBar.style.paddingLeft = '30px'; 173 178 titleBar.appendChild(icon); 174 179 icon = null; 180 175 181 var all = rootElem.getElementsByTagName("*"); 176 182 … … 199 205 resizeHandle.onmousedown = function(ev) { dialog._resizeStart(ev); }; 200 206 rootElem.appendChild(resizeHandle); 207 resizeHandle = null; 201 208 this.rootElem = rootElem; 202 209 // for caching size & position after dragging & resizing 203 210 this.size = {}; 211 titleBar = null; 212 rootElem = null; 213 Xinha.freeLater(this,'rootElem'); 204 214 }; 205 215 -
branches/ray/plugins/Linker/linker.js
r762 r774 394 394 ddTree.style.backgroundColor = 'white'; 395 395 this.ddTree = ddTree; 396 396 397 this.dTree._linker_premade = this.dTree.toString(); 397 398 … … 415 416 if (h<0) h = 0; 416 417 //options.style.height = 417 ddTree.style.height = h + 'px';418 ddTree.style.width = w + 'px';418 lDialog.ddTree.style.height = h + 'px'; 419 lDialog.ddTree.style.width = w + 'px'; 419 420 } 420 421 this.ready = true; 422 ddTree = null; 423 Xinha.freeLater(lDialog, 'ddTree'); 424 options = null; 421 425 }; 422 426 -
branches/ray/plugins/SmartReplace/smart-replace.js
r762 r774 303 303 // Now we have everything we need, so we can build the dialog. 304 304 this.dialog = new Xinha.Dialog(editor, this.html, 'SmartReplace',{width:300}); 305 306 305 this.ready = true; 307 306 };
