在WYSIWYG模块中为Drupal 7配置CKEditor 4
来源:互联网 发布:手机网络赚钱资源 编辑:程序博客网 时间:2024/05/01 18:50
CKEditor 4于2012年11月27日正式发布,4.0版给我们带来了一些新特性和新默认皮肤,但当前版本的wysiwyg7.x-2.2版默认无法识别到CKEditor 4版,导致无法正常配置,这里我们将教大家如何在wysiwyg中配置并启用最新版CKEditor 4。
赶紧前往CKeditor下载页面下载吧!你可以选择默认的标准版,也可以用他新发布的打包器选择自己喜欢的模式下载!
经JD译站测试该方法有效,至少在wysiwyg模块修正该问题前可以使用并体验CKEditor 4,修改方法如下:
前往 site/all/modules/wysiwyg/editors 目录并找到 ckeditor.inc 文件,用编辑器修改第81行:
替换:
if (preg_match('@version:\'(?:CKEditor )?([\d\.]+)(?:.+revision:\'([\d]+))?@', $line, $version)) {
为
if (preg_match('@version:[\"|\'](?:CKEditor )?([\d\.]+)(?:.+revision:[\"|\']([\d]+))?@', $line, $version)) {
就这么简单,试试吧!
更多drupal教程,请前往JoomlaDrupal译站
- 在WYSIWYG模块中为Drupal 7配置CKEditor 4
- 在WYSIWYG模块中为Drupal 7配置CKEditor 4
- Drupal + CKEditor + Syntaxhighlighter + IMCE 整合安裝整理 - Drupal WYSIWYG
- 在Drupal中使用WYSIWYG(所见即所得)编辑器
- 在 Drupal 中构建定制模块
- drupal ckeditor模块配置上传图片及文件(IMCE,ckfinder)
- Drupal中SMTP配置
- Drupal 7在Redhat上的模块安装
- Drupal 7中使用Views模块,如何设置filter?
- Drupal安装百度编辑器Ueditor for wysiwyg
- drupal 7 模块开发,hook_form
- Drupal 7 模块开发 建立
- 在Drupal当中如何使用Token模块?
- Drupal 7 中 Restful 在C#中连接认证登录
- 在Drupal中集成FCKEditor
- 在Drupal中添加校验码?
- drupal 模块
- Drupal 中 写VBO操作模块
- centos 163源 更换 --来源于网络
- poi 导入excel源码
- Origin_8.0_crack(origin8.0序列号(origin8.0破解补丁))
- 配置文件当中怎样修改request validation mode
- Linux修改SSH端口和禁止Root远程登陆
- 在WYSIWYG模块中为Drupal 7配置CKEditor 4
- Python Windows Service的方式运行
- hdu4324
- 算两个日期相差天数之使用Calendar类型注意事项
- magento 开发者笔记1
- js键盘键值
- cygwin编译ffmpeg
- c语言大小端转化
- 一些想法吧