AVAnnotate / admin-client

Application for building AVAnnotate websites
0 stars 0 forks source link

Add table of contents component to rich text editor #143

Closed camdendotlol closed 1 month ago

camdendotlol commented 1 month ago

Summary

This PR adds a new table-of-contents block element type to the rich text editor on the page form.

On the admin side, we use a placeholder similar to the way we use a placeholder for the event embeds:

Screenshot 2024-10-02 at 3 28 24 PM

The project client will build the actual list of pages during the build process. In theory, we could display an actual table of contents right here in the RTE, but it would add complexity to the component and it might be confusing to insert a bunch of text that the user can't edit.

netlify[bot] commented 1 month ago

Deploy Preview for avannotate-staging ready!

Name Link
Latest commit 65e859836bd2352806be4d4d0aa045e8ccfd8ed2
Latest deploy log https://app.netlify.com/sites/avannotate-staging/deploys/66fdaae659ec270008f1efb1
Deploy Preview https://deploy-preview-143--avannotate-staging.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.