x-model support for contenteditable elements #893
MichaelBrauner
started this conversation in
3. Feature Ideas
Replies: 2 comments 6 replies
-
|
Have you figured out an alternate approach? You probably need to set the initial value inside <div x-data="{search: 'default'}" x-init="$refs.search.textContent = search">
<span contenteditable x-ref="search" @input="search = $event.target.textContent"></span>
</div>Here's a demo: https://codepen.io/KevinBatdorf/pen/gOwORNw |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
I was wondering if maybe the best answer to this question has changed since the introduction of programmatic access for |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be very nice, to have something like that:
Right now - x-model is only working with input elements.
Beta Was this translation helpful? Give feedback.
All reactions