Updates are released almost every day, and I hope it will soon work relatively stable and have a convenient API.
Your feedbacks is highly important to us, help make this product better.
This is my first experience in library development, so some errors or improvements might take time, but ultimately they will be addressed, as we are constantly learning! I'll also be glad to welcome contributors!
yarn add react-notion-wysiwyg
or
npm install --save react-notion-wysiwyg
import { Editor } from 'react-notion-wysiwyg';
Prop | Type | Description | Default |
---|---|---|---|
editable (optional) |
boolean |
This property is used to change the editor mode from "preview" to "edit" mode. | true |
mode (optional) |
light or dark |
This prop is used to change the editor theme palette. | light |
defaultValue (optional) |
JSONContent or string |
The default value to use for the editor. | defaultEditorContent |
onUpdate |
(editor: EditorType) => void |
A callback function that is called whenever the editor is updated | () => {} |
onUploadImage |
(file: File) => string or Promise<string> |
A callback function that is called whenever the image upload | () => {} |
Licensed under the MIT license