Skip to content
Discussion options

You must be logged in to vote

After days and days of attempts and trying to use AI to figure it out, I've finally got a solution that works. I tried custom handlers, overriding the Header extension, using the optimize method, and just couldn't get a solution which:

  • Sets an id or name tag on my headings to a slugified version of the contents.
  • Updates the id or name if the tag changes.

I actually gave up in frustration and switched to TipTap, but then I missed the out of the box features that QuillJS offers so I switched back.

After a lot of effort, the solution I came up with was embarrassingly simple.

I added a listener for the TEXT_CHANGE event and simply used raw JS to modify the contents.

  quill.on(Quill.events.T…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LondonAppDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant