This topic is locked
[SOLVED]

 CKEditor and CKFinder Configuration

4/26/2010 12:55:59 PM
ASPRunnerPro General questions
D
dan_cloud author

HELP - In ASPRunner 6.1 I had Fckeditor all working nice (which allow for file upload), and now in ASPrunner 6.2, I can only use CKeditor, and that requires CKfinder installed for image uploading to work, which I downloaded as well, but I can't get ASPrunner to allow for browsing or uploading of images within the editor. it looks like it has to be done in the code that is in the text area of the page, but I don't know where that is. HAS ANYONE been able to make this work for them in ASPRunner 6.2? I have spent many hours wasted on trying.
Thanks!

Admin 4/27/2010

Will post a tutorial on this tomorrow.

Admin 4/28/2010

Here are instructions

  1. Download CKFinder from http://ckfinder.com/download and unzip it to C:\Program files\ASPRunnerPro6.2\source\plugins folder
  2. Turn on 'Enable Parent Paths' option in IIS
  3. Edit file C:\Program files\ASPRunnerPro6.2\source\plugins\ckfinder\config.asp the following way:

    Find function CheckAuthentication(). In this function change CheckAuthentication variable value from false to true.
  4. Make sure you have one of the folloiwng image componenents installed on your web server:

    Persits.Jpeg, briz.AspThumb, AspImage.Image, shotgraph.image.
    For example, you can download shotgraph.image at http://www.shotgraph.com/download.htm.

    Then modify C:\Program files\ASPRunnerPro6.2\source\plugins\ckfinder\config.asp file:
    replacing

Images.Add "component", "Auto"


with

Images.Add "component", "shotgraph.image"


5. Edit file C:\Program files\ASPRunnerPro6.2\source\include\aspfunctions.asp.
Replace the following line

ResponseWrite "CKEDITOR.replace( '"&CSmartStr(cfield)&"',{width:'" & nWidth & "', height:'" & nHeight & "'} );" & vbcrlf



with

ResponseWrite "CKEDITOR.replace( '"&CSmartStr(cfield)&"',{width:'" & nWidth & "', height:'" & nHeight & "',filebrowserBrowseUrl:'plugins/ckfinder/ckfinder.html',filebrowserImageBrowseUrl:'plugins/ckfinder/ckfinder.html?type=Images',filebrowserFlashBrowseUrl:'plugins/ckfinder/ckfinder.html?type=Flash',filebrowserUploadUrl:'plugins/ckfinder/core/connector/asp/connector.asp?command=QuickUpload&type=Files',filebrowserImageUploadUrl:'plugins/ckfinder/core/connector/asp/connector.asp?command=QuickUpload&type=Images',filebrowserFlashUploadUrl:'plugins/ckfinder/core/connector/asp/connector.asp?command=QuickUpload&type=Flash'});" & vbcrlf


6. Edit file C:\Program files\ASPRunnerPro6.2\source\files.txt:
Replace

##if @BUILDER.m_strRTEType==RTE_CK##

plugins\ckeditor plugins\ckeditor

##endif##


with

##if @BUILDER.m_strRTEType==RTE_CK##

plugins\ckeditor plugins\ckeditor

plugins\ckfinder plugins\ckfinder

##endif##


6. Build your project enabling CKEditor option