Ignore:
Timestamp:
05/01/08 16:21:20 (11 years ago)
Author:
ray
Message:

#1195 Allow to specify an external url to load a plugin from

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/SmartReplace/smart-replace.js

    r990 r999  
    1515                id       : "smartreplace", 
    1616                tooltip  : this._lc("SmartReplace"), 
    17                 image    : _editor_url+"plugins/SmartReplace/img/smartquotes.gif", 
     17                image    : Xinha.getPluginDir('SmartReplace')+"/img/smartquotes.gif", 
    1818                textMode : false, 
    1919                action   : function(e, objname, obj) { self.buttonPress(null, obj); } 
     
    276276        } 
    277277        var init = this; 
    278         Dialog(_editor_url+'plugins/SmartReplace/popups/dialog.html', action, init); 
     278        Dialog(Xinha.getPluginDir('SmartReplace')+'/popups/dialog.html', action, init); 
    279279} 
    280280 
     
    336336  if(this.html == false) 
    337337  { 
    338         Xinha._getback(_editor_url + 'plugins/SmartReplace/dialog.html', function(getback) { pluginDialogObject.html = getback; pluginDialogObject._prepareDialog(); }); 
     338        Xinha._getback(Xinha.getPluginDir('SmartReplace') + '/dialog.html', function(getback) { pluginDialogObject.html = getback; pluginDialogObject._prepareDialog(); }); 
    339339        return; 
    340340  } 
Note: See TracChangeset for help on using the changeset viewer.