wysiwyg+ckeditor 安装

1.下载wysiwyg模块  https://drupal.org/project/wysiwyg

2.下载ckeditor 上传/sites/all/libraries

出现问题:

解决方法:

在文件  \sites\all\modules\wysiwyg\ckeditor\ckeditor.inc 查找
if (preg_match('@version:\'(?:CKEditor )?([\d\.]+)(?:.+revision:\'([\d]+))?@', $line, $version)) {

修改成:

if (preg_match('@version:\"(?:CKEditor )?([\d\.]+)(?:.+revision:\"([\d]+))?@', $line, $version)) {

3.配置

wysiwyg

 

参考:http://www.webopius.com/content/717/how-to-get-ckeditor-4-x-working-with-the-drupal-7-wysiwyg-module

posted @ 2013-12-17 13:46  为了这有限的生命  阅读(322)  评论(0编辑  收藏  举报