Changeset 999 for trunk/plugins


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/plugins
Files:
59 edited

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.