Simple Prose

Simple content editor based off ProseMirror with a simple extension system for defining functionality.

Html Editor

format_bold


Value

<p></p>

Example

import { HtmlEditor, HtmlExtensions } from "@blinkk/simple-prose";

const extensions = [
  new HtmlExtensions.StrongExtension(),
];
const editor = new HtmlEditor(document.querySelector('.editor'), {
  "extensions": extensions
})

Markdown Editor

format_bold


Value

Example

import { MarkdownEditor, MarkdownExtensions } from "@blinkk/simple-prose";

const extensions = [
  new MarkdownExtensions.StrongExtension(),
];
const editor = new MarkdownEditor(document.querySelector('.editor'), {
  "extensions": extensions
})

Installation

npm install @blinkk/simple-prose