Changeset 1239


Ignore:
Timestamp:
02/18/10 02:14:45 (9 years ago)
Author:
gogo
Message:

Add new plugin MootoolsFileManager?
ticket:1502

Location:
trunk
Files:
197 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r1229 r1239  
    40424042}; 
    40434043 
     4044/** Adds a script to the document 
     4045 * @param {String} style name of the stylesheet file 
     4046 * @param {String} plugin optional name of a plugin; if passed this function looks for the stylesheet file in the plugin directory  
     4047 * @param {String} id optional a unique id for identifiing the created link element, e.g. for avoiding double loading  
     4048 *                 or later removing it again 
     4049 */ 
     4050Xinha.loadScript = function(script, plugin) 
     4051{ 
     4052  var url = _editor_url || ''; 
     4053  if ( plugin ) 
     4054  { 
     4055    url = Xinha.getPluginDir( plugin ) + "/"; 
     4056  } 
     4057  url += script; 
     4058  // @todo: would not it be better to check the first character instead of a regex ? 
     4059  // if ( typeof style == 'string' && style.charAt(0) == '/' ) 
     4060  // { 
     4061  //   url = style; 
     4062  // } 
     4063  if ( /^\//.test(script) ) 
     4064  { 
     4065    url = script; 
     4066  } 
     4067   
     4068  Xinha._loadback(url); 
     4069   
     4070}; 
     4071 
    40444072 
    40454073/*************************************************** 
  • trunk/modules/InsertImage/insert_image.js

    r1217 r1239  
    3434        var self = this; 
    3535 
    36    editor.config.btnList.insertimage[3] = function() { self.show(); } 
    37    if(typeof editor._insertImage == 'undefined') editor._insertImage = function() { self.show(); }; 
     36    
     37   if(typeof editor._insertImage == 'undefined')  
     38   { 
     39    editor._insertImage = function() { self.show(); }; 
     40   // editor.config.btnList.insertimage[3] = function() { self.show(); } 
     41   } 
    3842  } 
    3943   
Note: See TracChangeset for help on using the changeset viewer.