Stream: show and tell

Topic: simple text editor example


view this post on Zulip Luke Boswell (Aug 07 2024 at 04:49):

I made a simple example using the quill rich text editor library and basic-webserver, and thought I might share it here for anyone interested.

I was looking for a simple way to give my htmx apps an editor and found this library which looks nice.

Here is a gist with the source code -- I'm currently using roc built from source -- but this should work with the latest nightlies.

quill-1.gif

view this post on Zulip Luke Boswell (Aug 07 2024 at 04:50):

This demo just loads some content from a sqlite database, so when you refresh the page it remembers your last input. It also uses from client-side JS to debounce the updates back to the server.

view this post on Zulip Peter Marreck (Sep 12 2024 at 12:55):

looks cool! how do I specify the platform if I want to try this locally? (I'm still a Roc noob...)

view this post on Zulip Luke Boswell (Sep 12 2024 at 22:57):

@Peter Marreck I updated the gist to use the latest version of basic-webserver

https://gist.github.com/lukewilliamboswell/567348a9bfa85e4e9cd2f04939de6d08

I made that before the changes landed in a release so it was still using an older version and a local path. Should be usable now just using a nightly roc, let me know if you have any issues.

view this post on Zulip Peter Marreck (Sep 13 2024 at 13:42):

Nice! Works great now!
I used Quill on a project like 7 years ago and really liked it, but then it got abandoned and was in danger of me having to swap it out with something else due to lack of updates; good to see someone's picked up the slack on it


Last updated: Jul 06 2025 at 12:14 UTC