Skip to content

fonsp/editor

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 86.1%
  • CSS 6.6%
  • JavaScript 6.4%
  • Other 0.9%