瀏覽代碼

[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.

Ivan Tcholakov 16 年之前
父節點
當前提交
964a47c7c3
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      main/inc/lib/fckeditor/myconfig.js

+ 6 - 0
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