/editor

Primary LanguageTypeScript

editor

This is a rich text editor built upon the ProseMirror framework. It is based off tiptap and rich-markdown-editor, but tries to stay agnostic to Vue and React.

usage

🚧 The recommended way to use this editor is to fork this repo and use it as a reference in building your own rich text editor; there is no substitute to learning ProseMirror or reading the docs. This repo is a public mirror of private development branch.

To use with plain JavaScript, pass in the DOM element where you'd want to mount as place and an array of extensions to use.

import { Editor, Text, Paragraph, Doc } from "editor";

let place = document.querySelector("#mount")
let editor = new Editor({
  place,
  extensions: [
    new Text(),
    new Paragraph(),
    new Doc(), 
  ]
})

similar libraries