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
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
extend it with
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
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.