我已经安装了 ngx-quill,quill 和 npm install。我想知道如何将表格功能添加到工具栏,就像这个代码笔 https://codepen.io/quill/pen/QxypzX
但如果我可以将此功能添加为下拉列表,将不胜感激
我已尝试手动将其添加到 DOM,但它不适用,并且还尝试将其添加到工具栏按钮出现但我如何访问此功能。
public config = {
toolbar: [
['bold', 'italic', 'underline', 'strike'],
['blockquote', 'code-block'],
[{ header: 1 }, { header: 2 }],
[{ list: 'ordered' }, { list: 'bullet' }],
[{ script: 'sub' }, { script: 'super' }],
[{ indent: '-1' }, { indent: '+1' }],
[{ direction: 'rtl' }],
[{ size: ['small', false, 'large', 'huge'] }],
[{ header: [1, 2, 3, 4, 5, 6, false] }],
[{ color: [] }, { background: [] }],
[{ font: [] }],
[{ align: [] }],
['clean'],
['table'], // Inputted table Button
],
};