Ignore:
Timestamp:
06/13/07 18:34:34 (12 years ago)
Author:
wymsy
Message:

Change namespace from HTMLArea to Xinha in all the plugins - ref ticket #916

Location:
trunk/plugins/SpellChecker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/SpellChecker/spell-check-ui.js

    r670 r856  
    1313 
    1414var Xinha    = window.opener.Xinha; 
    15 var HTMLArea = Xinha; 
    1615 
    1716var _editor_url = window.opener._editor_url; 
    1817 
    19 var is_ie = HTMLArea.is_ie; 
     18var is_ie = Xinha.is_ie; 
    2019var editor = SpellChecker.editor; 
    2120var frame = null; 
     
    3130 
    3231function _lc(string) { 
    33   return HTMLArea._lc(string, 'SpellChecker'); 
     32  return Xinha._lc(string, 'SpellChecker'); 
    3433} 
    3534 
     
    7776    } 
    7877    // var win = window; 
    79     window.opener.HTMLArea._postback(_editor_url + '/plugins/SpellChecker/spell-check-savedicts.php', data); 
     78    window.opener.Xinha._postback(_editor_url + '/plugins/SpellChecker/spell-check-savedicts.php', data); 
    8079    window.close(); 
    8180  } 
     
    207206  frame = document.getElementById("i_framecontent"); 
    208207  var field = document.getElementById("f_content"); 
    209   field.value = HTMLArea.getHTML(editor._doc.body, false, editor); 
     208  field.value = Xinha.getHTML(editor._doc.body, false, editor); 
    210209  var dict = document.getElementById("f_dictionary"); 
    211210  if(typeof editor.config.SpellChecker.defaultDictionary != "undefined" 
     
    380379  suggested_words = frame.contentWindow.suggested_words; 
    381380 
    382   document.getElementById("status").innerHTML = "HTMLArea Spell Checker (<a href='readme-tech.html' target='_blank' title='Technical information'>info</a>)"; 
     381  document.getElementById("status").innerHTML = "Xinha Spell Checker (<a href='readme-tech.html' target='_blank' title='Technical information'>info</a>)"; 
    383382  var doc = frame.contentWindow.document; 
    384383        var spans = doc.getElementsByTagName("span"); 
     
    392391      el.onclick = function(ev) { 
    393392        ev || (ev = window.event); 
    394         ev && HTMLArea._stopEvent(ev); 
     393        ev && Xinha._stopEvent(ev); 
    395394        return this.__msh_wordClicked(false); 
    396395      }; 
  • trunk/plugins/SpellChecker/spell-checker.js

    r498 r856  
    99// $Id$ 
    1010 
    11 HTMLArea.Config.prototype.SpellChecker = { 'backend': 'php', 'personalFilesDir' : '', 'defaultDictionary' : 'en_GB', 'utf8_to_entities' : true }; 
     11Xinha.Config.prototype.SpellChecker = { 'backend': 'php', 'personalFilesDir' : '', 'defaultDictionary' : 'en_GB', 'utf8_to_entities' : true }; 
    1212 
    1313function SpellChecker(editor) { 
     
    4141 
    4242SpellChecker.prototype._lc = function(string) { 
    43     return HTMLArea._lc(string, 'SpellChecker'); 
     43    return Xinha._lc(string, 'SpellChecker'); 
    4444}; 
    4545 
     
    5656    var uiurl = _editor_url + "plugins/SpellChecker/spell-check-ui.html"; 
    5757    var win; 
    58     if (HTMLArea.is_ie) { 
     58    if (Xinha.is_ie) { 
    5959      win = window.open(uiurl, "SC_spell_checker", 
    6060            "toolbar=no,location=no,directories=no,status=no,menubar=no," + 
Note: See TracChangeset for help on using the changeset viewer.