-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
binding editor HTML #25
Comments
Try this. its working for me.
|
This still seems to be an issue for me.. neither of the above techniques trigger a change when editing HTML:
|
It seems that we're missing an Modifying this line to: <textarea
bind:this={$references.raw}
on:input={(event) => _onChange(event.target.value)}
class="cl-textarea"
style="max-height: {height}; min-height: {height}"
/> And it behaves as I'd expect. |
Thank you @acoyfellow your solution worked for my problem. |
First off, thanks for this! Super useful!
I am using svelte also and found myself wanting do something like
<Editor bind:html height={"200"} />
, but had to do this:I'm probably missing something, but the simpler, more idiomatic version with
bind:html
did not work for me.Even then, the
$on('change')
doesn't seem to fire when editing raw htmlAm I doing it wrong? very likely xD
The text was updated successfully, but these errors were encountered: