livewire-quill-text-editor icon indicating copy to clipboard operation
livewire-quill-text-editor copied to clipboard

[feat] Add support for toolbar

Open dasundev opened this issue 1 year ago • 3 comments
trafficstars

Could we create a new trait for configuring the Quill toolbar? Alternatively, do you have any other suggestions?

dasundev avatar May 01 '24 08:05 dasundev

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.

pvdptje avatar May 07 '24 05:05 pvdptje

Alright, but how do you plan to handle the configuration for the toolbar?

dasundev avatar May 07 '24 05:05 dasundev

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!

pvdptje avatar May 07 '24 17:05 pvdptje