Ignore:
Timestamp:
06/13/07 18:34:34 (12 years ago)
Author:
wymsy
Message:

Change namespace from HTMLArea to Xinha in all the plugins - ref ticket #916

Location:
trunk/plugins/ImageManager
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ImageManager/assets/images.js

    r829 r856  
    77 
    88        function i18n(str) { 
    9         return HTMLArea._lc(str, 'ImageManager'); 
     9        return Xinha._lc(str, 'ImageManager'); 
    1010        } 
    1111 
  • trunk/plugins/ImageManager/assets/manager.js

    r833 r856  
    88        //Translation 
    99        function i18n(str) { 
    10         return HTMLArea._lc(str, 'ImageManager'); 
     10        return Xinha._lc(str, 'ImageManager'); 
    1111        } 
    1212 
     
    148148    { 
    149149      // Yup, need to resize 
    150       var resized = HTMLArea._geturlcontent(_backend_url + '&__function=resizer&img=' + encodeURIComponent(document.getElementById('f_url').value) + '&width=' + param.f_width + '&height=' + param.f_height); 
     150      var resized = Xinha._geturlcontent(_backend_url + '&__function=resizer&img=' + encodeURIComponent(document.getElementById('f_url').value) + '&width=' + param.f_width + '&height=' + param.f_height); 
    151151      // alert(resized); 
    152152      resized = eval(resized); 
  • trunk/plugins/ImageManager/assets/popup.js

    r677 r856  
    2121            var span = spans[i]; 
    2222            if (span.firstChild && span.firstChild.data) { 
    23                 var txt = HTMLArea._lc(span.firstChild.data, context); 
     23                var txt = Xinha._lc(span.firstChild.data, context); 
    2424                if (txt) 
    2525                    span.firstChild.data = txt; 
    2626            } 
    2727            if (span.title) { 
    28                 var txt = HTMLArea._lc(span.title, context); 
     28                var txt = Xinha._lc(span.title, context); 
    2929                if (txt) 
    3030                    span.title = txt; 
    3131            } 
    3232            if (span.alt) { 
    33                 var txt = HTMLArea._lc(span.alt, context); 
     33                var txt = Xinha._lc(span.alt, context); 
    3434                if (txt) 
    3535                    span.alt = txt; 
     
    3737        } 
    3838    } 
    39     document.title = HTMLArea._lc(document.title, context); 
     39    document.title = Xinha._lc(document.title, context); 
    4040} 
  • trunk/plugins/ImageManager/image-manager.js

    r770 r856  
    77 
    88/** 
    9  * To Enable the plug-in add the following line before HTMLArea is initialised. 
     9 * To Enable the plug-in add the following line before Xinha is initialised. 
    1010 * 
    11  * HTMLArea.loadPlugin("ImageManager"); 
     11 * Xinha.loadPlugin("ImageManager"); 
    1212 * 
    1313 * Then configure the config.inc.php file, that is all. 
     
    1616 
    1717/** 
    18  * It is pretty simple, this file over rides the HTMLArea.prototype._insertImage 
     18 * It is pretty simple, this file over rides the Xinha.prototype._insertImage 
    1919 * function with our own, only difference is the popupDialog url 
    2020 * point that to the php script. 
     
    6464//  file to suit your setup. 
    6565 
    66 HTMLArea.Config.prototype.ImageManager = 
     66Xinha.Config.prototype.ImageManager = 
    6767{ 
    6868  'backend'    : _editor_url + 'plugins/ImageManager/backend.php?__plugin=ImageManager&', 
     
    8080// Open up the ImageManger script instead. 
    8181 
    82 HTMLArea.prototype._insertImage = function(image) { 
     82Xinha.prototype._insertImage = function(image) { 
    8383 
    8484        var editor = this;      // for nested functions 
     
    101101                outparam = 
    102102                        { 
    103                         f_url    : HTMLArea.is_ie ? image.src : image.src, 
     103                        f_url    : Xinha.is_ie ? image.src : image.src, 
    104104                        f_alt    : image.alt, 
    105105                        f_border : image.style.borderWidth ? image.style.borderWidth : image.border, 
     
    189189                var img = image; 
    190190                if (!img) { 
    191                         if (HTMLArea.is_ie) { 
     191                        if (Xinha.is_ie) { 
    192192        var sel = editor._getSelection(); 
    193193        var range = editor._createRange(sel); 
Note: See TracChangeset for help on using the changeset viewer.