This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
132 additions
and
892 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,13 @@ Get Started | |
|
||
UEditor是由百度web前端研发部开发所见即所得富文本web编辑器,具有轻量,可定制,注重用户体验等特点,开源基于MIT协议,允许自由使用和修改代码。 | ||
|
||
## 入门部署和体验 ## | ||
## 1 入门部署和体验 | ||
|
||
### 第一步:下载编辑器 ### | ||
### 1.1 下载编辑器 | ||
|
||
到官网下载ueditor最新版:[[官网地址]](http://ueditor.baidu.com/website/download.html#ueditor "官网下载地址") | ||
|
||
### 第二步:创建demo文件 ### | ||
### 1.2 创建demo文件 | ||
解压下载的包,在解压后的目录创建demo.html文件,填入下面的html代码 | ||
|
||
```html | ||
|
@@ -36,13 +36,13 @@ UEditor是由百度web前端研发部开发所见即所得富文本web编辑器 | |
</html> | ||
``` | ||
|
||
### 第三步:在浏览器打开demo.html ### | ||
### 1.3 在浏览器打开demo.html | ||
|
||
如果看到了下面这样的编辑器,恭喜你,初次部署成功! | ||
|
||
![部署成功](http://fex.baidu.com/ueditor/doc/images/demo.png) | ||
|
||
### 自定义的参数 | ||
### 1.4 传入自定义的参数 | ||
|
||
编辑器有很多可自定义的参数项,在实例化的时候可以传入给编辑器: | ||
```javascript | ||
|
@@ -53,11 +53,12 @@ var ue = UE.getEditor('container', { | |
|
||
配置项也可以通过ueditor.config.js文件修改,具体的配置方法请看[前端配置项说明](http://fex.baidu.com/ueditor/#start-config1.4 前端配置项说明.md) | ||
|
||
### 设置和读取编辑器的内容 | ||
### 1.5 设置和读取编辑器的内容 | ||
|
||
通getContent和setContent方法可以设置和读取编辑器的内容 | ||
```javascript | ||
var ue = UE.getContent(); | ||
//对编辑器的操作最好在编辑器ready之后再做 | ||
ue.ready(function(){ | ||
//设置编辑器的内容 | ||
ue.setContent('hello'); | ||
|
@@ -70,21 +71,16 @@ ue.ready(function(){ | |
|
||
ueditor的更多API请看[API 文档](http://ueditor.baidu.com/doc "ueditor API 文档") | ||
|
||
## 相关链接 ## | ||
## 2 详细文档 | ||
|
||
ueditor 官网:[http://ueditor.baidu.com](http://ueditor.baidu.com "ueditor 官网") | ||
|
||
ueditor API 文档:[http://ueditor.baidu.com/doc](http://ueditor.baidu.com/doc "ueditor API 文档") | ||
|
||
ueditor github 地址:[http://github.com/fex-team/ueditor](http://github.com/fex-team/ueditor "ueditor github 地址") | ||
|
||
## 详细文档 | ||
|
||
ueditor 文档:[http://fex.baidu.com/ueditor/](http://fex.baidu.com/ueditor/) | ||
|
||
|
||
|
||
## 联系我们 ## | ||
## 3 联系我们 | ||
|
||
email:[[email protected]](mailto://email:[email protected] "发邮件给ueditor开发组") | ||
|
||
issue:[github issue](http://github.com/fex-team/ueditor/issues "ueditor 论坛") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
33209cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
牛