pages/examples/basic/index.md
!{"template": "example", "title": "ProseMirror basic example"}
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.
PART(code)
And this is what it looks like:
@HTML
These plugins are created by the example setup:
Many ProseMirror packages come with a CSS file (linked under the
"style" field in package.json). You must make sure to load these
into the document that contains your editor. Some bundlers will help
you with this, but if they don't, either create link tags like below,
or make sure these files get concatenated into your bundled CSS.
<link rel=stylesheet href="path/prosemirror-view/style/prosemirror.css">
<link rel=stylesheet href="path/prosemirror-menu/style/menu.css">
<link rel=stylesheet href="path/prosemirror-example-setup/style/style.css">
<link rel=stylesheet href="path/prosemirror-gapcursor/style/gapcursor.css">