Skip to content

Commit

Permalink
Update cdn.md
Browse files Browse the repository at this point in the history
removed esm.run. I couldn't solve the issue.
  • Loading branch information
RicoTrevisan authored May 31, 2023
1 parent 150ba99 commit 405977c
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions docs/installation/cdn.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CDN

It's also possible to run Tiptap directly on the browser by using CDNs like [esm.sh](https://esm.sh), jsDeliver's [esm.run](https://esm.run). (Unfortunately [Skypack](https://skypack.dev) has not been reliable in our testing).
It's also possible to run Tiptap directly on the browser by using CDNs like [esm.sh](https://esm.sh).
(Unfortunately [Skypack](https://skypack.dev) has not been reliable in our testing).

## ESM.SH

Expand All @@ -27,30 +28,6 @@ It's also possible to run Tiptap directly on the browser by using CDNs like [esm
</html>
```

## ESM.RUN

```html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<div class="element"></div>
<script type="module">
import { Editor } from 'https://cdn.jsdelivr.net/npm/@tiptap/core/+esm'
import StarterKit from 'https://cdn.jsdelivr.net/npm/@tiptap/starter-kit/+esm'
const editor = new Editor({
element: document.querySelector('.element'),
extensions: [
StarterKit,
],
content: '<p>Hello World!</p>',
})
</script>
</body>
</html>
```

---

Expand Down

0 comments on commit 405977c

Please sign in to comment.