Drupal安装百度编辑器Ueditor for wysiwyg

来源:互联网 发布:java 泛型强制转换 编辑:程序博客网 时间:2024/05/22 11:49


首先去Drupal官方下载百度编辑器模块

Drupal百度编辑器模块下载地址:https://www.drupal.org/project/ueditor


Installation

安装

-------------
1. Download the ueditor in

下载编辑器在下面的地址
http://ueditor.baidu.com/website/index.html.

或是 http://ueditor.baidu.com/website/download.html

下载最新的php版本即可。


2. Unzip it into sites/all/libraries,
so that there's like sites/all/libraries/ueditor/ueditor.all.js.

解压到sites/all/libraries,目录里面,以便像这样访问  sites/all/libraries/ueditor/ueditor.all.js.


3. Do like this https://drupal.org/node/2286333

这样做https://drupal.org/node/2286333


4. Enabled ueditor module.

启用编辑器模块。


5. Go to admin/people/permissions and grant permission to any roles that need to be
able to upload file with ueditor.

admin/people/permissions ,授予可以上传的角色权限给编辑器。


6. Configure the module at admin/config/content/wysiwyg

配置模块admin/config/content/wysiwyg


7. Configure the module at admin/config/content/ueditor (Optional)

配置模块admin/config/content/ueditor (Optional)(可选)

安装百度编辑器时如果只是启用了编辑器模块而没有导入关联的编辑器库文件,可能会出现以下错误提示。



解决办法是去百度编辑器官网下载库文件在网站sites/all/libraries/ueditor/里建立uedutor目录并保证可以访问到这个文件 sites/all/libraries/ueditor/ueditor.all.js.错误即可解决。然后去设置-编辑器方案,给相应的方案选择编辑器就可以了。


0 0