livewire-quill-text-editor
livewire-quill-text-editor copied to clipboard
[feat] Add support for toolbar
trafficstars
Could we create a new trait for configuring the Quill toolbar? Alternatively, do you have any other suggestions?
Just woke up, just a quick thought.
What about something like this?
public function mount(string $theme = 'snow', string $editorId = null): void
{
$this->theme = $theme;
$this->quillId = $editorId ?? 'ql-editor-'.Str::uuid()->toString();
}
Now you can add something to the config file for each unique editor id, allowing multiple editors with different configs.
Alright, but how do you plan to handle the configuration for the toolbar?
Good question, haven't really thought it through yet. Hopefully I can find some time this week to test some things out. Maybe your suggestions will be better.
I'll get back to you!