5.3.0 • Published 4 years ago

@keystone-next/fields-markdown-legacy v5.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Markdown

This field inserts a string path into your schema based on the Text field type implementation, and renders a Markdown editor using CodeMirror.

Usage

This package isn't included with the keystone fields package and needs to be installed:

yarn add @keystone-next/fields-markdown-legacy
# or
npm install @keystone-next/fields-markdown-legacy

Then import it, and use it like any other field:

const { Markdown } = require('@keystone-next/fields-markdown-legacy');

keystone.createList('Post', {
  fields: {
    content: {
      type: Markdown,
    },
  },
});

Credit

The Editor implementation is based on SquidDev/MirrorMark.