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
You can insert dinosaurs by typing their names enclosed by
brackets, such as
[pterodactyl]. The insert menu bar
also allows you to insert dinosaurs.
This paragraph , for example,
is full of
Dinosaurs can be selected, copied, pasted, dragged, and so