Setting up a full editor ‘from scratch’, using only the core
libraries, requires quite a lot of code. To be able to get started
quickly with a pre-configured editor, we provide the
prosemirror-example-setup
package, which creates an array of plugins for you, configured to
create a passable editing interface for a given schema. In this
example, we use the basic
schema and
extend it with
lists.
Hello ProseMirror
This is editable text. You can focus it and start typing.
To apply styling, you can select a piece of text and manipulate
its styling from the menu. The basic schema
supports emphasis, strong
text, links, code
font
, and images.
Block-level structure can be manipulated with key bindings (try
ctrl-shift-2 to create a level 2 heading, or enter in an empty
textblock to exit the parent block), or through the menu.
Try using the “list” item in the menu to wrap this paragraph in
a numbered list.