Member-only story
A Document Revisions System in JavaScript
3 min readAug 2, 2022
Quill is a rich text editor that supplies deltas of change. So you can build quite a sophisticated system of document revisions within the browser.
Let’s first go over how you use Quill.
Quill in JavaScript
Lots of customizations of the toolbar are possible.
How to Get The Content
Plain Text
quill.getText()
HTML
quill.root.innerHTML
Delta
Yielding the change as Quill Delta,
quill.getContents()
Events
One can listen to events, and what you usually want is the HTML,
Text Change