xdan / jodit

Jodit - Best WYSIWYG Editor for You
https://xdsoft.net/jodit/
MIT License
1.62k stars 342 forks source link

Laravel Livewire and Jodit #694

Open shimsag opened 3 years ago

shimsag commented 3 years ago

I'm trying to embed Jodit editor in my Laravel App using Livewire, but can't get it to work.

My code is below.. Any help would be appreciated !

<div wire:ignore
    x-data="{ }"
    x-init="
            editor = new Jodit('#editor');
            editor.value = @entangle($attributes->wire('model'));
           "
    class="w-full h-full">
    <textarea id="editor" name="editor" ></textarea>
</div>
paulgodard commented 2 years ago

Hi. I am using jodit on laravel but not with livewire. So not sure about livewire compatibility, but in my case, I simply have :

in the blade view page, and the script at the bottom :

MotionPhix commented 8 months ago

Hi. I am using jodit on laravel but not with livewire. So not sure about livewire compatibility, but in my case, I simply have :

in the blade view page, and the script at the bottom :

So how are you getting the value of the textarea into Laravel?