CDN for "vanilla Javascript" ? #2529
Replies: 3 comments
-
There was a CDN example but there are some issues with skypack and esm.sh so we decided to remove it from the docs for now. |
Beta Was this translation helpful? Give feedback.
-
In the meantime, the CDN version has been re-added to the docs (I think I'm guilty of that PR). And the CDN version is again having issues. It loads normally, but it breaks when you hit Enter at the end of the text. FYI: I already posted this on esm.sh's repo hoping @ije can do some magic. I'm wondering if a clean solution would be updating Tiptap's repo -- maybe the pinning the Error in consoleNetwork tabLooking at the network tab, I can see that InspectingAnd they load 2 different versions Steps to reproduce
What I've tried
|
Beta Was this translation helpful? Give feedback.
-
i don't think you can it now. you can use import maps to make the dependency as an exteranl module, check https://preactjs.com/guide/v10/getting-started#using-preact-with-htm-and-importmaps |
Beta Was this translation helpful? Give feedback.
-
Regarding the discussion at https://tiptap.dev/installation#vanilla-java-script
This apparently loads Javascript from the local npm installation. The mechanism for getting the Javascript into the browser Javascript runtime is not obvious and it seems like it might not be robust.
Is it possible to explicitly load all the TipTap Javascript (and other resources) over the internet using script tags in the HTML header ? Many other in-browser editors can do this.
My apologies if this is a dumb question.
Beta Was this translation helpful? Give feedback.
All reactions