Like Notion, it is a WYSIWYG editor with multiple features.
npm install joditor
yarn add joditor
import React from "react";
import Joditor from "joditor";
const Editor = () => {
return (
<div>
<Joditor onSubmit={(dom) => {}} onCancel={() => {}} />
</div>
);
};
title | Type | Default | Description |
---|---|---|---|
onSubmit | func | null | submit callback. has dom as argument (dom)=> ... |
onCancel | func | null | cancel callback. ()=> ... |