The script has change a little since the publication of the article and I did not reflect it in it. The docs at least is up-to-date 😅.
Here's the updated snippet:
<html><head><script type="module"src="https://unpkg.com/@deckdeckgo/inline-editor@latest/dist/deckdeckgo-inline-editor/deckdeckgo-inline-editor.esm.js"></script></head><body><divcontenteditable>This text will be editable</div>
<h1contenteditable>This title too</h1>
<deckgo-inline-editor></deckgo-inline-editor></body></html>
That's a typo 😅. I have taken (copy/paste) the above example from content of our editor for slides in which these slot are useful. You can safely ignore these. I have edited my above example.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi,
What did I wrong? I can't see anything on my page?
Hi @tohidazizi ,
The
script
has change a little since the publication of the article and I did not reflect it in it. The docs at least is up-to-date 😅.Here's the updated snippet:
Thanks man. This one worked well!
Sweet! Let me know if you have more questions or notice any issue.
One last thing: what is the difference between
slot="content"
andslot="title"
, can't find it in the doc. What are other options for "slot" here?That's a typo 😅. I have taken (copy/paste) the above example from content of our editor for slides in which these
slot
are useful. You can safely ignore these. I have edited my above example.