Changeset 244


Ignore:
Timestamp:
06/24/05 11:25:34 (14 years ago)
Author:
gocher
Message:

CharCounter? now displayed at the end of the statusbar not outside the editor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/CharCounter/char-counter.js

    r149 r244  
    2626CharCounter.prototype.onGenerate = function() { 
    2727    var self = this; 
    28     var charCount = document.createElement("div"); 
     28    var charCount = document.createElement("span"); 
     29    charCount.style.padding = "2px 5px"; 
     30     if(HTMLArea.is_ie) { 
     31      charCount.style.styleFloat = "right"; 
     32    } else { 
     33      charCount.style.cssFloat = "right"; 
     34    } 
     35    var brk = document.createElement('div'); 
     36    brk.style.height = 
     37    brk.style.width = 
     38    brk.style.lineHeight = 
     39    brk.style.fontSize = '1px'; 
     40    brk.style.clear = 'both'; 
     41    if(HTMLArea.is_ie) { 
     42      this.editor._statusBarTree.style.styleFloat = "left"; 
     43    } else { 
     44      this.editor._statusBarTree.style.cssFloat = "left"; 
     45    } 
    2946    this.editor._statusBar.appendChild(charCount); 
     47    this.editor._statusBar.appendChild(brk); 
    3048    this.charCount = charCount; 
    3149}; 
Note: See TracChangeset for help on using the changeset viewer.