CKEditor 5 editor build generated by the Online builder tool
npm i ckeditor-online
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 });
}}
/>
);
}