[svn r18320] FS#2867: FCKEditor, javascript custom configuration file: Adding a variable in the script myconfig.js that detects which file manager (simple/advanced) is to be used. The idea is configuration files myconfig.js and myconfig_afm.js to be merged into a single file.

skala
Ivan Tcholakov 17 years ago
parent 335bf23d6c
commit 964a47c7c3
  1. 6
      main/inc/lib/fckeditor/myconfig.js

@ -122,6 +122,12 @@ FCKConfig.ToolbarSets["Wiki"] = [
['Source'] ['Source']
] ; ] ;
// At this moment of loading editor's scripts the setting FCKConfig.AdvancedFileManager
// has not been read yet from the php-integration file.
// However we are able to detect which file manager will be used in another way.
// The following variable is pure boolean type: true/false.
var UseAdvancedFileManager = FCKConfig.PageConfig.AdvancedFileManager ;
var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ; var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;
// Plugins // Plugins

Loading…
Cancel
Save