👩‍🏫 Update tutorial example to match docs

pull/4291/head
himynameisdave 7 years ago
parent d031149b4e
commit 9a87cc712f
No known key found for this signature in database
GPG Key ID: CF799D9C390BE444

@ -2,11 +2,16 @@
title: Contenteditable bindings title: Contenteditable bindings
--- ---
Elements with a `contenteditable="true"` attribute support `textContent` and `innerHTML` bindings: Elements with the `contenteditable` attribute support the following bindings:
- [`innerHTML`](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML)
- [`innerText`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText)
- [`textContent`](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent)
There are slight differences between each of these, read more about them [here](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent#Differences_from_innerText).
```html ```html
<div <div
contenteditable="true" contenteditable="true"
bind:innerHTML={html} bind:innerHTML={html}
></div> ></div>
``` ```

Loading…
Cancel
Save