Changeset 677 for trunk/plugins/Linker


Ignore:
Timestamp:
01/19/07 22:24:36 (13 years ago)
Author:
ray
Message:

set svn:keywords property for the new files & all plugins

Location:
trunk/plugins/Linker
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/Linker/lang/de.js

    • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
  • trunk/plugins/Linker/lang/fr.js

    • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
  • trunk/plugins/Linker/lang/nb.js

    • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
  • trunk/plugins/Linker/lang/pl.js

    • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
  • trunk/plugins/Linker/linker.js

    r635 r677  
    1212}; 
    1313 
    14 HTMLArea.loadStyle('dTree/dtree.css', 'Linker'); 
    15  
    16 HTMLArea.Config.prototype.Linker = 
     14Xinha.loadStyle('dTree/dtree.css', 'Linker'); 
     15 
     16Xinha.Config.prototype.Linker = 
    1717{ 
    1818  'backend' : _editor_url + 'plugins/Linker/scan.php', 
     
    4747Linker.prototype._lc = function(string) 
    4848{ 
    49   return HTMLArea._lc(string, 'Linker'); 
     49  return Xinha._lc(string, 'Linker'); 
    5050}; 
    5151 
    5252Linker.prototype._createLink = function(a) 
    5353{ 
    54   if(!a && this.editor._selectionEmpty(this.editor._getSelection())) 
     54  if(!a && this.editor._selectionEmpty(this.editor.getSelection())) 
    5555  {        
    5656    alert(this._lc("You must select some text before making a new link.")); 
     
    229229        // reason it sets the innerHTML of the link to be the  
    230230        // href of the link.  Stupid IE. 
    231         if(HTMLArea.is_ie) 
     231        if(Xinha.is_ie) 
    232232        { 
    233233          if(/mailto:([^?<>]*)(\?[^<]*)?$/i.test(a.innerHTML)) 
     
    243243 
    244244      // Insert a link, we let the browser do this, we figure it knows best 
    245       var tmp = HTMLArea.uniq('http://www.example.com/Link'); 
     245      var tmp = Xinha.uniq('http://www.example.com/Link'); 
    246246      linker.editor._doc.execCommand('createlink', false, tmp); 
    247247 
     
    272272Linker.prototype._getSelectedAnchor = function() 
    273273{ 
    274   var sel  = this.editor._getSelection(); 
    275   var rng  = this.editor._createRange(sel); 
    276   var a    = this.editor._activeElement(sel); 
     274  var sel  = this.editor.getSelection(); 
     275  var rng  = this.editor.createRange(sel); 
     276  var a    = this.editor.activeElement(sel); 
    277277  if(a != null && a.tagName.toLowerCase() == 'a') 
    278278  { 
     
    326326  if(typeof dTree == 'undefined') 
    327327  { 
    328     HTMLArea._loadback(_editor_url + 'plugins/Linker/dTree/dtree.js', 
     328    Xinha._loadback(_editor_url + 'plugins/Linker/dTree/dtree.js', 
    329329                       function() {lDialog._prepareDialog(); } 
    330330                      ); 
     
    337337    { 
    338338        //get files from backend 
    339         HTMLArea._postback(linker.lConfig.backend, 
     339        Xinha._postback(linker.lConfig.backend, 
    340340                          linker.lConfig.backend_data, 
    341341                          function(txt) { 
    342342                            try { 
    343                                 eval('var f = '+txt); 
    344                                 lDialog.files = f; 
     343                                lDialog.files = eval(txt); 
    345344                            } catch(Error) { 
    346345                                lDialog.files = [ {url:'',title:Error.toString()} ]; 
     
    360359  if(this.html == false) 
    361360  { 
    362     HTMLArea._getback(_editor_url + 'plugins/Linker/dialog.html', function(txt) { lDialog.html = txt; lDialog._prepareDialog(); }); 
     361    Xinha._getback(_editor_url + 'plugins/Linker/dialog.html', function(txt) { lDialog.html = txt; lDialog._prepareDialog(); }); 
    363362    return; 
    364363  } 
     
    366365 
    367366  // Now we have everything we need, so we can build the dialog. 
    368   var dialog = this.dialog = new HTMLArea.Dialog(linker.editor, this.html, 'Linker'); 
    369   var dTreeName = HTMLArea.uniq('dTree_'); 
     367  var dialog = this.dialog = new Xinha.Dialog(linker.editor, this.html, 'Linker'); 
     368  var dTreeName = Xinha.uniq('dTree_'); 
    370369 
    371370  this.dTree = new dTree(dTreeName, _editor_url + 'plugins/Linker/dTree/'); 
Note: See TracChangeset for help on using the changeset viewer.