Title:
Bug 82364:(Watson Migration Closure)Using the CFTEXTAREA tag with a cutom install of FCKeditor the FCKConfig
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/LowImpact
Reporter/Name(from Bugbase): Anthony Morse / Anthony Morse (Anthony Morse)
Created: 03/07/2010
Components: CFForm, Standard XML
Versions: 9.0.1
Failure Type: Unspecified
Found In Build/Fixed In Build: 9,0,0,251028 /
Priority/Frequency: Major / Most users will encounter
Locale/System: English / Platforms All
Vote Count: 0
Problem:
Using the CFTEXTAREA tag with a cutom install of FCKeditor the FCKConfig.ImageUploadURL path is ignored, CF9 seems to overirde any value placed in FCKConfig.ImageUploadURL. FCKConfig.ImageUploadURL. is used to specify the file manager to be used with FCKeditor, in particular the path to CKfinder.
Method:
1) Turn on secure uploads by adding -Dcoldfusion.fckupload=true in jvm.config
2) Edit config.cfm (/FCKeditor/edit/filemanager/connectors/cfm/) and set Config.Enabled = true ;
3) Copy ckfinder from 82364 and place it in /CFIDE/scripts/ajax/FCKeditor/editor
4) In ckfinder/config.cfm, return true for CheckAuthentication()
4) In fckconfig.js, do:
FCKConfig.ImageUpload = true ;
/*FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Image' ;*/
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'ckfinder/core/connector/cfm/connector.cfm?command=QuickUpload&type=Images' ;
5) Run bug82364-richText-fckUpload.cfm
6) You will see two textareas (first one using cftextarea and second one using fckEditor created using API)
7) Upload an image. The first textarea posts requests to /filemanager and the second textarea posts it (as exptected in this case) to /ckfinder
\\blrfs04.macromedia.com\builds\coldfusion\Bugs\82364\*
or
<cftextarea name="my_textraea_data" value="" richtext="Yes"basepath="#application.fckeditor_path#" height="400" />(the above defaults to the fckeditor file manager)<cfscript>// Calculate basepath for FCKeditor. It's in the folder right above _samplesfckEditor = createObject( "component", "#application.fckeditor_path#fckeditor" ) ;fckEditor.instanceName= "myEditor" ;fckEditor.value= '' ;fckEditor.basePath= application.fckeditor_path ;fckEditor.Create() ; // create the editor.</cfscript>This works fine and uses the CKfinder path fckconfig.jsFCKConfig.ImageUpload = true ;//FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Image' ;FCKConfig.ImageUploadURL = '/ckfinder/core/connector/cfm/connector.cfm?command=QuickUpload&type=Images' ;FCKConfig.ImageUploadAllowedExtensions= ".(jpg|gif|jpeg|png|bmp)$" ;// empty for allFCKConfig.ImageUploadDeniedExtensions= "" ;// empty for no one
Result:
CKFinderno longer works with a custom install of FCKeditor
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041094
External Customer Info:
External Company:
External Customer Name: Anthony Morse
External Customer Email: 986B332A43CC09E40AAC0C16
External Test Config: 03/07/2010
Attachments:
Comments: