Using not compressed files when loading fckeditor see #3971

skala
Julio Montoya 13 years ago
parent 87bef9f45a
commit 9296a14233
  1. 4
      main/inc/lib/fckeditor/editor/plugins/customizations/fckpackager.xml
  2. 7
      main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin_load.js
  3. 2
      main/inc/lib/fckeditor/myconfig.js

@ -5,10 +5,10 @@
<Constants>
<Constant name="" value="" />
</Constants>
<PackageFile path="fckplugin_compressed.js">
<PackageFile path="fckplugin.js">
<File path="fckplugin.js" />
</PackageFile>
<PackageFile path="fckplugin_load_compressed.js">
<PackageFile path="fckplugin_load.js">
<File path="fckplugin_load.js" />
</PackageFile>
</Package>

@ -81,8 +81,7 @@ FCKPlugin.prototype.Load = function()
// Logic-modification about loading compressed version of some plugins.
//LoadScript( this.Path + 'fckplugin.js' ) ;
var file;
switch ( this.Name )
{
switch ( this.Name ) {
case 'asciimath':
case 'asciisvg':
case 'audio':
@ -101,11 +100,11 @@ FCKPlugin.prototype.Load = function()
case 'youtube':
file = ( window.document.location.toString().indexOf('fckeditor.original.html') != -1 )
? 'fckplugin.js'
: 'fckplugin_compressed.js';
: 'fckplugin.js';
break;
default:
file = 'fckplugin.js';
}
}
LoadScript( this.Path + file ) ;
// End of logic-modification.
}

@ -54,7 +54,7 @@ FCKConfig.AvailableLanguages = 'en,af,ar,ast,bg,bn,bs,ca,cs,da,de,el,en-au,en-ca
// would be shown for plugins, if they are not provided with the requiested language files.
LoadScript( ( window.document.location.toString().indexOf('fckeditor.original.html') != -1 ) // Please, do not disable this script.
? ( FCKConfig.PluginsPath + 'customizations/fckplugin_load.js' )
: ( FCKConfig.PluginsPath + 'customizations/fckplugin_load_compressed.js' ) ) ;
: ( FCKConfig.PluginsPath + 'customizations/fckplugin_load.js' ) ) ;
// Reading the list of the enabled in myconfig.php plugins.
FCKConfig.LoadPlugin = eval( '(' + FCKConfig.PageConfig.LoadPlugin + ')' ) ;
// Loading the enabled plugins.

Loading…
Cancel
Save