Modifying the Schema
The nodes conform to the HTML elements such as paragraphs, headings, lists, tables, images, and so on. The marks conform to the inline formatting options such as Bold, Italic, FontSize, and so on. By modifying the default, built-in schema, you can add additional types of nodes and marks as well as edit and remove the existing ones.
The following example demonstrates how to:
- Add a new node to nodes object of the schema.
- Add a new mark to marks object of the schema.
- Add a custom attribute to the existing nodes.
The following example demonstrates how to implement a custom Editor schema.