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/HtmlEntities/html-entities.js

    r743 r999  
    3535{ 
    3636        Encoding     : 'iso-8859-1', 
    37         EntitiesFile : _editor_url + "plugins/HtmlEntities/Entities.js" 
     37        EntitiesFile : Xinha.getPluginDir("HtmlEntities") + "/Entities.js" 
    3838} 
    3939HtmlEntities.prototype.onGenerate = function() { 
    4040    var e = this.editor; 
    41     var url = (e.config.HtmlEntities.Encoding) ?  _editor_url + "plugins/HtmlEntities/"+e.config.HtmlEntities.Encoding+".js" : e.config.HtmlEntities.EntitiesFile; 
     41    var url = (e.config.HtmlEntities.Encoding) ?  Xinha.getPluginDir("HtmlEntities") + "/"+e.config.HtmlEntities.Encoding+".js" : e.config.HtmlEntities.EntitiesFile; 
    4242    var callback = function (getback) { 
    4343        var specialReplacements = e.config.specialReplacements; 
Note: See TracChangeset for help on using the changeset viewer.