Skip to content
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

Please allow for vanilla javascript #88

Open
tiagorangel2011 opened this issue Jun 5, 2024 · 7 comments
Open

Please allow for vanilla javascript #88

tiagorangel2011 opened this issue Jun 5, 2024 · 7 comments

Comments

@tiagorangel2011
Copy link

I would love to use this, but the app I'm working on uses vanilla javascript. No frameworks, no fancy stuff.

@flatsiedatsie
Copy link

Related: #87

@davidmyersdev
Copy link
Owner

@tiagorangel2011 I'm not sure what you mean. The core library is already built to work with vanilla JS.

@davidmyersdev davidmyersdev closed this as not planned Won't fix, can't repro, duplicate, stale Jul 2, 2024
@flatsiedatsie
Copy link

That's wonderul news.

Could you perhaps create a tiny example for that use case? How would I use the library to generate a minimal text area and UI?

@tiagorangel2011
Copy link
Author

Using the HTML provided in the README results in a error (see #87)

  <div id="editor"></div>
  <script type="module">
	  import { ink } from 'https://esm.sh/ink-mde@0.22.0';
	  ink(document.getElementById('editor')!);
  </script>
330915941-8d0a12de-ea98-42cc-888f-54d5a7333574

@flatsiedatsie
Copy link

Using the HTML provided in the README results in a error (see #87)

  <div id="editor"></div>
  <script type="module">
	  import { ink } from 'https://esm.sh/ink-mde@0.22.0';
	  ink(document.getElementById('editor')!);
  </script>
330915941-8d0a12de-ea98-42cc-888f-54d5a7333574

Yes, that was the exact same issue I was having: #87

@davidmyersdev
Copy link
Owner

@tiagorangel2011 @flatsiedatsie it sounds like there might be an issue with the esm.sh service then. If you install it via NPM, I think it would work. I'll open this back up to investigate that service though.

@davidmyersdev davidmyersdev reopened this Aug 24, 2024
@flatsiedatsie
Copy link

Wonderful, thank you!

Would it perhaps be possible to provide a single-file version of the library? For privacy protection reasons I can't use a CDN, the library files must be provided from the same server as the rest of the project. I've tried downloading the files form ESM, but that's quite hard to do, because it links to many other files, and those link to yet more files, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants