Sfoglia il codice sorgente

[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 anni fa
parent
commit
964a47c7c3
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  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