1 Star 6 Fork 0

huhuachuan / wangEditor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

1. 介绍

wangEditor——轻量级web富文本编辑器,配置方便,使用简单。支持IE8+浏览器。

2. 下载

  • 点击 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.cssjquery.jswangEditor.js之后,即可简单生成富文本编辑器,简单易用。

<!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

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

The MIT License (MIT) Copyright (c) 2016 王福朋 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

轻量级WEB富文本编辑器 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/huhuachuan/wangEditor.git
git@gitee.com:huhuachuan/wangEditor.git
huhuachuan
wangEditor
wangEditor
master

搜索帮助