From 964a47c7c38c48e6c3bef40d27d9c1930a1d7e42 Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Sat, 7 Feb 2009 02:01:07 +0100 Subject: [PATCH] [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. --- main/inc/lib/fckeditor/myconfig.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/inc/lib/fckeditor/myconfig.js b/main/inc/lib/fckeditor/myconfig.js index d3a502d464..a31e9e7989 100644 --- a/main/inc/lib/fckeditor/myconfig.js +++ b/main/inc/lib/fckeditor/myconfig.js @@ -122,6 +122,12 @@ FCKConfig.ToolbarSets["Wiki"] = [ ['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/' ; // Plugins