Installation
npm install @aeaton/react-prosemirror --save
or
yarn add @aeaton/react-prosemirror
Demo
View demo
Usage
import React from 'react'
import { HtmlEditor } from '@aeaton/react-prosemirror'
import * as options from '@aeaton/react-prosemirror-config-full'
import { icons } from '@aeaton/react-prosemirror-icons-fontawesome'
const menu = options.menu(options.schema, icons)
const Editor = ({ value, onChange }) => (
<HtmlEditor
options={options}
menu={menu}
value={value}
onChange={onChange}
/>
)
export default Editor