Changeset 847


Ignore:
Timestamp:
06/03/07 12:45:36 (7 years ago)
Author:
gocher
Message:

change htmlarea to Xinha in plugin CharCounter

File:
1 edited

Legend:

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

    r810 r847  
    1 // Charcounter for HTMLArea-3.0 
     1// Charcounter for Xinha 
    22// (c) Udo Schmal & L.N.Schaffrath NeueMedien 
    33// Distributed under the same terms as HTMLArea itself. 
     
    1212} 
    1313 
    14 HTMLArea.Config.prototype.CharCounter = 
     14Xinha.Config.prototype.CharCounter = 
    1515{ 
    1616  'showChar': true, // show the characters count, 
     
    3333 
    3434CharCounter.prototype._lc = function(string) { 
    35     return HTMLArea._lc(string, "CharCounter"); 
     35  return Xinha._lc(string, "CharCounter"); 
    3636}; 
    3737 
     
    4242    var charCount = document.createElement("span"); 
    4343    charCount.style.padding = "2px 5px"; 
    44     if(HTMLArea.is_ie) { 
     44    if(Xinha.is_ie) { 
    4545      charCount.style.styleFloat = "right"; 
    4646    } else { 
     
    5353    brk.style.fontSize = '1px'; 
    5454    brk.style.clear = 'both'; 
    55     if(HTMLArea.is_ie) { 
     55    if(Xinha.is_ie) { 
    5656      this.editor._statusBarTree.style.styleFloat = "left"; 
    5757    } else { 
     
    6969      var contents = this.editor.getHTML(); 
    7070      if (contents.length >= this.editor.config.CharCounter.maxHTML) { 
    71         HTMLArea._stopEvent(ev); 
     71        Xinha._stopEvent(ev); 
    7272        return true; 
    7373      } 
Note: See TracChangeset for help on using the changeset viewer.