【发布时间】:2021-07-14 12:27:39
【问题描述】:
在quill 1.x中,我们可以使用formats来配置需要的格式:
var quill = new Quill('#editor-container', {
modules: {
toolbar: false
},
placeholder: 'Compose an epic...',
formats: ['bold', 'italic', 'link', 'strike', 'script', 'underline'],
theme: 'snow' // or 'bubble'
});
但是,quill 2.0 删除了格式
upgrading-to-2-0.md: 格式被移除 - 注册表现在更加强大和安全。
如何使用寄存器而不是格式?
【问题讨论】: