Hi All,
I can't for the life of me get the upload tab to work in ckfinder, I have tried this forum but can't find a solution and I am thinking now it is because my ckfinder folder is not inside ckeditor.
Can somebody please help?
code
<cfquery name="select_record" datasource="#Application.dsn#"> SELECT * FROM tbl_content WHERE ID = #URL.ID# </cfquery> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- This section has the head with links to js files, css etc--> <cfinclude template="header.cfm"> </head> <body> <div id="container"> <div class="hidden"><!-- the modal box container - this div is hidden until it is called from a modal box trigger. see cleanity.js for details --> <div id="sample-modal"><h2 style="font-size:160%; font-weight:bold; margin:10px 0;">Modal Box Content</h2><p>Place your desired modal box content here</p></div> </div><!-- end of hidden --> <!-- This section has the header and nav content in it--> <cfinclude template="nav_bar.cfm"> <div id="content"> <div id="mid-col"> <div class="box"> <h4 class="white">Edit <cfoutput>#select_record.tab_name#</cfoutput> Page</h4> <div class="box-container"> <!-- This <div> holds alert messages to be display in the sample page. --> <div id="alerts"> <noscript> <p> <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript support, like yours, you should still see the contents (HTML data) and you should be able to edit it normally, without a rich editor interface. </p> </noscript> </div> <cfform action="html_edit_action.cfm" method="post" enctype="multipart/form-data" name="HTML_EDIT"> <!-- this is form is submitted automatically when the save button is presses in the editor--> Page Order: <input name="page_order" style="margin-bottom:8px;" type="text" id="page_order" value="<cfoutput>#select_record.page_order#</cfoutput>" size="4" maxlength="4" /> Page active: <input name="display_page" style="margin-bottom:8px;" type="checkbox" id="display_pagedisplay_page" value="checkbox" <cfif select_record.display_page eq "Yes">checked="checked"</cfif>/>Yes </li> <script type="text/javascript" src="../ckeditor/ckeditor.js"></script> <textarea cols="80" id="html" name="html" rows="10"><cfoutput>#select_record.html#</cfoutput></textarea> <script type="text/javascript"> //<![CDATA[ // This has to placed immediately after the text area CKEDITOR.replace( 'html', { //toolbar : 'Basic', contentsCss : 'ckeditor_custom.css', // make sure any changes to .css on front end are added here aswell //uiColor : '#9AB8F3', width : 970, height : 800, defaultLanguage : 'en-au', // this is the stuff required for ckfinder filebrowserBrowseUrl : '../ckfinder/ckfinder.html', filebrowserImageBrowseUrl : '../ckfinder/ckfinder.html?type=Images', filebrowserFlashBrowseUrl : '../ckfinder/ckfinder.html?type=Flash', filebrowserUploadUrl : '../ckfinder/core/connector/cfm/connector.cfm?command=QuickUpload&type=Files¤tFolder=/userfiles/files/', filebrowserImageUploadUrl : '../ckfinder/core/connector/cfm/connector.cfm?command=QuickUpload&type=Images¤tFolder=/userfiles/images/', filebrowserFlashUploadUrl : '../ckfinder/core/connector/cfm/connector.cfm?command=QuickUpload&type=Flash', filebrowserWindowWidth : '1000', filebrowserWindowHeight : '700' } ); //]]> </script> <input name="ID" type="hidden" id="ID" value="<cfoutput>#select_record.ID#</cfoutput>" /> </cfform> <p class="align-right">Last updated by <cfoutput>#select_record.last_changed_by#</cfoutput> on <cfoutput>#select_record.last_changed_date#</cfoutput></p> </div> </div> <div class="box"> <!-- end of div.box-container --> </div> <!-- end of div.box --> </div><!-- end of div#mid-col --> <!-- end of div#right-col --> <span class="clearFix"> </span></div> <!-- end of div#content --> <div class="push"></div> </div><!-- end of #container --> <div id="footer-wrap"> <cfinclude template="footer.cfm"> </div> </body> </html>
Re: Coldfusion - Upload tab not working
Apologies for the late reply. Did you solve your problem already?
Please let me know and if not, I will check the problem on my side.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+