A Free, Block-Style Editor with Universal JSON Output
To get started using Editor.js, follow these steps:
Choose the most usable method of getting Editor.js for you. As described in Base Concepts, each Block in Editor.js is provided by a Plugin. There are simple external scripts with their own logic.
There is the only Paragraph block already included in Editor.js. Probably you want to use several Block Tools that should be installed and connected.
You can find some available Blocks here. Select the Blocks you need and follow the installation guide in their README.md files.
With Lexical, the source of truth is not the DOM, but rather an underlying state model that Lexical maintains and associates with an editor instance.
While HTML is great for storing rich text content it's often "way too flexible" when it comes to text editing. For example the following lines of content will produce equal outcome: