vue-quill-editor
vue-quill-editor copied to clipboard
vue-quill-editor 自动生成<p><br><p> , matchVisual:false 应该如何设置?
options里面的modules中clipboard进行添加。
editorOption = { modules: { clipboard: { matchVisual: false } } }
事实证明这样是不生效的
------------------ 原始邮件 ------------------ 发件人: "paobai"<[email protected]>; 发送时间: 2020年11月24日(星期二) 晚上6:01 收件人: "surmon-china/vue-quill-editor"<[email protected]>; 抄送: "Smile"<[email protected]>; "Author"<[email protected]>; 主题: Re: [surmon-china/vue-quill-editor] vue-quill-editor 自动生成<p><br><p> , matchVisual:false 应该如何设置? (#428)
options里面的modules中clipboard进行添加。
editorOption = { modules: { clipboard: { matchVisual: false } } }
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
emmm,我刚刚搜索解决方案然后就是通过这个方案解决的。对了quill版本要大于1.3。如果不适用与你,那我也没法咯。
<quill-editor v-model="dataForm.content" :options="editorOption" ref="myQuillEditor"> </quill-editor>
editorOption = { modules: { clipboard: { matchVisual: false } } }
百度的我也试过了,最终换了一个编辑器,没有这个了
------------------ 原始邮件 ------------------ 发件人: "paobai"<[email protected]>; 发送时间: 2020年11月24日(星期二) 晚上6:09 收件人: "surmon-china/vue-quill-editor"<[email protected]>; 抄送: "Smile"<[email protected]>; "Author"<[email protected]>; 主题: Re: [surmon-china/vue-quill-editor] vue-quill-editor 自动生成<p><br><p> , matchVisual:false 应该如何设置? (#428)
emmm,我刚刚搜索解决方案然后就是通过这个方案解决的。对了quill版本要大于1.3。如果不适用与你,那我也没法咯。 <quill-editor v-model="dataForm.content" :options="editorOption" ref="myQuillEditor"> </quill-editor> editorOption = { modules: { clipboard: { matchVisual: false } } }
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
If you're trying to paste the text from the clipboard and remove the styles you can look at my package: vue-quill-plain-clipboard
options里面的modules中clipboard进行添加。
editorOption = { modules: { clipboard: { matchVisual: false } } }
亲测有效,感谢大佬