Remix.run Logo
phonon 3 days ago

912 bytes....

https://sylvainpolletvillard.github.io/spell/demo.html

Imustaskforhelp 3 days ago | parent [-]

what is this tom foolery. I am so amazed by it, this also seems to be a WYSIWYG but though it doesn't support markdown exactly per se but it has way more features than overtype (no offense to overtype which is also a really really cool project)

My mind is utterly blown with what you can do with 912 bytes.

I imagine that I can create a really simple blog post that can load under 14 kb so that it can be sent in a (single request?) while still having comment feature with this one while also being super fast..

So good that words can't explain lol

WA 3 days ago | parent [-]

It uses queryCommandState(), which is a deprecated browser feature [1]. It's quite common in many simpler WYSIWYG editors. Thing is, it might be so widespread that some people claim that it will never be truly deprecated.

OverType doesn't use this and the result is that you gotta build all the features in JS.

[1]: https://developer.mozilla.org/en-US/docs/Web/API/Document/qu...