trix icon indicating copy to clipboard operation
trix copied to clipboard

When style button is clicked in te7a-houdini/laravel-trix changes are not applied

Open sergeynilov opened this issue 3 years ago • 0 comments

In Laravel 8 / livewire 2.5 / alpinejs 3 application I use "te7a-houdini/laravel-trix": "^2.0.5", which is warpper for https://github.com/basecamp/trix and I found that in livewire blade template having :

<div class="p-2 w-full">
    <div class="body-content" wire:ignore>
        <trix-editor
            class="trix-content"
            x-ref="trix"
            wire:model.debounce.1000ms="form.content"
            wire:key="trix-content-unique-key"
        ></trix-editor>
    </div>
    <x-jet-input-error for="form.content" class="mt-2"/>
</div>

also I tried with : wire:model.defer text entered in trix editor if not applied at form.content var when user clicks on style buttons of trix. Can it be fixed somehow? Can I on submit call apply method manually?

Thanks!

sergeynilov avatar Oct 26 '21 19:10 sergeynilov