seehar / quill-better-table-plus

fork by quill-better-table. Module for better table in Quill, more useful features are supported.
MIT License
8 stars 3 forks source link

Custom toolbar button format #4

Closed enzedonline closed 2 months ago

enzedonline commented 3 months ago

I've added a custom toolbar button to add a table using the format name 'better-table-plus'

I works, but I see the warning in the console: quill:toolbar ignoring attaching to nonexistent format better-table-plus

Is there a format I should use here?

enzedonline commented 2 months ago

Turns out QuillJS will always throw this warning if you don't add a handler to the toolbar options, even if you add a handler in your extension class.

I ended up creating a separate extension just for the button - it includes a dummy method for the toolbar handler just to get rid of the warning.