Changeset 999


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

Location:
trunk
Files:
81 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r998 r999  
    2727    --     included in the top 10 lines of the file (see the embedded edit mode) 
    2828    -- 
    29     --  $HeadURL$ 
    30     --  $LastChangedDate$ 
    31     --  $LastChangedRevision$ 
    32     --  $LastChangedBy$ 
     29    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/XinhaCore.js $ 
     30    --  $LastChangedDate:2008-05-01 14:33:36 +0200 (Do, 01 Mai 2008) $ 
     31    --  $LastChangedRevision:998M $ 
     32    --  $LastChangedBy:(local) $ 
    3333    --------------------------------------------------------------------------*/ 
    3434 
     
    3636{ 
    3737  'Release'   : 'Trunk', 
    38   'Head'      : '$HeadURL$'.replace(/^[^:]*: (.*) \$$/, '$1'), 
    39   'Date'      : '$LastChangedDate$'.replace(/^[^:]*: ([0-9-]*) ([0-9:]*) ([+0-9]*) \((.*)\) \$/, '$4 $2 $3'), 
    40   'Revision'  : '$LastChangedRevision$'.replace(/^[^:]*: (.*) \$$/, '$1'), 
    41   'RevisionBy': '$LastChangedBy$'.replace(/^[^:]*: (.*) \$$/, '$1') 
     38  'Head'      : '$HeadURL:http://svn.xinha.webfactional.com/trunk/XinhaCore.js $'.replace(/^[^:]*: (.*) \$$/, '$1'), 
     39  'Date'      : '$LastChangedDate:2008-05-01 14:33:36 +0200 (Do, 01 Mai 2008) $'.replace(/^[^:]*: ([0-9-]*) ([0-9:]*) ([+0-9]*) \((.*)\) \$/, '$4 $2 $3'), 
     40  'Revision'  : '$LastChangedRevision:998M $'.replace(/^[^:]*: (.*) \$$/, '$1'), 
     41  'RevisionBy': '$LastChangedBy:(local) $'.replace(/^[^:]*: (.*) \$$/, '$1') 
    4242}; 
    4343 
     
    208208 
    209209/** Creates a new Xinha object 
    210  * @version $Rev$ $LastChangedDate$ 
     210 * @version $Rev:998M $ $LastChangedDate:2008-05-01 14:33:36 +0200 (Do, 01 Mai 2008) $ 
    211211 * @constructor 
    212212 * @param {String|DomNode}   textarea the textarea to replace; can be either only the id or the DOM object as returned by document.getElementById() 
     
    470470 * This class creates an object that can be passed to the Xinha constructor as a parameter. 
    471471 * Set the object's properties as you need to configure the editor (toolbar etc.) 
    472  * @version $Rev$ $LastChangedDate$ 
     472 * @version $Rev:998M $ $LastChangedDate:2008-05-01 14:33:36 +0200 (Do, 01 Mai 2008) $ 
    473473 * @constructor 
    474474 */ 
     
    20602060  { 
    20612061    url = _editor_url + 'modules/InternetExplorer/InternetExplorer.js'; 
    2062     if ( !Xinha.loadPlugins(["InternetExplorer"], function() { editor.generate(); }, url ) ) 
     2062    if ( !Xinha.loadPlugins([{plugin:"InternetExplorer",url:url}], function() { editor.generate(); } ) ) 
    20632063    {             
    20642064      return false; 
     
    20692069  { 
    20702070    url = _editor_url + 'modules/WebKit/WebKit.js'; 
    2071     if ( !Xinha.loadPlugins(["WebKit"], function() { editor.generate(); }, url ) ) 
     2071    if ( !Xinha.loadPlugins([{plugin:"WebKit",url:url}], function() { editor.generate(); } ) ) 
    20722072    {             
    20732073   
     
    20792079  { 
    20802080    url = _editor_url + 'modules/Opera/Opera.js'; 
    2081     if ( !Xinha.loadPlugins(["Opera"], function() { editor.generate(); }, url ) ) 
     2081    if ( !Xinha.loadPlugins([{plugin:"Opera",url:url}], function() { editor.generate(); } ) ) 
    20822082    {             
    20832083      return false; 
     
    20882088  { 
    20892089    url = _editor_url + 'modules/Gecko/Gecko.js'; 
    2090     if ( !Xinha.loadPlugins(["Gecko"], function() { editor.generate(); }, url ) ) 
     2090    if ( !Xinha.loadPlugins([{plugin:"Gecko",url:url}], function() { editor.generate(); } ) ) 
    20912091    {             
    20922092      return false; 
     
    21062106   
    21072107  url = _editor_url + 'modules/FullScreen/full-screen.js'; 
    2108   if ( !Xinha.loadPlugins(["FullScreen"], function() { editor.generate(); }, url )) 
     2108  if ( !Xinha.loadPlugins([{plugin:"FullScreen",url:url}], function() { editor.generate(); } )) 
    21092109  { 
    21102110    return false; 
     
    21122112   
    21132113  url = _editor_url + 'modules/ColorPicker/ColorPicker.js'; 
    2114   if ( !Xinha.loadPlugins(["ColorPicker"], function() { editor.generate(); } , url ) ) 
     2114  if ( !Xinha.loadPlugins([{plugin:"ColorPicker",url:url}], function() { editor.generate(); } ) ) 
    21152115  { 
    21162116    return false; 
     
    21302130        case "insertimage": 
    21312131          url = _editor_url + 'modules/InsertImage/insert_image.js'; 
    2132           if ( typeof Xinha.prototype._insertImage == 'undefined' && !Xinha.loadPlugins(["InsertImage"], function() { editor.generate(); } , url ) ) 
     2132          if ( typeof Xinha.prototype._insertImage == 'undefined' && !Xinha.loadPlugins([{plugin:"InsertImage",url:url}], function() { editor.generate(); } ) ) 
    21332133          { 
    21342134            return false; 
     
    21382138        case "createlink": 
    21392139          url = _editor_url + 'modules/CreateLink/link.js'; 
    2140           if ( typeof Linker == 'undefined' && !Xinha.loadPlugins(["CreateLink"], function() { editor.generate(); } , url )) 
     2140          if ( typeof Linker == 'undefined' && !Xinha.loadPlugins([{plugin:"CreateLink",url:url}], function() { editor.generate(); } )) 
    21412141          { 
    21422142            return false; 
     
    21462146        case "inserttable": 
    21472147          url = _editor_url + 'modules/InsertTable/insert_table.js'; 
    2148           if ( !Xinha.loadPlugins(["InsertTable"], function() { editor.generate(); } , url ) ) 
     2148          if ( !Xinha.loadPlugins([{plugin:"InsertTable",url:url}], function() { editor.generate(); } ) ) 
    21492149          { 
    21502150            return false; 
     
    21592159  if ( Xinha.is_gecko &&  editor.config.mozParaHandler != 'built-in' ) 
    21602160  { 
    2161     if (  !Xinha.loadPlugins(["EnterParagraphs"], function() { editor.generate(); }, _editor_url + 'modules/Gecko/paraHandlerBest.js' ) ) 
     2161    if (  !Xinha.loadPlugins([{plugin:"EnterParagraphs",url: _editor_url + 'modules/Gecko/paraHandlerBest.js'}], function() { editor.generate(); } ) ) 
    21622162    { 
    21632163      return false; 
     
    21812181  } 
    21822182   
    2183   if ( !Xinha.loadPlugins(["GetHtmlImplementation"], function() { editor.generate(); } , getHtmlMethodPlugin)) 
     2183  if ( !Xinha.loadPlugins([{plugin:"GetHtmlImplementation",url:getHtmlMethodPlugin}], function() { editor.generate(); })) 
    21842184  { 
    21852185    return false;         
     
    32993299 * @returns {String} path to plugin 
    33003300 */ 
    3301 Xinha.getPluginDir = function(pluginName) 
    3302 { 
    3303   return _editor_url + "plugins/" + pluginName; 
    3304 }; 
     3301Xinha.getPluginDir = function(plugin) 
     3302{ 
     3303  if (Xinha.externalPlugins[plugin]) 
     3304  { 
     3305    return Xinha.externalPlugins[plugin][0]; 
     3306  } 
     3307  else 
     3308  { 
     3309    return _editor_url + "plugins/" + plugin ; 
     3310  } 
     3311} 
    33053312/** Static function that loads the given plugin 
    33063313 * @param {String} pluginName 
     
    33413348Xinha._pluginLoadStatus = {}; 
    33423349 
     3350Xinha.externalPlugins = {}; 
     3351 
    33433352/** Static function that loads the plugins (see xinha_plugins in NewbieGuide) 
    33443353 * @param {Array} plugins 
     
    33513360  if ( !Xinha.isSupportedBrowser ) return; 
    33523361  Xinha.setLoadingMessage (Xinha._lc("Loading plugins")); 
     3362  var m; 
     3363  for (var i=0;i<plugins.length;i++) 
     3364  { 
     3365    if (typeof plugins[i] == 'object') 
     3366    { 
     3367      m = plugins[i].url.match(/(.*)(\/[^\/]*)$/); 
     3368      Xinha.externalPlugins[plugins[i].plugin] = [m[1],m[2]]; 
     3369      plugins[i] = plugins[i].plugin; 
     3370    } 
     3371  } 
     3372   
    33533373  // Rip the ones that are loaded and look for ones that have failed 
    33543374  var retVal = true; 
     
    33583378  { 
    33593379    var p = nuPlugins.pop(); 
    3360         if (p == 'FullScreen' && !url ) continue; //prevent trying to load FullScreen plugin from the plugins folder 
     3380    if (p == 'FullScreen' && !Xinha.externalPlugins['FullScreen'] ) continue; //prevent trying to load FullScreen plugin from the plugins folder 
     3381    
    33613382    if ( typeof Xinha._pluginLoadStatus[p] == 'undefined' ) 
    33623383    { 
     
    33793400            Xinha._pluginLoadStatus[plugin] = 'failed'; 
    33803401          } 
    3381         },url 
     3402        },(Xinha.externalPlugins[p] ? Xinha.externalPlugins[p][0]+Xinha.externalPlugins[p][1] : url) 
    33823403      ); 
    33833404      retVal = false; 
     
    57545775    var plugin = RegExp.$1; 
    57555776    var popup = RegExp.$2; 
    5756     if ( ! ( /\.html$/.test(popup) ) ) 
     5777    if ( ! ( /\.(html?|php)$/.test(popup) ) ) 
    57575778    { 
    57585779      popup += ".html"; 
    57595780    } 
    5760     url = _editor_url + "plugins/" + plugin + "/popups/" + popup; 
     5781    url = Xinha.getPluginDir(plugin) + "/popups/" + popup; 
    57615782  } 
    57625783  else if ( file.match(/^\/.*?/) || file.match(/^https?:\/\//)) 
     
    57705791  return url; 
    57715792}; 
     5793 
     5794 
    57725795 
    57735796/** FIX: Internet Explorer returns an item having the _name_ equal to the given 
     
    63226345    if ( context != 'Xinha') 
    63236346    { 
    6324       url = _editor_url+"plugins/"+context+"/lang/"+_editor_lang+".js"; 
     6347      url = Xinha.getPluginDir(context)+"/lang/"+_editor_lang+".js"; 
    63256348    } 
    63266349    else 
  • trunk/examples/ExtendedDemo.html

    r962 r999  
    44    --  Xinha example frameset. 
    55    -- 
    6     --  $HeadURL$ 
    7     --  $LastChangedDate$ 
    8     --  $LastChangedRevision$ 
    9     --  $LastChangedBy$ 
     6    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/examples/ExtendedDemo.html $ 
     7    --  $LastChangedDate:2008-02-04 01:43:21 +0100 (Mo, 04 Feb 2008) $ 
     8    --  $LastChangedRevision:962 $ 
     9    --  $LastChangedBy:ray $ 
    1010    ---------------------------------------------------------------------------> 
    1111 
  • trunk/examples/Newbie.html

    r962 r999  
    88  <script type="text/javascript"> 
    99    _editor_url  = "../"  // (preferably absolute) URL (including trailing slash) where Xinha is installed 
    10     _editor_lang = "en";      // And the language we need to use in the editor. 
     10    _editor_lang = "de";      // And the language we need to use in the editor. 
    1111    _editor_skin = "silva";   // If you want use skin, add the name here 
    1212  </script> 
  • trunk/examples/XinhaConfig.js

    r962 r999  
    3939   'CharacterMap', 
    4040   'ContextMenu', 
    41    'SmartReplace', 
     41   { plugin: 'SmartReplace',url: '/xff3/xSmartReplace/smart-replace.js' }, 
     42   //'SmartReplace', 
    4243   'Stylist', 
    4344   'Linker', 
    4445   'SuperClean', 
    45    'TableOperations' 
     46   'TableOperations', 
     47   'SetId', 
     48   'FullScreen' 
    4649  ]; 
    4750   
  • trunk/examples/files/custom.css

    r962 r999  
    44    --  @TODO Make this CSS more useful. 
    55    -- 
    6     --  $HeadURL$ 
    7     --  $LastChangedDate$ 
    8     --  $LastChangedRevision$ 
    9     --  $LastChangedBy$ 
     6    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/examples/files/custom.css $ 
     7    --  $LastChangedDate:2008-02-04 01:43:21 +0100 (Mo, 04 Feb 2008) $ 
     8    --  $LastChangedRevision:962 $ 
     9    --  $LastChangedBy:ray $ 
    1010    --------------------------------------------------------------------------*/ 
    1111 
  • trunk/examples/files/dynamic.css

    r962 r999  
    44    --  @TODO Make this CSS more useful. 
    55    -- 
    6     --  $HeadURL$ 
    7     --  $LastChangedDate$ 
    8     --  $LastChangedRevision$ 
    9     --  $LastChangedBy$ 
     6    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/examples/files/dynamic.css $ 
     7    --  $LastChangedDate:2008-02-04 01:43:21 +0100 (Mo, 04 Feb 2008) $ 
     8    --  $LastChangedRevision:962 $ 
     9    --  $LastChangedBy:ray $ 
    1010    --------------------------------------------------------------------------*/ 
    1111 
  • trunk/examples/files/ext_example-body.html

    r962 r999  
    44 
    55  <!-- --------------------------------------------------------------------- 
    6     --  $HeadURL$ 
    7     --  $LastChangedDate$ 
    8     --  $LastChangedRevision$ 
    9     --  $LastChangedBy$ 
     6    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/examples/files/ext_example-body.html $ 
     7    --  $LastChangedDate:2008-02-04 01:43:21 +0100 (Mo, 04 Feb 2008) $ 
     8    --  $LastChangedRevision:962 $ 
     9    --  $LastChangedBy:ray $ 
    1010    ------------------------------------------------------------------------ --> 
    1111 
  • trunk/examples/files/ext_example-menu.php

    r993 r999  
    1111    --  full_example-body.html, and full_example.js. 
    1212    -- 
    13     --  $HeadURL$ 
    14     --  $LastChangedDate$ 
    15     --  $LastChangedRevision$ 
    16     --  $LastChangedBy$ 
     13    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/examples/files/ext_example-menu.php $ 
     14    --  $LastChangedDate:2008-04-12 23:23:17 +0200 (Sa, 12 Apr 2008) $ 
     15    --  $LastChangedRevision:993 $ 
     16    --  $LastChangedBy:ray $ 
    1717    ---------------------------------------------------------------------------> 
    1818 
  • trunk/examples/files/full_example.css

    r962 r999  
    22    --  Xinha example CSS file.  This is ripped from Trac ;) 
    33    -- 
    4     --  $HeadURL$ 
    5     --  $LastChangedDate$ 
    6     --  $LastChangedRevision$ 
    7     --  $LastChangedBy$ 
     4    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/examples/files/full_example.css $ 
     5    --  $LastChangedDate:2008-02-04 01:43:21 +0100 (Mo, 04 Feb 2008) $ 
     6    --  $LastChangedRevision:962 $ 
     7    --  $LastChangedBy:ray $ 
    88    --------------------------------------------------------------------------*/ 
    99 
  • trunk/examples/files/stylist.css

    r962 r999  
    33    --  when the Stylist plugin is included in an auto-generated example. 
    44    -- 
    5     --  $HeadURL$ 
    6     --  $LastChangedDate$ 
    7     --  $LastChangedRevision$ 
    8     --  $LastChangedBy$ 
     5    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/examples/files/stylist.css $ 
     6    --  $LastChangedDate:2008-02-04 01:43:21 +0100 (Mo, 04 Feb 2008) $ 
     7    --  $LastChangedRevision:962 $ 
     8    --  $LastChangedBy:ray $ 
    99    --------------------------------------------------------------------------*/ 
    1010 
  • trunk/examples/testbed.html

    r987 r999  
    1414    --  use of the file as a boilerplate. 
    1515    -- 
    16     --  $HeadURL$ 
    17     --  $LastChangedDate$ 
    18     --  $LastChangedRevision$ 
    19     --  $LastChangedBy$ 
     16    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/examples/testbed.html $ 
     17    --  $LastChangedDate:2008-04-12 14:39:04 +0200 (Sa, 12 Apr 2008) $ 
     18    --  $LastChangedRevision:987 $ 
     19    --  $LastChangedBy:ray $ 
    2020    ---------------------------------------------------------------------------> 
    2121 
  • trunk/htmlarea.js

    r659 r999  
    44    --  htmlarea.js is now XinhaCore.js   
    55    -- 
    6     --  $HeadURL$ 
    7     --  $LastChangedDate$ 
    8     --  $LastChangedRevision$ 
    9     --  $LastChangedBy$ 
     6    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/htmlarea.js $ 
     7    --  $LastChangedDate:2007-01-15 15:28:57 +0100 (Mo, 15 Jan 2007) $ 
     8    --  $LastChangedRevision:659 $ 
     9    --  $LastChangedBy:gogo $ 
    1010    --------------------------------------------------------------------------*/ 
    1111     
  • trunk/modules/CreateLink/link.js

    r990 r999  
    1919    -- 
    2020    -- 
    21     --  $HeadURL$ 
    22     --  $LastChangedDate$ 
    23     --  $LastChangedRevision$ 
    24     --  $LastChangedBy$ 
     21    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/modules/CreateLink/link.js $ 
     22    --  $LastChangedDate:2008-04-12 19:10:04 +0200 (Sa, 12 Apr 2008) $ 
     23    --  $LastChangedRevision:990 $ 
     24    --  $LastChangedBy:ray $ 
    2525    --------------------------------------------------------------------------*/ 
    2626CreateLink._pluginInfo = { 
    2727  name          : "CreateLink", 
    2828  origin        : "Xinha Core", 
    29   version       : "$LastChangedRevision$".replace(/^[^:]*: (.*) \$$/, '$1'), 
     29  version       : "$LastChangedRevision:990 $".replace(/^[^:]*: (.*) \$$/, '$1'), 
    3030  developer     : "The Xinha Core Developer Team", 
    31   developer_url : "$HeadURL$".replace(/^[^:]*: (.*) \$$/, '$1'), 
     31  developer_url : "$HeadURL:http://svn.xinha.webfactional.com/trunk/modules/CreateLink/link.js $".replace(/^[^:]*: (.*) \$$/, '$1'), 
    3232  sponsor       : "", 
    3333  sponsor_url   : "", 
  • trunk/modules/Dialogs/dialog.js

    r978 r999  
    1717    -- 
    1818    -- 
    19     --  $HeadURL$ 
    20     --  $LastChangedDate$ 
    21     --  $LastChangedRevision$ 
    22     --  $LastChangedBy$ 
     19    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/modules/Dialogs/dialog.js $ 
     20    --  $LastChangedDate:2008-03-20 13:09:09 +0100 (Do, 20 Mrz 2008) $ 
     21    --  $LastChangedRevision:978 $ 
     22    --  $LastChangedBy:ray $ 
    2323    --------------------------------------------------------------------------*/ 
    2424 
  • trunk/modules/Dialogs/inline-dialog.js

    r990 r999  
    1818    -- 
    1919    -- 
    20     --  $HeadURL$ 
    21     --  $LastChangedDate$ 
    22     --  $LastChangedRevision$ 
    23     --  $LastChangedBy$ 
     20    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/modules/Dialogs/inline-dialog.js $ 
     21    --  $LastChangedDate:2008-04-12 19:10:04 +0200 (Sa, 12 Apr 2008) $ 
     22    --  $LastChangedRevision:990 $ 
     23    --  $LastChangedBy:ray $ 
    2424    --------------------------------------------------------------------------*/ 
    2525Xinha.Dialog = function(editor, html, localizer) 
  • trunk/modules/Gecko/Gecko.js

    r998 r999  
    2626    --   that way. 
    2727    -- 
    28     --  $HeadURL$ 
    29     --  $LastChangedDate$ 
    30     --  $LastChangedRevision$ 
    31     --  $LastChangedBy$ 
     28    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/modules/Gecko/Gecko.js $ 
     29    --  $LastChangedDate:2008-05-01 14:33:36 +0200 (Do, 01 Mai 2008) $ 
     30    --  $LastChangedRevision:998 $ 
     31    --  $LastChangedBy:ray $ 
    3232    --------------------------------------------------------------------------*/ 
    3333                                                     
     
    3535  name          : "Gecko", 
    3636  origin        : "Xinha Core", 
    37   version       : "$LastChangedRevision$".replace(/^[^:]*: (.*) \$$/, '$1'), 
     37  version       : "$LastChangedRevision:998 $".replace(/^[^:]*: (.*) \$$/, '$1'), 
    3838  developer     : "The Xinha Core Developer Team", 
    39   developer_url : "$HeadURL$".replace(/^[^:]*: (.*) \$$/, '$1'), 
     39  developer_url : "$HeadURL:http://svn.xinha.webfactional.com/trunk/modules/Gecko/Gecko.js $".replace(/^[^:]*: (.*) \$$/, '$1'), 
    4040  sponsor       : "", 
    4141  sponsor_url   : "", 
  • trunk/modules/GetHtml/DOMwalk.js

    r961 r999  
    1616    -- 
    1717    -- 
    18     --  $HeadURL$ 
    19     --  $LastChangedDate$ 
    20     --  $LastChangedRevision$ 
    21     --  $LastChangedBy$ 
     18    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/modules/GetHtml/DOMwalk.js $ 
     19    --  $LastChangedDate:2008-02-02 19:30:42 +0100 (Sa, 02 Feb 2008) $ 
     20    --  $LastChangedRevision:961 $ 
     21    --  $LastChangedBy:ray $ 
    2222    --------------------------------------------------------------------------*/ 
    2323function GetHtmlImplementation(editor) { 
     
    2828  name          : "GetHtmlImplementation DOMwalk", 
    2929  origin        : "Xinha Core", 
    30   version       : "$LastChangedRevision$".replace(/^[^:]*: (.*) \$$/, '$1'), 
     30  version       : "$LastChangedRevision:961 $".replace(/^[^:]*: (.*) \$$/, '$1'), 
    3131  developer     : "The Xinha Core Developer Team", 
    32   developer_url : "$HeadURL$".replace(/^[^:]*: (.*) \$$/, '$1'), 
     32  developer_url : "$HeadURL:http://svn.xinha.webfactional.com/trunk/modules/GetHtml/DOMwalk.js $".replace(/^[^:]*: (.*) \$$/, '$1'), 
    3333  sponsor       : "", 
    3434  sponsor_url   : "", 
  • trunk/modules/InsertImage/insert_image.js

    r992 r999  
    1414    -- 
    1515    -- 
    16     --  $HeadURL$ 
    17     --  $LastChangedDate$ 
    18     --  $LastChangedRevision$ 
    19     --  $LastChangedBy$ 
     16    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/modules/InsertImage/insert_image.js $ 
     17    --  $LastChangedDate:2008-04-12 23:02:13 +0200 (Sa, 12 Apr 2008) $ 
     18    --  $LastChangedRevision:992 $ 
     19    --  $LastChangedBy:ray $ 
    2020    --------------------------------------------------------------------------*/ 
    2121InsertImage._pluginInfo = { 
    2222  name          : "InsertImage", 
    2323  origin        : "Xinha Core", 
    24   version       : "$LastChangedRevision$".replace(/^[^:]*: (.*) \$$/, '$1'), 
     24  version       : "$LastChangedRevision:992 $".replace(/^[^:]*: (.*) \$$/, '$1'), 
    2525  developer     : "The Xinha Core Developer Team", 
    26   developer_url : "$HeadURL$".replace(/^[^:]*: (.*) \$$/, '$1'), 
     26  developer_url : "$HeadURL:http://svn.xinha.webfactional.com/trunk/modules/InsertImage/insert_image.js $".replace(/^[^:]*: (.*) \$$/, '$1'), 
    2727  sponsor       : "", 
    2828  sponsor_url   : "", 
  • trunk/modules/InternetExplorer/InternetExplorer.js

    r980 r999  
    2626    --   namespace that way. 
    2727    -- 
    28     --  $HeadURL$ 
    29     --  $LastChangedDate$ 
    30     --  $LastChangedRevision$ 
    31     --  $LastChangedBy$ 
     28    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/modules/InternetExplorer/InternetExplorer.js $ 
     29    --  $LastChangedDate:2008-03-21 18:16:28 +0100 (Fr, 21 Mrz 2008) $ 
     30    --  $LastChangedRevision:980 $ 
     31    --  $LastChangedBy:ray $ 
    3232    --------------------------------------------------------------------------*/ 
    3333                                                     
     
    3535  name          : "Internet Explorer", 
    3636  origin        : "Xinha Core", 
    37   version       : "$LastChangedRevision$".replace(/^[^:]*: (.*) \$$/, '$1'), 
     37  version       : "$LastChangedRevision:980 $".replace(/^[^:]*: (.*) \$$/, '$1'), 
    3838  developer     : "The Xinha Core Developer Team", 
    39   developer_url : "$HeadURL$".replace(/^[^:]*: (.*) \$$/, '$1'), 
     39  developer_url : "$HeadURL:http://svn.xinha.webfactional.com/trunk/modules/InternetExplorer/InternetExplorer.js $".replace(/^[^:]*: (.*) \$$/, '$1'), 
    4040  sponsor       : "", 
    4141  sponsor_url   : "", 
  • trunk/modules/Opera/Opera.js

    r970 r999  
    2626    --   that way. 
    2727    -- 
    28     --  $HeadURL$ 
    29     --  $LastChangedDate$ 
    30     --  $LastChangedRevision$ 
    31     --  $LastChangedBy$ 
     28    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/modules/Opera/Opera.js $ 
     29    --  $LastChangedDate:2008-02-07 14:11:35 +0100 (Do, 07 Feb 2008) $ 
     30    --  $LastChangedRevision:970 $ 
     31    --  $LastChangedBy:gogo $ 
    3232    --------------------------------------------------------------------------*/ 
    3333                                                     
     
    3535  name          : "Opera", 
    3636  origin        : "Xinha Core", 
    37   version       : "$LastChangedRevision$".replace(/^[^:]*: (.*) \$$/, '$1'), 
     37  version       : "$LastChangedRevision:970 $".replace(/^[^:]*: (.*) \$$/, '$1'), 
    3838  developer     : "The Xinha Core Developer Team", 
    39   developer_url : "$HeadURL$".replace(/^[^:]*: (.*) \$$/, '$1'), 
     39  developer_url : "$HeadURL:http://svn.xinha.webfactional.com/trunk/modules/Opera/Opera.js $".replace(/^[^:]*: (.*) \$$/, '$1'), 
    4040  sponsor       : "Gogo Internet Services Limited", 
    4141  sponsor_url   : "http://www.gogo.co.nz/", 
  • trunk/modules/WebKit/WebKit.js

    r998 r999  
    2525    --   that way. 
    2626    -- 
    27     --  $HeadURL$ 
    28     --  $LastChangedDate$ 
    29     --  $LastChangedRevision$ 
    30     --  $LastChangedBy$ 
     27    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/modules/WebKit/WebKit.js $ 
     28    --  $LastChangedDate:2008-05-01 14:33:36 +0200 (Do, 01 Mai 2008) $ 
     29    --  $LastChangedRevision:998 $ 
     30    --  $LastChangedBy:ray $ 
    3131    --------------------------------------------------------------------------*/ 
    3232                                                     
     
    3434  name          : "WebKit", 
    3535  origin        : "Xinha Core", 
    36   version       : "$LastChangedRevision$".replace(/^[^:]*: (.*) \$$/, '$1'), 
     36  version       : "$LastChangedRevision:998 $".replace(/^[^:]*: (.*) \$$/, '$1'), 
    3737  developer     : "The Xinha Core Developer Team", 
    38   developer_url : "$HeadURL$".replace(/^[^:]*: (.*) \$$/, '$1'), 
     38  developer_url : "$HeadURL:http://svn.xinha.webfactional.com/trunk/modules/WebKit/WebKit.js $".replace(/^[^:]*: (.*) \$$/, '$1'), 
    3939  sponsor       : "", 
    4040  sponsor_url   : "", 
  • trunk/plugins/Abbreviation/abbreviation.js

    r893 r999  
    4141 
    4242Abbreviation.prototype.onGenerate = function() { 
    43   this.editor.addEditorStylesheet(_editor_url + 'plugins/Abbreviation/abbreviation.css'); 
     43  this.editor.addEditorStylesheet(Xinha.getPluginDir('Abbreviation') + '/abbreviation.css'); 
    4444}; 
    4545 
  • trunk/plugins/BackgroundImage/popups/bgimage.html

    r987 r999  
    1111  __dlg_translate("BackgroundImage"); 
    1212  __dlg_init(); 
    13  
    1413} 
    1514 
     
    2019 
    2120function insertbg(image) { 
    22         __dlg_close(window.opener._editor_url + "/plugins/BackgroundImage/backgrounds/" + image); 
     21        __dlg_close(window.opener.Xinha.getPluginDir('BackgroundImage') + "/backgrounds/" + image); 
    2322        return false; 
    2423} 
  • trunk/plugins/CSS/css.js

    r856 r999  
    77// This notice MUST stay intact for use (see license.txt). 
    88// 
    9 // $Id$ 
     9// $Id:css.js 856 2007-06-13 18:34:34Z wymsy $ 
    1010// @TODO This is the default and won't be very useful to others. 
    1111// We should make this better. 
  • trunk/plugins/ContextMenu/context-menu.js

    r988 r999  
    77// This notice MUST stay intact for use (see license.txt). 
    88// 
    9 // $Id$ 
     9// $Id:context-menu.js 988M 2008-04-12 13:46:09Z (local) $ 
    1010 
    1111Xinha.loadStyle("menu.css", "ContextMenu"); 
     
    345345                doc = popup.document; 
    346346                doc.open(); 
    347                 doc.write("<html><head><style type='text/css'>@import url(" + _editor_url + "plugins/ContextMenu/menu.css); html, body { padding: 0px; margin: 0px; overflow: hidden; border: 0px; }</style></head><body unselectable='yes'></body></html>"); 
     347                doc.write("<html><head><style type='text/css'>@import url(" + Xinha.getPluginDir('ContextMenu') + "/menu.css); html, body { padding: 0px; margin: 0px; overflow: hidden; border: 0px; }</style></head><body unselectable='yes'></body></html>"); 
    348348                doc.close(); 
    349349        } 
  • trunk/plugins/DefinitionList/definition-list.js

    r893 r999  
    5050 
    5151DefinitionList.prototype.onGenerate = function() { 
    52   this.editor.addEditorStylesheet(_editor_url + 'plugins/DefinitionList/definition-list.css'); 
     52  this.editor.addEditorStylesheet(Xinha.getPluginDir('DefinitionList') + '/definition-list.css'); 
    5353}; 
    5454 
  • trunk/plugins/Equation/equation.js

    r957 r999  
    5656        if (typeof  AMprocessNode != "function") 
    5757        { 
    58                 Xinha._loadback(_editor_url + "plugins/Equation/ASCIIMathML.js", function () { translate(); }); 
     58                Xinha._loadback(Xinha.getPluginDir('Equation') + "/ASCIIMathML.js", function () { translate(); }); 
    5959        } 
    6060} 
     
    185185                args["editedNode"] = parent; 
    186186        } 
    187         Dialog(_editor_url + "plugins/Equation/popups/dialog.html", function(params) { 
     187        Dialog(Xinha.getPluginDir('Equation') + "/popups/dialog.html", function(params) { 
    188188                                self.insert(params); 
    189189                        }, args); 
  • trunk/plugins/ExtendedFileManager/Classes/ExtendedFileManager.php

    r957 r999  
    1717/** 
    1818 * ExtendedFileManager Class. 
    19  * @author $Author$ 
    20  * @author $Author$ 
    21  * @version $Id$ 
     19 * @author $Author:ray $ 
     20 * @author $Author:ray $ 
     21 * @version $Id:ExtendedFileManager.php 957 2008-02-01 22:44:49Z ray $ 
    2222 */ 
    2323class ExtendedFileManager  
  • trunk/plugins/ExtendedFileManager/assets/dialog.js

    r929 r999  
    1010//   http://dynarch.com/mishoo 
    1111// 
    12 // $Id$ 
     12// $Id:dialog.js 929 2008-01-09 21:10:59Z ray $ 
    1313 
    1414// Though "Dialog" looks like an object, it isn't really an object.  Instead 
  • trunk/plugins/ExtendedFileManager/assets/images.js

    r799 r999  
    308308{ 
    309309    window.parent.document.getElementById('f_preview').src = 
    310     f_url ? window.parent._backend_url + '__function=thumbs&img=' + f_url :window.parent.opener._editor_url+'plugins/ExtendedFileManager/img/1x1_transparent.gif'; 
     310    f_url ? window.parent._backend_url + '__function=thumbs&img=' + f_url :window.parent.opener.Xinha.getPluginDir('ExtendedFileManager')+'/img/1x1_transparent.gif'; 
    311311} 
    312312 
  • trunk/plugins/ExtendedFileManager/assets/manager.js

    r962 r999  
    261261                         
    262262                var img = document.createElement('img'); 
    263                         img.src = window.opener._editor_url+'plugins/ExtendedFileManager/img/edit_paste.gif'; 
     263                        img.src = window.opener.Xinha.getPluginDir('ExtendedFileManager')+'/img/edit_paste.gif'; 
    264264                        img.alt = i18n('Paste'); 
    265265                        a.appendChild(img); 
     
    326326        { 
    327327          // Yup, need to resize 
    328           var resized = Xinha._geturlcontent(window.opener._editor_url + 'plugins/ExtendedFileManager/' + _backend_url + '&__function=resizer&img=' + encodeURIComponent(document.getElementById('f_url').value) + '&width=' + param.f_width + '&height=' + param.f_height); 
     328          var resized = Xinha._geturlcontent(window.opener.Xinha.getPluginDir('ExtendedFileManager') + '/' + _backend_url + '&__function=resizer&img=' + encodeURIComponent(document.getElementById('f_url').value) + '&width=' + param.f_width + '&height=' + param.f_height); 
    329329 
    330330          // alert(resized); 
  • trunk/plugins/ExtendedFileManager/assets/popup.js

    r939 r999  
    1010//   http://dynarch.com/mishoo 
    1111// 
    12 // $Id$ 
     12// $Id:popup.js 939 2008-01-22 21:11:43Z ray $ 
    1313 
    1414function __dlg_onclose() { 
  • trunk/plugins/ExtendedFileManager/extended-file-manager.js

    r937 r999  
    2828            id        : "linkfile", 
    2929            tooltip   : Xinha._lc("Insert File Link",'ExtendedFileManager'), 
    30             image     : _editor_url + 'plugins/ExtendedFileManager/img/ed_linkfile.gif', 
     30            image     : Xinha.getPluginDir('ExtendedFileManager') + '/img/ed_linkfile.gif', 
    3131            textMode  : false, 
    3232            action    : function(editor) { 
     
    6969{ 
    7070  'use_linker': true, 
    71   'backend'    : _editor_url + 'plugins/ExtendedFileManager/backend.php?__plugin=ExtendedFileManager&', 
     71  'backend'    : Xinha.getPluginDir('ExtendedFileManager') + '/backend.php?__plugin=ExtendedFileManager&', 
    7272  'backend_data' : null, 
    7373  // deprecated keys, use passing data through e.g. xinha_pass_to_php_backend() 
  • trunk/plugins/ExtendedFileManager/resizer.php

    r922 r999  
    77 * relative to the base_dir given in config.inc.php 
    88 * This is pretty much just thumbs.php with some mods, I'm too lazy to do it properly 
    9  * @author $Author$ 
    10  * @version $Id$ 
     9 * @author $Author:ray $ 
     10 * @version $Id:resizer.php 922 2007-12-30 14:35:46Z ray $ 
    1111 * @package ImageManager 
    1212 */ 
  • trunk/plugins/Filter/filter.js

    r849 r999  
    4242Filter.prototype.add = function(filterName) { 
    4343  if(eval('typeof ' + filterName) == 'undefined') { 
    44     var filter = _editor_url + "plugins/filter/filters/" + filterName + ".js"; 
     44    var filter = Xinha.getPluginDir('Filter') + "/filters/" + filterName + ".js"; 
    4545    var head = document.getElementsByTagName("head")[0]; 
    4646    var evt = Xinha.is_ie ? "onreadystatechange" : "onload"; 
  • trunk/plugins/FormOperations/form-operations.js

    r715 r999  
    33    --  FormOperations Plugin 
    44    -- 
    5     --  $HeadURL$ 
    6     --  $LastChangedDate$ 
    7     --  $LastChangedRevision$ 
    8     --  $LastChangedBy$ 
     5    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/plugins/FormOperations/form-operations.js $ 
     6    --  $LastChangedDate:2007-02-07 20:12:42 +0100 (Mi, 07 Feb 2007) $ 
     7    --  $LastChangedRevision:715M $ 
     8    --  $LastChangedBy:(local) $ 
    99    --------------------------------------------------------------------------*/ 
    1010 
     
    1616  'multiple_field_format': 'php', 
    1717  'allow_edit_form'      : false, 
    18   'default_form_action'  : _editor_url + 'plugins/FormOperations/formmail.php', 
    19   'default_form_html'    : Xinha._geturlcontent(_editor_url + 'plugins/FormOperations/default_form.html') 
     18  'default_form_action'  : Xinha.getPluginDir('FormOperations') + '/formmail.php', 
     19  'default_form_html'    : Xinha._geturlcontent(Xinha.getPluginDir('FormOperations') + '/default_form.html') 
    2020}; 
    2121 
     
    4242 
    4343 
    44   editor.config.pageStyleSheets.push(_editor_url + 'plugins/FormOperations/iframe.css'); 
     44  editor.config.pageStyleSheets.push(Xinha.getPluginDir('FormOperations') + '/iframe.css'); 
    4545 
    4646  var toolbar = 
     
    188188  { 
    189189 
    190     Xinha._getback(_editor_url + 'plugins/FormOperations/panel.html', 
     190    Xinha._getback(Xinha.getPluginDir('FormOperations') + '/panel.html', 
    191191      function(txt) 
    192192      { 
  • trunk/plugins/Forms/forms.js

    r893 r999  
    7676 
    7777Forms.prototype.onGenerate = function() { 
    78   this.editor.addEditorStylesheet(_editor_url + 'plugins/Forms/forms.css'); 
     78  this.editor.addEditorStylesheet(Xinha.getPluginDir("Forms") + '/forms.css'); 
    7979}; 
    8080 
  • trunk/plugins/FullPage/full-page.js

    r856 r999  
    1111//   http://dynarch.com/mishoo 
    1212// 
    13 // $Id$ 
     13// $Id:full-page.js 856 2007-06-13 18:34:34Z wymsy $ 
    1414 
    1515function FullPage(editor) { 
  • 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; 
  • trunk/plugins/HtmlTidy/html-tidy.js

    r856 r999  
    9393      if(oldhtml=="") break; //don't clean empty text 
    9494      // Ask the server for some nice new html, based on the old... 
    95       Xinha._postback(_editor_url + 'plugins/HtmlTidy/html-tidy-logic.php', {'htisource_name' : oldhtml}, 
     95      Xinha._postback(Xinha.getPluginDir("HtmlTidy") + '/html-tidy-logic.php', {'htisource_name' : oldhtml}, 
    9696                            function(javascriptResponse) { eval(javascriptResponse) }); 
    9797    } 
  • trunk/plugins/ImageManager/Classes/Files.php

    r841 r999  
    22/** 
    33 * File Utilities. 
    4  * @author $Author$ 
    5  * @version $Id$ 
     4 * @author $Author:koto $ 
     5 * @version $Id:Files.php 841 2007-05-27 13:31:51Z koto $ 
    66 * @package ImageManager 
    77 */ 
     
    1515/** 
    1616 * File Utilities 
    17  * @author $Author$ 
    18  * @version $Id$ 
     17 * @author $Author:koto $ 
     18 * @version $Id:Files.php 841 2007-05-27 13:31:51Z koto $ 
    1919 * @package ImageManager 
    2020 * @subpackage files 
  • trunk/plugins/ImageManager/Classes/GD.php

    r938 r999  
    3838// 
    3939// 
    40 // $Id$ 
     40// $Id:GD.php 938 2008-01-22 20:13:47Z ray $ 
    4141// 
    4242// Image Transformation interface using the GD library 
  • trunk/plugins/ImageManager/Classes/IM.php

    r937 r999  
    2626// +----------------------------------------------------------------------+ 
    2727// 
    28 // $Id$ 
     28// $Id:IM.php 937 2008-01-20 23:13:25Z ray $ 
    2929// 
    3030// Image Transformation interface using command line ImageMagick 
  • trunk/plugins/ImageManager/Classes/ImageEditor.php

    r938 r999  
    22/** 
    33 * Image Editor. Editing tools, crop, rotate, scale and save. 
    4  * @author $Author$ 
    5  * @version $Id$ 
     4 * @author $Author:ray $ 
     5 * @version $Id:ImageEditor.php 938 2008-01-22 20:13:47Z ray $ 
    66 * @package ImageManager 
    77 */ 
     
    1111/** 
    1212 * Handles the basic image editing capbabilities. 
    13  * @author $Author$ 
    14  * @version $Id$ 
     13 * @author $Author:ray $ 
     14 * @version $Id:ImageEditor.php 938 2008-01-22 20:13:47Z ray $ 
    1515 * @package ImageManager 
    1616 * @subpackage Editor 
  • trunk/plugins/ImageManager/Classes/ImageManager.php

    r709 r999  
    22/** 
    33 * ImageManager, list images, directories, and thumbnails. 
    4  * @author $Author$ 
    5  * @version $Id$ 
     4 * @author $Author:ray $ 
     5 * @version $Id:ImageManager.php 709 2007-01-30 23:22:04Z ray $ 
    66 * @package ImageManager 
    77 */ 
     
    1515/** 
    1616 * ImageManager Class. 
    17  * @author $Author$ 
    18  * @version $Id$ 
     17 * @author $Author:ray $ 
     18 * @version $Id:ImageManager.php 709 2007-01-30 23:22:04Z ray $ 
    1919 */ 
    2020class ImageManager  
  • trunk/plugins/ImageManager/Classes/NetPBM.php

    r709 r999  
    2525// +----------------------------------------------------------------------+ 
    2626// 
    27 // $Id$ 
     27// $Id:NetPBM.php 709 2007-01-30 23:22:04Z ray $ 
    2828// 
    2929// Image Transformation interface using command line NetPBM 
  • trunk/plugins/ImageManager/Classes/Thumbnail.php

    r709 r999  
    22/** 
    33 * Create thumbnails. 
    4  * @author $Author$ 
    5  * @version $Id$ 
     4 * @author $Author:ray $ 
     5 * @version $Id:Thumbnail.php 709 2007-01-30 23:22:04Z ray $ 
    66 * @package ImageManager 
    77 */ 
     
    1212/** 
    1313 * Thumbnail creation 
    14  * @author $Author$ 
    15  * @version $Id$ 
     14 * @author $Author:ray $ 
     15 * @version $Id:Thumbnail.php 709 2007-01-30 23:22:04Z ray $ 
    1616 * @package ImageManager 
    1717 * @subpackage Images 
  • trunk/plugins/ImageManager/Classes/Transform.php

    r709 r999  
    3232// +----------------------------------------------------------------------+ 
    3333// 
    34 // $Id$ 
     34// $Id:Transform.php 709 2007-01-30 23:22:04Z ray $ 
    3535// 
    3636// Image Transformation interface 
  • trunk/plugins/ImageManager/assets/dialog.js

    r929 r999  
    1010//   http://dynarch.com/mishoo 
    1111// 
    12 // $Id$ 
     12// $Id:dialog.js 929 2008-01-09 21:10:59Z ray $ 
    1313 
    1414// Though "Dialog" looks like an object, it isn't really an object.  Instead 
  • trunk/plugins/ImageManager/assets/editor.js

    r677 r999  
    11/** 
    22 * Functions for the ImageEditor interface, used by editor.php only      
    3  * @author $Author$ 
    4  * @version $Id$ 
     3 * @author $Author:ray $ 
     4 * @version $Id:editor.js 677 2007-01-19 22:24:36Z ray $ 
    55 * @package ImageManager 
    66 */ 
  • trunk/plugins/ImageManager/assets/editorFrame.js

    r677 r999  
    11/** 
    22 * Javascript used by the editorFrame.php, it basically initializes the frame. 
    3  * @author $Author$ 
    4  * @version $Id$ 
     3 * @author $Author:ray $ 
     4 * @version $Id:editorFrame.js 677 2007-01-19 22:24:36Z ray $ 
    55 * @package ImageManager 
    66 */ 
  • trunk/plugins/ImageManager/assets/images.js

    r927 r999  
    11/** 
    22 * Functions for the image listing, used by images.php only      
    3  * @author $Author$ 
    4  * @version $Id$ 
     3 * @author $Author:gogo $ 
     4 * @version $Id:images.js 927 2008-01-08 03:40:02Z gogo $ 
    55 * @package ImageManager 
    66 */ 
  • trunk/plugins/ImageManager/assets/manager.js

    r877 r999  
    11/** 
    22 * Functions for the ImageManager, used by manager.php only      
    3  * @author $Author$ 
    4  * @version $Id$ 
     3 * @author $Author:gogo $ 
     4 * @version $Id:manager.js 877 2007-08-12 15:50:03Z gogo $ 
    55 * @package ImageManager 
    66 */ 
  • trunk/plugins/ImageManager/assets/popup.js

    r856 r999  
    1010//   http://dynarch.com/mishoo 
    1111// 
    12 // $Id$ 
     12// $Id:popup.js 856 2007-06-13 18:34:34Z wymsy $ 
    1313 
    1414// Override the ordinary popup.js translation to add translation for a few other HTML elements. 
  • trunk/plugins/ImageManager/config.inc.php

    r830 r999  
    22/** 
    33 * Image Manager configuration file. 
    4  * @author $Author$ 
    5  * @version $Id$ 
     4 * @author $Author:gogo $ 
     5 * @version $Id:config.inc.php 830 2007-05-09 13:27:34Z gogo $ 
    66 * @package ImageManager 
    77 * 
  • trunk/plugins/ImageManager/editor.php

    r987 r999  
    22/** 
    33 * The PHP Image Editor user interface. 
    4  * @author $Author$ 
    5  * @version $Id$ 
     4 * @author $Author:ray $ 
     5 * @version $Id:editor.php 987 2008-04-12 12:39:04Z ray $ 
    66 * @package ImageManager 
    77 */ 
  • trunk/plugins/ImageManager/editorFrame.php

    r677 r999  
    22/** 
    33 * The frame that contains the image to be edited. 
    4  * @author $Author$ 
    5  * @version $Id$ 
     4 * @author $Author:ray $ 
     5 * @version $Id:editorFrame.php 677 2007-01-19 22:24:36Z ray $ 
    66 * @package ImageManager 
    77 */ 
  • trunk/plugins/ImageManager/image-manager.js

    r856 r999  
    11/** 
    22 * The ImageManager plugin javascript. 
    3  * @author $Author$ 
    4  * @version $Id$ 
     3 * @author $Author:(local) $ 
     4 * @version $Id:image-manager.js 856M 2007-06-13 18:34:34Z (local) $ 
    55 * @package ImageManager 
    66 */ 
     
    6666Xinha.Config.prototype.ImageManager = 
    6767{ 
    68   'backend'    : _editor_url + 'plugins/ImageManager/backend.php?__plugin=ImageManager&', 
     68  'backend'    : Xinha.getPluginDir("ImageManager") + '/backend.php?__plugin=ImageManager&', 
    6969  'backend_data' : null, 
    7070   
  • trunk/plugins/ImageManager/images.php

    r987 r999  
    22/** 
    33 * Show a list of images in a long horizontal table. 
    4  * @author $Author$ 
    5  * @version $Id$ 
     4 * @author $Author:ray $ 
     5 * @version $Id:images.php 987 2008-04-12 12:39:04Z ray $ 
    66 * @package ImageManager 
    77 */ 
  • trunk/plugins/ImageManager/manager.php

    r987 r999  
    22/** 
    33 * The main GUI for the ImageManager. 
    4  * @author $Author$ 
    5  * @version $Id$ 
     4 * @author $Author:ray $ 
     5 * @version $Id:manager.php 987 2008-04-12 12:39:04Z ray $ 
    66 * @package ImageManager 
    77 */ 
  • trunk/plugins/ImageManager/resizer.php

    r922 r999  
    77 * relative to the base_dir given in config.inc.php 
    88 * This is pretty much just thumbs.php with some mods, I'm too lazy to do it properly 
    9  * @author $Author$ 
    10  * @version $Id$ 
     9 * @author $Author:ray $ 
     10 * @version $Id:resizer.php 922 2007-12-30 14:35:46Z ray $ 
    1111 * @package ImageManager 
    1212 */ 
  • trunk/plugins/ImageManager/thumbs.php

    r677 r999  
    44 * Creates thumbnails given by thumbs.php?img=/relative/path/to/image.jpg 
    55 * relative to the base_dir given in config.inc.php 
    6  * @author $Author$ 
    7  * @version $Id$ 
     6 * @author $Author:ray $ 
     7 * @version $Id:thumbs.php 677 2007-01-19 22:24:36Z ray $ 
    88 * @package ImageManager 
    99 */ 
  • trunk/plugins/InsertAnchor/insert-anchor.js

    r981 r999  
    44  var self = this; 
    55   
    6   this.placeholderImg = '<img class="IA_placeholder" src="'+_editor_url+'plugins/InsertAnchor/img/placeholder.gif" />'; 
     6  this.placeholderImg = '<img class="IA_placeholder" src="'+Xinha.getPluginDir("InsertAnchor")+'/img/placeholder.gif" />'; 
    77   
    88  // register the toolbar buttons provided by this plugin 
     
    3636 
    3737InsertAnchor.prototype.onGenerate = function() { 
    38   this.editor.addEditorStylesheet(_editor_url + 'plugins/InsertAnchor/insert-anchor.css'); 
     38  this.editor.addEditorStylesheet(Xinha.getPluginDir("InsertAnchor") + '/insert-anchor.css'); 
    3939   
    4040}; 
  • trunk/plugins/InsertPicture/insert-picture.js

    r686 r999  
    88function InsertPicture(editor) { 
    99  if ( typeof _editor_picturePath !== "string" ) 
    10     _editor_picturePath = _editor_url + "plugins/InsertPicture/demo_pictures/"; 
     10    _editor_picturePath = Xinha.getPluginDir("InsertPicture") + "/demo_pictures/"; 
    1111  InsertPicture.Scripting = "php"; //else "asp" 
    1212  editor.config.URIs.insert_image =  '../plugins/InsertPicture/InsertPicture.' + InsertPicture.Scripting + '?picturepath=' + _editor_picturePath; 
  • trunk/plugins/InsertSmiley/popups/insertsmiley.html

    r987 r999  
    1616  param = window.dialogArguments; 
    1717  editor = param['editor']; 
    18   var smileyList = Xinha._geturlcontent(_editor_url + 'plugins/InsertSmiley/smileys.txt'); 
     18  var smileyList = Xinha._geturlcontent(Xinha.getPluginDir("InsertSmiley") + '/smileys.txt'); 
    1919  smileyList = smileyList.match(/^.+$/mg); 
    2020  var smileyURL = editor.config.InsertSmiley.smileyURL; 
  • trunk/plugins/InsertSnippet/insert-snippet.js

    r893 r999  
    6060 
    6161InsertSnippet.prototype.onGenerate = function() { 
    62   this.editor.addEditorStylesheet(_editor_url + 'plugins/InsertSnippet/InsertSnippet.css'); 
     62  this.editor.addEditorStylesheet(Xinha.getPluginDir("InsertSnippet") + '/InsertSnippet.css'); 
    6363}; 
    6464 
    6565Xinha.Config.prototype.InsertSnippet = 
    6666{ 
    67   'snippets' : _editor_url+"plugins/InsertSnippet/demosnippets.js", // purely demo purposes, you should change this 
     67  'snippets' : Xinha.getPluginDir("InsertSnippet")+"/demosnippets.js", // purely demo purposes, you should change this 
    6868  'css' : ['../InsertSnippet.css'], //deprecated, CSS is now pulled from xinha_config 
    6969  'showInsertVariable': false, 
  • trunk/plugins/LangMarks/lang-marks.js

    r991 r999  
    5151 
    5252LangMarks.prototype.onGenerate = function() { 
    53          this.editor.addEditorStylesheet(_editor_url + 'plugins/LangMarks/lang-marks.css'); 
     53         this.editor.addEditorStylesheet(Xinha.getPluginDir("LangMarks") + '/lang-marks.css'); 
    5454}; 
    5555 
  • trunk/plugins/Linker/linker.js

    r997 r999  
    1717{ 
    1818  'treeCaption' : document.location.host, 
    19   'backend' : _editor_url + 'plugins/Linker/scan.php', 
     19  'backend' : Xinha.getPluginDir("Linker") + '/scan.php', 
    2020  'backend_data' : null, 
    2121  'files' : null 
     
    327327  if(typeof dTree == 'undefined') 
    328328  { 
    329     Xinha._loadback(_editor_url + 'plugins/Linker/dTree/dtree.js', 
     329    Xinha._loadback(Xinha.getPluginDir("Linker") + '/dTree/dtree.js', 
    330330                       function() {lDialog._prepareDialog(); } 
    331331                      ); 
     
    360360  if(this.html == false) 
    361361  { 
    362     Xinha._getback(_editor_url + 'plugins/Linker/dialog.html', function(txt) { lDialog.html = txt; lDialog._prepareDialog(); }); 
     362    Xinha._getback(Xinha.getPluginDir("Linker") + '/dialog.html', function(txt) { lDialog.html = txt; lDialog._prepareDialog(); }); 
    363363    return; 
    364364  } 
     
    369369  var dTreeName = Xinha.uniq('dTree_'); 
    370370 
    371   this.dTree = new dTree(dTreeName, _editor_url + 'plugins/Linker/dTree/'); 
     371  this.dTree = new dTree(dTreeName, Xinha.getPluginDir("Linker") + '/dTree/'); 
    372372  eval(dTreeName + ' = this.dTree'); 
    373373 
  • trunk/plugins/PasteText/paste-text.js

    r718 r999  
    7272                } 
    7373        } 
    74         Dialog( _editor_url+ "plugins/PasteText/popups/paste_text.html", action, outparam); 
     74        Dialog( Xinha.getPluginDir("PasteText")+ "/popups/paste_text.html", action, outparam); 
    7575}; 
  • trunk/plugins/PreserveScripts/preserve-scripts.js

    r916 r999  
    3838                        { 
    3939                                s.storage['PreserveScripts_'+i] = m; 
    40                                 var r = '<img title="PHP" id="PreserveScripts_'+i+'" src="'+_editor_url+'plugins/PreserveScripts/php.png" />'; 
     40                                var r = '<img title="PHP" id="PreserveScripts_'+i+'" src="'+Xinha.getPluginDir("PreserveScripts")+'/php.png" />'; 
    4141                                i++; 
    4242                                return r; 
     
    5353                        { 
    5454                                s.storage['PreserveScripts_'+i] = m; 
    55                                 var r = '<img title="JavaScript" id="PreserveScripts_'+i+'" src="' + _editor_url + 'plugins/PreserveScripts/js.png" />'; 
     55                                var r = '<img title="JavaScript" id="PreserveScripts_'+i+'" src="' + Xinha.getPluginDir("PreserveScripts") + '/js.png" />'; 
    5656                                i++; 
    5757                                return r; 
  • trunk/plugins/SaveSubmit/save-submit.js

    r943 r999  
    1414        this.textarea = this.editor._textArea; 
    1515 
    16         this.image_changed = _editor_url+"plugins/SaveSubmit/img/ed_save_red.gif"; 
    17         this.image_unchanged = _editor_url+"plugins/SaveSubmit/img/ed_save_green.gif"; 
     16        this.image_changed = Xinha.getPluginDir("SaveSubmit")+"/img/ed_save_red.gif"; 
     17        this.image_unchanged = Xinha.getPluginDir("SaveSubmit")+"/img/ed_save_green.gif"; 
    1818        cfg.registerButton({ 
    1919        id       : "savesubmit", 
  • trunk/plugins/SetId/set-id.js

    r893 r999  
    3434 
    3535SetId.prototype.onGenerate = function() { 
    36   this.editor.addEditorStylesheet(_editor_url + 'plugins/SetId/set-id.css'); 
     36  this.editor.addEditorStylesheet(Xinha.getPluginDir("SetId") + '/set-id.css'); 
    3737}; 
    3838 
  • 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  } 
  • trunk/plugins/SpellChecker/spell-check-logic.cgi

    r21 r999  
    99# This notice MUST stay intact for use (see license.txt). 
    1010# 
    11 # $Id$ 
     11# $Id:spell-check-logic.cgi 21 2005-02-19 05:23:56Z gogo $ 
    1212 
    1313use strict; 
  • trunk/plugins/SpellChecker/spell-check-ui.html

    r987 r999  
    1515   This notice MUST stay intact for use (see license.txt). 
    1616 
    17    $Id$ 
     17   $Id:spell-check-ui.html 987 2008-04-12 12:39:04Z ray $ 
    1818 
    1919--> 
  • trunk/plugins/SpellChecker/spell-check-ui.js

    r987 r999  
    77// This notice MUST stay intact for use (see license.txt). 
    88// 
    9 // $Id$ 
     9// $Id:spell-check-ui.js 987M 2008-04-12 12:39:04Z (local) $ 
    1010 
    1111// internationalization file was already loaded in parent ;-) 
     
    7676    } 
    7777    // var win = window; 
    78     window.opener.Xinha._postback(_editor_url + '/plugins/SpellChecker/spell-check-savedicts.php', data); 
     78    window.opener.Xinha._postback(Xinha.getPluginDir("SpellChecker") + '/spell-check-savedicts.php', data); 
    7979    window.close(); 
    8080  } 
     
    216216  if(editor.config.SpellChecker.backend == 'php') 
    217217  { 
    218     field.form.action = _editor_url + '/plugins/SpellChecker/spell-check-logic.php'; 
     218    field.form.action = Xinha.getPluginDir("SpellChecker") + '/spell-check-logic.php'; 
    219219  } 
    220220  if(editor.config.SpellChecker.utf8_to_entities) 
  • trunk/plugins/SpellChecker/spell-checker.js

    r856 r999  
    77// This notice MUST stay intact for use (see license.txt). 
    88// 
    9 // $Id$ 
     9// $Id:spell-checker.js 856M 2007-06-13 18:34:34Z (local) $ 
    1010 
    1111Xinha.Config.prototype.SpellChecker = { 'backend': 'php', 'personalFilesDir' : '', 'defaultDictionary' : 'en_GB', 'utf8_to_entities' : true }; 
     
    5454    SpellChecker.editor = editor; 
    5555    SpellChecker.init = true; 
    56     var uiurl = _editor_url + "plugins/SpellChecker/spell-check-ui.html"; 
     56    var uiurl = Xinha.getPluginDir("SpellChecker") + "/spell-check-ui.html"; 
    5757    var win; 
    5858    if (Xinha.is_ie) { 
  • trunk/plugins/SuperClean/super-clean.js

    r744 r999  
    111111  //  editor.setHTML('<strong>Tidied Html</strong>') 
    112112  // it's called through XMLHTTPRequest 
    113   'tidy_handler': _editor_url + 'plugins/SuperClean/tidy.php', 
     113  'tidy_handler': Xinha.getPluginDir("SuperClean") + '/tidy.php', 
    114114 
    115115  //avaliable filters (these are built-in filters) 
     
    219219      else 
    220220      { 
    221         Xinha._getback(_editor_url + 'plugins/SuperClean/filters/'+filter+'.js', 
     221        Xinha._getback(Xinha.getPluginDir("SuperClean") + '/filters/'+filter+'.js', 
    222222                      function(func) { 
    223223                        eval('SuperClean.filterFunctions.'+filter+'='+func+';'); 
     
    256256  if(this.html == false) 
    257257  { 
    258     Xinha._getback(_editor_url + 'plugins/SuperClean/dialog.html', function(txt) { lDialog.html = txt; lDialog._prepareDialog(); }); 
     258    Xinha._getback(Xinha.getPluginDir("SuperClean") + '/dialog.html', function(txt) { lDialog.html = txt; lDialog._prepareDialog(); }); 
    259259    return; 
    260260  } 
  • trunk/plugins/TableOperations/table-operations.js

    r988 r999  
    1111//   http://dynarch.com/mishoo 
    1212// 
    13 // $Id$ 
     13// $Id:table-operations.js 988 2008-04-12 13:46:09Z ray $ 
    1414 
    1515// Object that will encapsulate all the table operations provided by 
  • trunk/plugins/Template/template.js

    r893 r999  
    3535 
    3636Template.prototype.onGenerate = function() { 
    37   this.editor.addEditorStylesheet(_editor_url + 'plugins/Template/template.css'); 
     37  this.editor.addEditorStylesheet(Xinha.getPluginDir("Template") + '/template.css'); 
    3838}; 
    3939 
  • trunk/popups/popup.js

    r929 r999  
    1010//   http://dynarch.com/mishoo 
    1111// 
    12 // $Id$ 
     12// $Id:popup.js 929 2008-01-09 21:10:59Z ray $ 
    1313if(typeof Xinha == 'undefined') 
    1414  Xinha = window.opener.Xinha; 
Note: See TracChangeset for help on using the changeset viewer.