Upgrade Content Editor to TipTap v2
What?
Upgrade TipTap dependency to version v2 beta.
Why?
- TipTap v2 is a significant improvement over TipTap v1. It has a strong test suite for extensions, it fixes many bugs, and it provides a more consistent and stable API.
- The Content Editor is in early stages and it has a low level of coupling to TipTap v1. These circumstances makes the upgrade cost cheaper than at a later stage.
How?
These are the tasks involved in the upgrade based on a Spike I ran today:
-
Add new package dependencies -
Update Webpack cache group configuration to target the new tiptap dependencies instead of the old ones. -
Update the Markdown Serializer to account for the naming changes in several TipTap extensions. -
Update the Toolbar Button component to use the new Editor
class API.
Other Notes
- We can’t remove the old tiptap dependencies from the application because they are used by the feature that allows to copy HTML as Markdown in several parts of the application.
Edited by Enrique Alcántara