Changeset 149
- Timestamp:
- 05/11/05 08:19:21 (8 years ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
htmlarea.js (modified) (3 diffs)
-
inline-dialog.js (modified) (6 diffs)
-
plugins/CharCounter/char-counter.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htmlarea.js
r148 r149 1025 1025 this._statusBarTree = div; 1026 1026 this._statusBar.appendChild(div); 1027 1028 div = document.createElement("span"); 1029 div.innerHTML = HTMLArea._lc("You are in TEXT MODE. Use the [<>] button to switch back to WYSIWYG."); 1030 div.style.display = "none"; 1031 this._statusBarTextMode = div; 1032 this._statusBar.appendChild(div); 1033 1027 1034 if (!this.config.statusBar) { 1028 1035 // disable it... … … 1675 1682 if (this.config.statusBar) 1676 1683 { 1677 this._statusBar.innerHTML = HTMLArea._lc("You are in TEXT MODE. Use the [<>] button to switch back to WYSIWYG."); 1684 this._statusBarTree.style.display = "none"; 1685 this._statusBarTextMode.style.display = ""; 1678 1686 } 1679 1687 … … 1699 1707 if (this.config.statusBar) 1700 1708 { 1701 this._statusBar .innerHTML = '';1702 this._statusBar .appendChild(this._statusBarTree);1709 this._statusBarTree.style.display = ""; 1710 this._statusBarTextMode.style.display = "none"; 1703 1711 } 1704 1712 -
trunk/inline-dialog.js
r73 r149 9 9 this.rootElem = document.createElement('div'); 10 10 this.rootElem.className = 'dialog'; 11 this.rootElem.style.position = ' relative';11 this.rootElem.style.position = 'absolute'; 12 12 this.rootElem.style.display = 'none'; 13 13 14 14 this.width = parseInt(this.rootElem.style.width = this.editor._iframe.style.width); 15 this.height = parseInt(this.rootElem.style.height = this.editor._iframe.style.height);16 15 this.height = this.rootElem.style.height = (parseInt(this.editor._iframe.style.height)+this.editor._statusBar.offsetHeight-2)+'px'; 16 17 17 var dialog = this; 18 18 if(typeof localizer == 'function') … … 67 67 { 68 68 dialog.width = parseInt(dialog.rootElem.style.width = args.editorWidth + 'px'); 69 dialog.height = parseInt(dialog.rootElem.style.height = args.editorHeight + 'px');69 dialog.height = dialog.rootElem.style.height = (args.editorHeight+dialog.editor._statusBar.offsetHeight-2)+'px'; 70 70 dialog.onresize(); 71 71 } … … 94 94 this.editor._textArea.style.display = 'none'; 95 95 this.editor._iframe.style.visibility = 'hidden'; 96 if (this.editor.config.statusBar)97 {98 this.editor._statusBar.innerHTML = ' ';99 }100 96 this.rootElem.style.display = ''; 101 97 } … … 107 103 this.editor._iframe.style.visibility = this._restoreTo[1]; 108 104 this.editor.showPanels(this._restoreTo[2]); 109 if (this.editor.config.statusBar) 110 { 111 this.editor._statusBar.innerHTML = ''; 112 this.editor._statusBar.appendChild(this.editor._statusBarTree); 113 } 105 114 106 // Restore the selection 115 107 if(HTMLArea.is_ie) … … 117 109 this._lastRange.select(); 118 110 } 111 this.editor.updateToolbar(); 119 112 return this.getValues(); 120 113 } … … 296 289 if(i.checked) 297 290 { 298 if(v .push)291 if(v && v.push) 299 292 { 300 293 v.push(i.value); -
trunk/plugins/CharCounter/char-counter.js
r131 r149 35 35 } 36 36 37 CharCounter.prototype.onMode = function (mode) 38 { 39 //Hide Chars in statusbar when switching into textmode 40 switch (mode) 41 { 42 case "textmode": 43 this.charCount.style.display = "none"; 44 break; 45 case "wysiwyg": 46 this.charCount.style.display = ""; 47 break; 48 default: 49 alert("Mode <" + mode + "> not defined!"); 50 return false; 51 } 52 } 53 37 54 CharCounter.prototype.onKeyPress = function(ev) { 38 55 var cnt = this.updateCharCount();
