Lexical
Meta's open-source rich-text editor framework — used by Facebook's posts editor and as Ghost's native post format.
Definition
Lexical is Meta's framework for building rich-text editors with a clean AST as the canonical document model. Ghost (the publishing platform) stores posts as Lexical JSON internally; the rendered HTML is a derived artefact regenerated on every save. Editing a Ghost post programmatically via the Admin API is most reliable when done against the Lexical tree, not the HTML.
When to use
See also
- API — A formal contract that lets one software system call functions or fetch data from another, usually over HTTP.