{"_rev":"89-21751d0dd79a603fa1b38c6fd04a5722","time":{"modified":"2023-08-01T02:54:28.296Z","created":"2023-08-01T02:54:27.825Z","1.0.0":"2017-07-12T06:54:27.261Z","2.0.2":"2017-07-12T07:10:26.871Z","2.0.3":"2017-07-12T08:00:04.938Z","2.0.4":"2017-07-14T06:15:11.483Z","2.0.5":"2017-07-14T09:34:08.197Z","2.0.6":"2017-07-17T01:45:26.166Z","2.0.7":"2017-07-17T02:12:20.982Z","2.0.8":"2017-07-17T02:50:17.434Z","2.0.9":"2017-07-17T09:37:34.244Z","2.0.10":"2017-07-17T10:21:59.105Z","2.0.11":"2017-07-17T10:30:11.301Z","2.0.12":"2017-07-17T10:42:53.363Z","2.0.13":"2017-07-18T02:17:10.842Z","2.0.14":"2017-07-19T01:26:42.590Z","2.0.15":"2017-07-19T01:33:42.249Z","2.0.16":"2017-07-20T01:48:41.056Z","2.0.17":"2017-07-24T02:05:24.592Z","2.0.18":"2017-08-08T08:09:39.651Z","2.0.19":"2017-08-08T08:56:24.119Z","2.0.20":"2017-08-15T10:01:06.883Z","2.0.21":"2017-08-23T06:22:51.029Z","2.0.22":"2017-08-28T11:21:01.484Z","2.0.23":"2017-09-05T05:56:19.921Z","2.0.24":"2017-09-05T06:40:50.616Z","2.0.25":"2017-09-05T06:51:13.318Z","2.0.26":"2017-09-05T07:02:26.364Z","2.0.27":"2017-09-05T07:08:14.014Z","2.0.28":"2017-09-05T07:13:06.509Z","2.0.29":"2017-09-05T07:31:18.971Z","2.0.30":"2017-09-05T07:40:09.098Z","2.0.31":"2017-09-05T07:43:46.105Z","2.0.32":"2017-09-05T07:47:27.740Z","2.0.33":"2017-09-08T07:11:05.313Z","2.0.34":"2017-09-21T02:01:37.954Z","2.0.35":"2018-01-25T02:15:46.700Z","2.0.36":"2018-06-05T06:34:50.831Z","2.0.37":"2018-06-12T05:51:07.365Z","2.0.38":"2018-07-03T12:43:17.923Z","2.1.1":"2018-07-03T12:49:56.857Z","2.1.2":"2018-07-03T12:57:25.344Z","2.1.4":"2018-08-10T01:46:57.910Z","2.1.5":"2018-08-22T01:52:53.947Z","2.2.0":"2018-09-25T05:46:53.584Z","2.2.1":"2018-09-25T06:53:25.210Z","2.2.2":"2018-09-25T06:56:13.596Z","2.2.3":"2018-09-25T07:05:14.517Z","2.2.4":"2018-09-25T07:13:02.480Z","2.2.5":"2018-09-25T07:16:36.505Z","2.2.6":"2018-09-25T07:22:41.124Z","2.2.7":"2018-09-25T07:29:07.268Z","2.2.8":"2018-09-25T07:38:16.839Z","2.2.9":"2018-09-25T08:02:25.460Z","2.2.10":"2018-09-25T08:32:13.919Z","2.2.11":"2018-09-25T09:01:34.850Z","2.2.12":"2018-09-25T11:49:18.505Z","2.2.13":"2018-09-25T11:59:19.651Z","2.2.14":"2018-09-25T12:00:58.689Z","2.2.15":"2018-09-26T01:43:46.143Z","2.2.16":"2018-09-26T02:08:18.904Z","2.3.0":"2018-10-17T13:35:28.736Z","2.3.1":"2018-10-20T08:36:34.679Z","2.3.2":"2018-10-20T09:18:14.951Z","2.3.4":"2018-10-20T09:47:46.471Z","2.3.5":"2018-10-20T10:02:05.218Z","2.3.6":"2018-10-22T03:11:12.101Z","2.3.7":"2018-10-22T03:55:29.881Z","2.3.8":"2018-10-25T08:53:02.070Z","2.3.9":"2018-10-25T09:02:28.390Z","2.3.10":"2018-10-25T09:04:13.930Z","2.3.11":"2018-10-25T09:13:24.441Z","2.3.12":"2018-12-01T02:04:14.194Z","2.3.13":"2020-07-27T07:04:56.153Z","2.3.14":"2020-07-27T07:58:54.309Z","2.3.15":"2020-07-27T09:16:03.468Z","2.3.16-0":"2020-07-27T09:56:07.163Z","2.3.16-1":"2020-07-27T11:03:46.907Z","2.3.16":"2020-07-27T12:20:49.100Z","2.3.16-2":"2020-07-31T08:03:42.651Z","2.3.17":"2020-08-04T10:13:52.192Z","2.3.18":"2020-10-30T07:35:14.137Z","2.3.19":"2020-11-02T06:36:54.355Z","2.3.20":"2020-11-26T09:29:55.899Z","2.3.21":"2020-12-24T12:29:31.320Z","2.3.22":"2020-12-24T12:46:49.366Z","2.3.24":"2023-08-01T02:54:28.146Z"},"_id":"longxi-vue-html5-editor","name":"longxi-vue-html5-editor","dist-tags":{"latest":"2.3.24"},"versions":{"2.3.24":{"name":"longxi-vue-html5-editor","version":"2.3.24","description":"A WYSIWYG text editor base on html5 and vue","main":"dist/vue-html5-editor.js","directories":{"example":"example"},"scripts":{"build":"rollup -c rollup.config.js","dev":"rollup -c -w rollup.config.js","test":"echo \"Error: no test specified\" && exit 1","lint":"eslint --fix -f codeframe src/*"},"keywords":["vue","WYSIWYG","richtext","html5","editor"],"repository":{"type":"git","url":"git+https://github.com/DreamerKing/longxi-vue-html5-editor.git"},"author":"","license":"ISC","devDependencies":{"eslint":"^3.9.1","eslint-config-airbnb":"^12.0.0","eslint-friendly-formatter":"^2.0.6","eslint-loader":"^1.6.0","eslint-plugin-import":"^1.16.0","eslint-plugin-jsx-a11y":"^2.2.3","eslint-plugin-react":"^6.9.0","lrz":"^4.9.40","postcss-clean":"^1.0.2","postcss-cssnext":"^2.9.0","postcss-import":"^9.1.0","rollup":"^0.37.0","rollup-plugin-babel":"^2.7.1","rollup-plugin-buble":"^0.15.0","rollup-plugin-commonjs":"^6.0.1","rollup-plugin-css-only":"^0.2.0","rollup-plugin-flow-no-whitespace":"^1.0.0","rollup-plugin-html":"^0.2.1","rollup-plugin-license":"^0.3.0","rollup-plugin-node-resolve":"^2.0.0","rollup-plugin-postcss":"^0.2.0","rollup-plugin-progress":"^0.2.1","rollup-plugin-replace":"^1.1.1","rollup-watch":"^4.3.1"},"dependencies":{"longxi-vue-html5-editor":"^2.3.14"},"gitHead":"cda8f614af60f7e2215a8007fdeaf75d7578310a","bugs":{"url":"https://github.com/DreamerKing/longxi-vue-html5-editor/issues"},"homepage":"https://github.com/DreamerKing/longxi-vue-html5-editor#readme","_id":"longxi-vue-html5-editor@2.3.24","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-+MtGQmaHj82J6QhTpR7Oj9ZmKc+zadHw+HHF4G5gcP2JVIQtjXqYRRwgyCgteOMdIFueENc/IzI9LBVKws8DZA==","shasum":"52ee3b415a5dec343a07eee1679b53d389a9acdd","tarball":"https://registry.npmjs.org/longxi-vue-html5-editor/-/longxi-vue-html5-editor-2.3.24.tgz","fileCount":106,"unpackedSize":1105267,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/oVagFmCaEQkeeBQzQmrkbTxLzcWDzC4V0mADdtz7/gIhAKZf6u0PwFZs8Roy8YRek36s9HVY3G0eUcXFVK1/Iqs9"}]},"_npmUser":{"name":"czc123123","email":"chenzhicheng@loonxi.com"},"maintainers":[{"name":"czc123123","email":"chenzhicheng@loonxi.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/longxi-vue-html5-editor_2.3.24_1690858467834_0.1555504356368691"},"_hasShrinkwrap":false}},"maintainers":[{"name":"czc123123","email":"chenzhicheng@loonxi.com"}],"description":"A WYSIWYG text editor base on html5 and vue","homepage":"https://github.com/DreamerKing/longxi-vue-html5-editor#readme","keywords":["vue","WYSIWYG","richtext","html5","editor"],"repository":{"type":"git","url":"git+https://github.com/DreamerKing/longxi-vue-html5-editor.git"},"bugs":{"url":"https://github.com/DreamerKing/longxi-vue-html5-editor/issues"},"license":"ISC","readme":"### 富文本编辑器\nhttps://github.com/hansinhu/npm-vue-editor.git\n\n1. 富文本编辑器是自己封装改写的，然后发布到npm的，在package.json中可以找到 \"longxi-vue-html5-editor\": \"^2.2.0\", 2.2.0是目前最高版本，自己改写了副本文编辑器连通素材库，图片调整大小，等功能。\n\n2. 不同的功能都在longxi-html5-editor\\src\\modules目录下，如果要改写功能，修改完文件后，运行\n\n```\n\n npm run build\n 提交源码改动\n \n npm login\n 用户名:qiankaijie\n 密码:********\n 邮箱:qiankaijie1024@gmail.com \n  \n npm version patch \n npm publish\n\n```\n\n\n### 更新日志\n```\n20180925: v2.2.0 -  新增图片拖拽改变大小 / colorPicker\n\n```\n\n# 简介 Intro \n\nloonxi-vue-editor 是一个Vue的富文本编辑器插件，简洁灵活可扩展，适用于vue2.0以上版本，支持IE11.\n\n\n![screenshot](https://img.onloon.co/20181017215224096770177.png)\n\n\n# 安装 Installation\n\n### Npm\n\n\n```bash\nnpm install loonxi-vue-editor --save-dev\n```\n\n```js\nimport Vue from 'vue'\nimport VueHtml5Editor from 'loonxi-vue-editor'\nVue.use(VueHtml5Editor,options);\n```\n\n同样你也可以作为局部组件使用，方便在不同的场景里使用不同的配置.\n\n```js\nconst editor1 = new VueHtml5Editor(options1)\nconst app1 = new Vue({\n    components:{\n        editor1\n    }\n})\nconst editor2 = new VueHtml5Editor(options2)\nconst app2 = new Vue({\n    components:{\n        editor2\n    }\n})\n```\n\n\n### 浏览器直接使用 browser\n\n```html\n<script src=\"serverpath/vue.js\"></script>\n<script src=\"serverpath/loonxi-vue-editor.js\"></script>\n```\n\n# 使用说明 Usage\n\n模板代码如下：\n\ntemplate code as follows:\n\n```html\n<vue-html5-editor :content=\"content\" :height=\"500\"></vue-html5-editor>\n```\n\n# options\n\n```js\nVue.use(VueHtml5Editor, {\n    // 全局组件名称，使用new VueHtml5Editor(options)时该选项无效 \n    // global component name\n    name: \"vue-html5-editor\",\n    // 是否显示模块名称，开启的话会在工具栏的图标后台直接显示名称\n    // if set true,will append module name to toolbar after icon\n    showModuleName: false,\n    // 自定义各个图标的class，默认使用的是font-awesome提供的图标\n    // custom icon class of built-in modules,default using font-awesome\n    icons: {\n        text: \"fa fa-pencil\",\n        color: \"fa fa-paint-brush\",\n        font: \"fa fa-font\",\n        align: \"fa fa-align-justify\",\n        list: \"fa fa-list\",\n        link: \"fa fa-chain\",\n        unlink: \"fa fa-chain-broken\",\n        tabulation: \"fa fa-table\",\n        image: \"fa fa-file-image-o\",\n        hr: \"fa fa-minus\",\n        eraser: \"fa fa-eraser\",\n        undo: \"fa-undo fa\",\n        \"full-screen\": \"fa fa-arrows-alt\",\n        info: \"fa fa-info\",\n    },\n    // 配置图片模块\n    // config image module\n    image: {\n        // 文件最大体积，单位字节  max file size\n        sizeLimit: 512 * 1024,\n        // 上传参数,默认把图片转为base64而不上传\n        // upload config,default null and convert image to base64\n        upload: {\n            url: null,\n            headers: {},\n            params: {},\n            fieldName: {}\n        },\n        // 压缩参数,默认使用localResizeIMG进行压缩,设置为null禁止压缩\n        // compression config,default resize image by localResizeIMG (https://github.com/think2011/localResizeIMG)\n        // set null to disable compression\n        compress: {\n            width: 1600,\n            height: 1600,\n            quality: 80\n        },\n        // 响应数据处理,最终返回图片链接\n        // handle response data，return image url\n        uploadHandler(responseText){\n            //default accept json data like  {ok:false,msg:\"unexpected\"} or {ok:true,data:\"image url\"}\n            var json = JSON.parse(responseText)\n            if (!json.ok) {\n                alert(json.msg)\n            } else {\n                return json.data\n            }\n        }\n    },\n    // 语言，内建的有英文（en-us）和中文（zh-cn）\n    //default en-us, en-us and zh-cn are built-in\n    language: \"zh-cn\",\n    // 自定义语言\n    i18n: {\n        //specify your language here\n        \"zh-cn\": {\n            \"align\": \"对齐方式\",\n            \"image\": \"图片\",\n            \"list\": \"列表\",\n            \"link\": \"链接\",\n            \"unlink\": \"去除链接\",\n            \"table\": \"表格\",\n            \"font\": \"文字\",\n            \"full screen\": \"全屏\",\n            \"text\": \"排版\",\n            \"eraser\": \"格式清除\",\n            \"info\": \"关于\",\n            \"color\": \"颜色\",\n            \"please enter a url\": \"请输入地址\",\n            \"create link\": \"创建链接\",\n            \"bold\": \"加粗\",\n            \"italic\": \"倾斜\",\n            \"underline\": \"下划线\",\n            \"strike through\": \"删除线\",\n            \"subscript\": \"上标\",\n            \"superscript\": \"下标\",\n            \"heading\": \"标题\",\n            \"font name\": \"字体\",\n            \"font size\": \"文字大小\",\n            \"left justify\": \"左对齐\",\n            \"center justify\": \"居中\",\n            \"right justify\": \"右对齐\",\n            \"ordered list\": \"有序列表\",\n            \"unordered list\": \"无序列表\",\n            \"fore color\": \"前景色\",\n            \"background color\": \"背景色\",\n            \"row count\": \"行数\",\n            \"column count\": \"列数\",\n            \"save\": \"确定\",\n            \"upload\": \"上传\",\n            \"progress\": \"进度\",\n            \"unknown\": \"未知\",\n            \"please wait\": \"请稍等\",\n            \"error\": \"错误\",\n            \"abort\": \"中断\",\n            \"reset\": \"重置\"\n        }\n    },\n    // 隐藏不想要显示出来的模块\n    // the modules you don't want\n    hiddenModules: [],\n    // 自定义要显示的模块，并控制顺序\n    // keep only the modules you want and customize the order.\n    // can be used with hiddenModules together\n    visibleModules: [\n      'font-header',\n      'font-name',\n      'text-bold',\n      'text-italic',\n      'text-underline',\n      'align-left',\n      'align-center',\n      'align-right',\n      'text-strikethrough',\n      'text-subscript',\n      'text-superscript',\n      'align-left',\n      'align-center',\n      'align-right',\n      'color',\n      'list-ol',\n      'list-ul',\n      'link',\n      'unlink',\n      'tabulation',\n      'hr',\n      'eraser',\n      'undo',\n      'full-screen'\n    ],\n    // 扩展模块，具体可以参考examples或查看源码\n    // extended modules\n    modules: {\n        //omit,reference to source code of build-in modules\n    }\n})\n```\n\n# 组件属性 attributes\n\n```html\n<editor :content=\"content\" :height=\"500\" :z-index=\"1000\" :auto-height=\"true\" :show-module-name=\"false\"></editor>\n```\n\n### content\n\n编辑内容\n\nThe html content to edit\n\n### height\n\n编辑器高度，如果设置了`auto-height`为true，将设置为编辑器的最小高度.\n\nThe height or min-height ( if auto-height is true ) of editor.\n\n### z-index\n\n层级，将会设置编辑器容量的`z-index`样式属性,默认为1000.\n\nSets z-index style property of editor,default 1000.\n\n### auto-height\n\n是否自动根据内容控制编辑器高度,默认为true.\n\nResize editor height automatically,default true.\n\n### show-module-name\n\n局部设置是否显示模块名称，会覆盖全局的设定.\n\nSet `showModuleName` locally.\n\n# 事件\n```html\n<editor @change=\"updateData\"></editor>\n```\n\n### change\n\n每次内容有变动时触发,回传改变后的内容.\n\nEmited when the content changes,and pass the current content as event data.\n\n# License\n[Apache-2.0](http://opensource.org/licenses/Apache-2.0)\n","readmeFilename":"README.md"}