{"repo":"hinesboy/mavonEditor","free":true,"listed":false,"github":"https://github.com/hinesboy/mavonEditor","clone":"git clone https://github.com/hinesboy/mavonEditor.git","description":"mavonEditor - A markdown editor based on Vue that supports a variety of personalized features","language":"Vue","stars":6576,"topics":["vue","markdown","editor","javascript","html","webpack"],"license":"MIT","category":"productivity","readme_excerpt":"mavonEditor Vue2 ---- ------------------------------------------------------------ Vue3 English Documents Demo for jsfiddle example (图片展示) PC 查看更多图片点击这里... Install mavon-editor (安装) Use (如何引入) index.js : index.html 如何在nuxt.js 中使用 首先在工程目录plugins 下新建 vue-mavon-editor.js 然后在nuxt.config.js 中添加plugins配置 最后一步在页面或者组件中引入 更多引入方式点击这里... 如何获取并设置markdown-it对象... API 文档 props name 名称 type 类型 default 默认值 describe 描述 ------------ :-----: :---------: ---------------------------------------- value String 初始值 language String zh-CN 语言选择，暂支持 zh-CN: 简体中文, zh-TW: 正体中文 ， en: 英文 ， fr: 法语， pt-BR: 葡萄牙语， ru: 俄语， de: 德语， ja: 日语 fontSize String 14px 编辑区域文字大小 scrollStyle Boolean true 开启滚动条样式(暂时仅支持chrome) boxShadow Boolean true 开启边框阴影 boxShadowStyle String 0 2px 12px 0 rgba(0, 0, 0, 0.1) 边框阴影样式 transition Boolean true 是否开启过渡动画 toolbarsBackground String #ffffff 工具栏背景颜色 previewBackground String #fbfbfb 预览框背景颜色 subfield Boolean true true： 双栏(编辑预览同屏)， false： 单栏(编辑预览分屏) defaultOpen String 在单栏（ subfield=false ）时默认展示区域. edit： 默认展示编辑区域， preview： 默认展示预览区域 其他 = edit placeholder String 开始编辑... 输入框为空时默认提示文本 editable Boolean true 是否允许编辑 codeStyle String code-github markdown样式： 默认github, 可选配色方案 toolbarsFlag Boolean true 工具栏是否显示 navigation Boolean false 默认展示目录 shortCut Boolean true 是否启用快捷键 autofocus Boolean true 自动聚焦到文本框 ishljs Boolean true 代码高亮 imageFilter function null 图片过滤函数，参数为一个 File Object ，要求返回一个 Boolean , true 表示文件合法， false 表示文件不合法 imageClick function null 图片点击事件，默认为预览，可覆盖 tabSize Number \\t tab转化为几个空格，默认为\\t html ","default_branch":null,"files":null,"tree":[],"storefront":"/r/hinesboy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hinesboy/mavonEditor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}