Skip to content

Commit

Permalink
v3 gulp + rollup 工程化框架
Browse files Browse the repository at this point in the history
  • Loading branch information
wangfupeng1988 committed Apr 4, 2017
1 parent 4727e4d commit dd729d6
Show file tree
Hide file tree
Showing 293 changed files with 3,336 additions and 68,796 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/js/util/ierange.js
35 changes: 35 additions & 0 deletions .eslintrc.json
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
}
}
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@

#忽略
node_modules/grunt/
node_modules/grunt*/
node_modules/jquery/
issue
node_modules/*
npm-debug.log

# Windows image file caches
Expand Down
17 changes: 0 additions & 17 deletions .jshintrc

This file was deleted.

11 changes: 3 additions & 8 deletions .npmignore
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/*
145 changes: 0 additions & 145 deletions Gruntfile.js

This file was deleted.

5 changes: 5 additions & 0 deletions ISSUE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 当前遗留的一些问题

- 删除掉`./release`之后,执行`npm run release`会报错,原因是`fonts`文件没拷贝全,就要去替换`css`中的字体文件为`base64`格式,导致找不到文件。


2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 王福朋
Copyright (c) 2017 王福朋

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
58 changes: 9 additions & 49 deletions README.md
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)

![](http://images2015.cnblogs.com/blog/138012/201509/138012-20150910004209122-1645253022.png)

# 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
6 changes: 3 additions & 3 deletions bower.json
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": [
Expand Down
Loading

0 comments on commit dd729d6

Please sign in to comment.