Dinos in the document

Say you need to include exotic, site-specific elements in your documents. These may be handles to other objects in our system (documents, users, etc), domain-specific widgets, or, in the case of this demo, dinosaurs.

ProseMirror allows you to define custom document elements, and include them in your document schema. You can then use them as proper semantic element in your documents. In the editor below, dinosaurs are defined as document nodes that may occur anywhere where text can occur.

The source code for this example can be found on github.