一、前言
- ueditor是强大,但是目前来说是没维护了,这里只是拿来练一下手。
二、下载 ueditor1_4_3_3-utf8-php 版本
1、进入github
2、点击 25 tags

3、选择自己需要的ueditor版本 例v1.4.3.3
下载

4、选择自己需要的后台语言版本
- ueditor1_4_3_3-utf8-php.zip

三、先熟悉config.json的配置
***ActionName
是上传类型的路由;
***FieldName
是上传表单的名称;
- 他们的对应关系如下
名称 |
actionName |
fieldName |
上传图片配置项 |
uploadimage |
upfile |
*** |
*** |
*** |
四、js 代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>uEditor加载Demo</title>
</head>
<body>
<textarea id="uEditorID"></textarea>
</body>
<script type="text/javascript" src="/js/ueditor1_4_3_3-utf8-php/utf8-php/ueditor.config.js"></script>
<script type="text/javascript"