Integrating CKFinder into CKEditor

  • Download and install CKEditor according to the WebYep-Documentation
  • Download the PHP version of CKFinder from: ckfinder.com
  • Unpack the archive and move the folder "ckfinder" to your /webyep-system/program/opt folder
  • Open the file /webyep-system/program/opt/ckfinder/config.php
    • find the line that reads "//session_start();" (without the quotes) and delete the leading slashes:
      session_start();
    • find the line that reads "return false;" and replace it with the following:
      return isset($_SESSION['WebYepIsAuthorized']) && $_SESSION['WebYepIsAuthorized'];
    • find the line that reads "$baseUrl = '/ckfinder/userfiles/';" and replace it with
      $baseUrl = '/webyep-system/data/userfiles/';
    • Finally create a folder named "userfiles" in your data folder (/webyep-system/data/userfiles).

Did it work?

To check whether the installation was successful, do the following:

  • Create a WebYep page containing a RichText element and upload this page to your server.
  • Open this page in your browser and switch to edit mode.
  • Klick the 'Edit' Button of the RichText element. A new window with CKEditor should pop up.
  • In the toolbar click on "Image". The dialogue "Image properties" should appear.
  • If the installation of CKFinder was successful, you'll now have a new button "browse server" next to the URL input field.
© 2011, Objective Development