您的位置:首页 > 产品设计 > UI/UE

Drupal安装百度编辑器Ueditor for wysiwyg

2015-09-03 14:24 489 查看


首先去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.错误即可解决。然后去设置-编辑器方案,给相应的方案选择编辑器就可以了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息