Hello everyone,
i need differnt browse/upload(mage) locations depending on the database record...
im using fck with ruby on rails,i think i have to edit server and client side!
on server side i have a action
"get_folders_and_files"
this action is called when the client want go get a file list of the availabe files on the server
i think i have do modify the client request that its sends the upload/browse path with the get_folder_and_files action call ....
is it possible to set the upload/browse path at the same place where i create the fck object ? like here ?
javascript_tag("var oFCKeditor = new FCKeditor('#{id}', '#{width}', '#{height}', '#{toolbarSet}');\n" <<
"oFCKeditor.BasePath = \"#{base_path}\"\n" <<
"oFCKeditor.Config['CustomConfigurationsPath'] = '#{js_path}/fckcustom.js';\n" <<
"oFCKeditor.ReplaceTextarea();\n")
or set at least a additional parameter that will be submittet with each "get_folders_and_files" call ?
or is fckcustoms.js the right place to add parameters for the get_folders_and_files query ?
#################################################################################
// DON'T CHANGE THESE
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector='+FCKRelativePath+'/fckeditor/command';
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector='+FCKRelativePath+'/fckeditor/command';
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector='+FCKRelativePath+'/fckeditor/command';
FCKConfig.LinkUploadURL = FCKRelativePath+'/fckeditor/upload';
FCKConfig.ImageUploadURL = FCKRelativePath+'/fckeditor/upload?Type=Image';
FCKConfig.FlashUploadURL = FCKRelativePath+'/fckeditor/upload?Type=Flash';
FCKConfig.SpellerPagesServerScript = FCKRelativePath+'/fckeditor/check_spelling';
FCKConfig.AllowQueryStringDebug = false;
FCKConfig.SpellChecker = 'SpellerPages';
################################################################################################
anyone any hints ?
thanks ahread
Philipp
i need differnt browse/upload(mage) locations depending on the database record...
im using fck with ruby on rails,i think i have to edit server and client side!
on server side i have a action
"get_folders_and_files"
this action is called when the client want go get a file list of the availabe files on the server
i think i have do modify the client request that its sends the upload/browse path with the get_folder_and_files action call ....
is it possible to set the upload/browse path at the same place where i create the fck object ? like here ?
javascript_tag("var oFCKeditor = new FCKeditor('#{id}', '#{width}', '#{height}', '#{toolbarSet}');\n" <<
"oFCKeditor.BasePath = \"#{base_path}\"\n" <<
"oFCKeditor.Config['CustomConfigurationsPath'] = '#{js_path}/fckcustom.js';\n" <<
"oFCKeditor.ReplaceTextarea();\n")
or set at least a additional parameter that will be submittet with each "get_folders_and_files" call ?
or is fckcustoms.js the right place to add parameters for the get_folders_and_files query ?
#################################################################################
// DON'T CHANGE THESE
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector='+FCKRelativePath+'/fckeditor/command';
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector='+FCKRelativePath+'/fckeditor/command';
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector='+FCKRelativePath+'/fckeditor/command';
FCKConfig.LinkUploadURL = FCKRelativePath+'/fckeditor/upload';
FCKConfig.ImageUploadURL = FCKRelativePath+'/fckeditor/upload?Type=Image';
FCKConfig.FlashUploadURL = FCKRelativePath+'/fckeditor/upload?Type=Flash';
FCKConfig.SpellerPagesServerScript = FCKRelativePath+'/fckeditor/check_spelling';
FCKConfig.AllowQueryStringDebug = false;
FCKConfig.SpellChecker = 'SpellerPages';
################################################################################################
anyone any hints ?
thanks ahread
Philipp