cityofaustin / atd-moped

A comprehensive mobility project tracking platform for Austin, Texas.
https://mobility.austin.gov/moped/
4 stars 3 forks source link

17450 explore replacing react quill #1377

Open tillyw opened 2 months ago

tillyw commented 2 months ago

Associated issues

fixes https://github.com/cityofaustin/atd-data-tech/issues/17450

Testing

URL to test:

https://deploy-preview-1377--atd-moped-main.netlify.app/

Steps to test:

this is a proof of concept at the moment, there are a few kinks to work out and features to add (resizing the editor to fit longer comments, adding a toolbar, a few other rich text and link functionalities). those will be addressed in a followup PR!


Ship list

mddilley commented 1 month ago

also wanted to note that Lexical adds the dir attribute to the parent p tags to show that we are using left to right text. The spans are set with white-space: pre-wrap too so that white space doesn't collapse when captured in the editor. I think both of these are improvements, but I wanted to see if anyone sees anything that I'm missing with the change.