0.1.16 • Published 10 months ago

react-notion-wysiwyg v0.1.16

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago
This library is in active development!

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!

npm downloads npm npm

DEMO

Install

yarn add react-notion-wysiwyg

or

npm install --save react-notion-wysiwyg

Use and Setup

import { Editor } from 'react-notion-wysiwyg';

Params:

PropTypeDescriptionDefault
editable(optional)booleanThis property is used to change the editor mode from "preview" to "edit" mode.true
mode(optional)light or darkThis prop is used to change the editor theme palette.light
defaultValue(optional)JSONContent or stringThe default value to use for the editor.defaultEditorContent
onUpdate(editor: EditorType) => voidA 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() => {}

Tech Stack

License

Licensed under the MIT license

0.1.14

10 months ago

0.1.15

10 months ago

0.1.16

10 months ago

0.1.11

11 months ago

0.1.12

11 months ago

0.1.13

11 months ago

0.1.10

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.9

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.2

1 year ago

0.1.0

1 year ago

0.1.1

1 year ago

0.0.2

1 year ago