This guide explains how to extend a foundational Lexical node, i.e. nodes found under https://github.com/facebook/lexical/blob/main/packages/lexical/src/nodes/, to work with Codox for real-time collaboration.
The following key steps will be explained:
- Extension: The recipes are largely similar for most Lexical nodes extensions
- Serialization: Converting the extended Lexical node into a Codox-compatible JSON format.
- Deserialization: Converting a Codox JSON node back into a Lexical-compatible format.