forked from wangeditor-team/wangEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
4727e4d
commit dd729d6
Showing
293 changed files
with
3,336 additions
and
68,796 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/js/util/ierange.js |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es6": true | ||
}, | ||
"globals": { | ||
"ENV": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"no-console":0, | ||
"indent": [ | ||
"error", | ||
4 | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"never" | ||
], | ||
"no-unused-vars": 0, | ||
"no-debugger": 0 | ||
} | ||
} |
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
node_modules/* | ||
src/css/* | ||
src/js/* | ||
issue | ||
npm-debug.log | ||
static/* | ||
test/* | ||
uploadfiles/* | ||
server.js | ||
server-for-cros.js | ||
docs/* | ||
src/* | ||
example/* |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 当前遗留的一些问题 | ||
|
||
- 删除掉`./release`之后,执行`npm run release`会报错,原因是`fonts`文件没拷贝全,就要去替换`css`中的字体文件为`base64`格式,导致找不到文件。 | ||
|
||
|
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 |
---|---|---|
@@ -1,64 +1,24 @@ | ||
|
||
# 1. 介绍 | ||
# wangEditor | ||
|
||
**wangEditor**——轻量级web富文本编辑器,配置方便,使用简单</b>。支持IE8+浏览器。 | ||
**wangEditor**——轻量级 web 富文本编辑器,配置方便,使用简单。 | ||
|
||
* 软件官网:[wangEditor.github.io](http://wangeditor.github.io/) | ||
* demo演示:[wangEditor.github.io](http://wangeditor.github.io/) | ||
* 文档:[http://www.kancloud.cn/wangfupeng/wangeditor2/113961](http://www.kancloud.cn/wangfupeng/wangeditor2/113961) | ||
|
||
 | ||
|
||
# 2. 下载 | ||
## 下载 | ||
|
||
- 点击 [https://github.com/wangfupeng1988/wangEditor/releases](https://github.com/wangfupeng1988/wangEditor/releases) 下载最新版 | ||
- 使用`git`下载: `git clone https://github.com/wangfupeng1988/wangEditor.git` | ||
- 使用`npm`下载: `npm install wangeditor` (注意 `wangeditor` 全部是**小写字母**) | ||
- 使用`bower`下载:`bower install wangEditor` (前提保证电脑已安装了`bower`) | ||
|
||
# 3. 使用 | ||
|
||
引用`wangEditor.css`、`jquery.js`和`wangEditor.js`之后,即可简单生成富文本编辑器,简单易用。 | ||
```html | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>wangEditor</title> | ||
<link rel="stylesheet" type="text/css" href="../dist/css/wangEditor.min.css"> | ||
<style type="text/css"> | ||
#div1 { | ||
width: 100%; | ||
height: 500px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="div1"> | ||
<p>请输入内容...</p> | ||
</div> | ||
## 使用 | ||
|
||
<script type="text/javascript" src="../dist/js/lib/jquery-1.10.2.min.js"></script> | ||
<script type="text/javascript" src="../dist/js/wangEditor.min.js"></script> | ||
<script type="text/javascript"> | ||
$(function () { | ||
var editor = new wangEditor('div1'); | ||
editor.create(); | ||
}); | ||
</script> | ||
</body> | ||
</html> | ||
``` | ||
|
||
更多配置,可参见官网的文档页面:[http://www.kancloud.cn/wangfupeng/wangeditor2/113961](http://www.kancloud.cn/wangfupeng/wangeditor2/113961) | ||
## 本地运行demo | ||
|
||
# 4. 本地运行demo | ||
|
||
- 确定本机安装了 `nodejs`,可使用 `node -v` 验证 | ||
- 下载源码、解压,或者 `git clone https://github.com/wangfupeng1988/wangEditor.git` 。**注意,`windows`系统必须下载到`C盘`运行** | ||
- 进入源码目录,找到 `server.js` 命令行中运行 `node server.js` | ||
- 打开浏览器访问 `http://localhost:8011/test/index.html` | ||
|
||
# 5. 交流 | ||
## 交流 | ||
|
||
交流QQ群:**164999061** | ||
|
||
## License | ||
MIT |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"name": "wangEditor", | ||
"description": "wangEditor - 基于javascript和css开发的 Web富文本编辑器, 轻量、简洁、易用、开源免费", | ||
"main": "dist/js/wangEditor.js", | ||
"description": "wangEditor - 基于javascript和css开发的 web 富文本编辑器, 轻量、简洁、易用、开源免费", | ||
"main": "release/wangEditor.js", | ||
"authors": [ | ||
"wangfupeng <[email protected]>" | ||
], | ||
"license": "MIT", | ||
"keywords": [ | ||
"wangEditor", | ||
"富文本编辑器" | ||
"web 富文本编辑器" | ||
], | ||
"homepage": "https://github.com/wangfupeng1988/wangEditor", | ||
"moduleType": [ | ||
|
Oops, something went wrong.