Hi, I’m trying to use wire:model on a contenteditable div but I can’t figure how to make it work.
Has anyone done that before?
Hi, I’m trying to use wire:model on a contenteditable div but I can’t figure how to make it work.
Has anyone done that before?
Fixed my problem:
<div x-data="{ content: @entangle('model.text') }">
<div x-on:blur="content = $event.target.innerHTML" contenteditable="true">{{ $model->text }}</div>
</div>