Drupal 7 Configuration CKEditor and Ckfinder editor for picture uploading-no wysisyg

Source: Internet
Author: User
Tags drupal

Attention:

1, the CKEditor editor here is a standalone module, not the WYSIWYG module. 2, here the picture upload only for the article inside the picture, not the field picture.

1. Download the file
(1) Http://drupal.org/project/ckeditor Drupal's CKEditor module
(2) Http://ckeditor.com/download CKEditor Source code
(3) Http://ckfinder.com/download Ckfinder (note, not for free)

Place the Ckedit folder under/sites/all/modules/,
Place the CKEditor folder under the/sites/all/modules/ckeditor/ckeditor folder,
Place the Ckfinder folder under the/sites/all/modules/ckeditor/folder.

The correct path is:

/sites/all/modules/ckeditor.api.php/sites/all/modules/ckeditor/ckeditor/ckeditor/ckeditor.php/sites/all/ modules/ckeditor/ckfinder/ckfinder.php

2. Installation Module

3, configuration module,/admin/config/content/ckeditor

4, configuration Ckfinder to achieve picture and file upload

In the configuration of the file Browser settings option, file browser type and the following two items are selected Ckfinder.

Edit config.php under the Ckfinder folder

Comment out this function

function Checkauthentication () {        returnfalse;}

This function checks for user authentication, changes to other authentication methods in other programs to return true, but cannot be changed directly to true, otherwise there will be security issues, and Drupal will have
/sites/all/modules/ckeditor/includes/filemanager.config.php is responsible for inspection.

Add the following code, the path is correct, if the file path is the same as mine

' .. /.. /.. /.. /includes/filemanager.config.php';

5. Configuring the/site/youdomain/settings.php File

set $baser_url$base_url='http://localhst/drupal71'; set $cookie_domain:$ Cookie_domain='http://localhst/drupal71';

You can upload images and files (hyperlinks), note that the text format full HTML mode is required to display the picture.

Drupal 7 Configuration CKEditor and Ckfinder editor for picture uploading-no wysisyg

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.