{"_id":"neditor","_rev":"2-2c62fcc4bf37f04d66ac53984712c9cc","name":"neditor","description":"UEditor富文本web编辑器","dist-tags":{"latest":"1.4.4"},"versions":{"1.4.4":{"name":"neditor","title":"neditor","description":"UEditor富文本web编辑器","version":"1.4.4","homepage":"https://neditor.notadd.com/demo/","author":{"name":"twilroad","url":"http://github.com/twilroad"},"repository":{"type":"git","url":"git+https://github.com/notadd/neditor.git"},"keywords":["neditor","web editor","javascript"],"bugs":{"url":"https://github.com/notadd/neditor/issues"},"dependencies":{"grunt":"~0.4.1","grunt-contrib-concat":"~0.3.0","grunt-contrib-cssmin":"~0.6.0","grunt-contrib-uglify":"~1.0.1","grunt-contrib-copy":"~0.4.0","grunt-transcoding":"~0.1.1","grunt-text-replace":"~0.3.9","grunt-contrib-clean":"~0.5.0"},"devDependencies":{"grunt":"~0.4.1"},"gitHead":"d6e3bea58d713927686c2403cb9ae126786c07f9","_id":"neditor@1.4.4","scripts":{},"_shasum":"0fc0a709cee5265deca9cfd0c16a93358bca2cf6","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"twilroad","email":"269044570@qq.com"},"dist":{"shasum":"0fc0a709cee5265deca9cfd0c16a93358bca2cf6","tarball":"https://registry.npmjs.org/neditor/-/neditor-1.4.4.tgz","integrity":"sha512-/RzD870D/rj2C33gNnvV9uT8Q3CLy4IoVVA+rTxaCxbjKM2VSNKQRDN7y/jMGAMEip1oZVqOYzR5VlUJR2Gb5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCY4uF2LnzSb58d3SwXLbxC4XhLphfAJHjJSKJ5WtGdnwIgJHmOVB5BzU3OgTNS/x/Fk/BtPS9Yp8nhqtfME9Av/Ps="}]},"maintainers":[{"name":"twilroad","email":"269044570@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/neditor-1.4.4.tgz_1495886113308_0.372566845966503"}}},"readme":"![Packagist](https://img.shields.io/packagist/v/notadd/neditor.svg) \r\n![Downloads](https://img.shields.io/packagist/dt/notadd/neditor.svg)\r\n\r\nGet Started\r\n==================\r\n\r\n## Neditor富文本编辑器介绍\r\n\r\nNeditor 是我们团队基于 Ueditor 的一款富文本编辑器。\r\n不论从功能还是从其它各方面来讲， Ueditor 都是一款无以替代的编辑器产品。\r\n只是已经不符合现代化样式的需求，于是我们修改它的样式，实现了这样的效果：\r\n\r\n![image](https://www.notadd.com/src/neditor.webp)\r\n\r\nDemo:  https://neditor.notadd.com/demo/\r\n\r\n## 入门部署和体验 ##\r\n\r\n### 第一步：下载编辑器 ###\r\n\r\n下载 Neditor 最新版\r\n\r\n或从源码编译：\r\n\r\n```shell\r\ngit clone 仓库地址\r\nnpm install\r\ngrunt notadd\r\n```\r\n\r\n### 第二步：创建 demo 文件 ###\r\n\r\n解压下载的包，在解压后的目录创建 demo.html 文件，填入下面的 html 代码\r\n\r\n```html\r\n<!DOCTYPE HTML>\r\n<html lang=\"en-US\">\r\n<head>\r\n\t<meta charset=\"UTF-8\">\r\n\t<title>ueditor demo</title>\r\n</head>\r\n<body>\r\n\t<!-- 加载编辑器的容器 -->\r\n\t<script id=\"container\" name=\"content\" type=\"text/plain\">这里写你的初始化内容</script>\r\n\t<!-- 配置文件 -->\r\n\t<script type=\"text/javascript\" src=\"neditor.config.js\"></script>\r\n\t<!-- 编辑器源码文件 -->\r\n\t<script type=\"text/javascript\" src=\"ueditor.all.js\"></script>\r\n\t<!-- 实例化编辑器 -->\r\n\t<script type=\"text/javascript\">\r\n\t    var ue = UE.getEditor('container');\r\n\t</script>\r\n</body>\r\n</html>\r\n```\r\n\r\n### 第三步：在浏览器打开demo.html ###\r\n\r\n如果看到了下面这样的编辑器，恭喜你，初次部署成功！\r\n\r\n![部署成功](https://www.notadd.com/src/neditor-demo.webp)\r\n\r\n### 自定义的参数\r\n\r\n编辑器有很多可自定义的参数项，在实例化的时候可以传入给编辑器：\r\n\r\n```javascript\r\nvar ue = UE.getEditor('container', {\r\n    autoHeight: false\r\n});\r\n```\r\n\r\n配置项也可以通过 neditor.config.js 文件修改，具体的配置方法请看[前端配置项说明](http://fex.baidu.com/ueditor/#start-config1.4 前端配置项说明.md)\r\n\r\n### 设置和读取编辑器的内容\r\n\r\n通 getContent 和 setContent 方法可以设置和读取编辑器的内容\r\n\r\n```javascript\r\nvar ue = UE.getContent();\r\nue.ready(function(){\r\n    //设置编辑器的内容\r\n    ue.setContent('hello');\r\n    //获取html内容，返回: <p>hello</p>\r\n    var html = ue.getContent();\r\n    //获取纯文本内容，返回: hello\r\n    var txt = ue.getContentTxt();\r\n});\r\n```\r\n\r\nUeditor 的更多API请看[API 文档](http://ueditor.baidu.com/doc \"ueditor API 文档\")\r\n\r\n## 相关链接 ##\r\n\r\nUeditor 官网：[http://ueditor.baidu.com](http://ueditor.baidu.com \"ueditor 官网\")\r\n\r\nUeditor API 文档：[http://ueditor.baidu.com/doc](http://ueditor.baidu.com/doc \"ueditor API 文档\")\r\n\r\nUeditor github 地址：[http://github.com/fex-team/ueditor](http://github.com/fex-team/ueditor \"ueditor github 地址\")\r\n\r\nNeditor github 地址：[http://github.com/notadd/neditor](http://github.com/fex-team/ueditor \"Neditor github 地址\")\r\n\r\n## 详细文档\r\n\r\nUeditor 文档：[http://fex.baidu.com/ueditor/](http://fex.baidu.com/ueditor/)\r\n\r\n\r\n\r\n## 联系我们 ##\r\n\r\nQQ 群： 321735506\r\nissue：[github issue](http://github.com/notadd/neditor/issues \"ueditor 论坛\")\r\n\r\n## 捐赠 \r\n\r\n![捐赠](https://www.notadd.com/images/donation.png)\r\n","maintainers":[{"name":"twilroad","email":"269044570@qq.com"}],"time":{"modified":"2022-06-20T23:40:29.605Z","created":"2017-05-27T11:55:13.910Z","1.4.4":"2017-05-27T11:55:13.910Z"},"homepage":"https://neditor.notadd.com/demo/","keywords":["neditor","web editor","javascript"],"repository":{"type":"git","url":"git+https://github.com/notadd/neditor.git"},"author":{"name":"twilroad","url":"http://github.com/twilroad"},"bugs":{"url":"https://github.com/notadd/neditor/issues"},"readmeFilename":"README.md"}