1.2.0 • Published 1 year ago
ckeditor-online v1.2.0
ckeditor-online
CKEditor 5 editor build generated by the Online builder tool
Install
npm i ckeditor-online
Usage
import { CKEditor } from "@ckeditor/ckeditor5-react";
import Editor from "ckeditor-online";
export function RichTextEditor() {
return (
<CKEditor
editor={Editor}
data="<p>Hello from CKEditor 5!</p>"
onChange={(event: any, editor: { getData: () => any }) => {
const data = editor.getData();
console.log({ event, editor, data });
}}
/>
);
}