Skip to content

peter-resmed/rich-text-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rich-text-editor

This repository presents a CKEditor 5 editor build generated by the Online builder tool

Install

npm i git+git@github.com:peter-resmed/rich-text-editor.git

Usage

import { CKEditor } from "@ckeditor/ckeditor5-react";
import Editor from "ckeditor5-custom-build";

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 });
      }}
    />
  );
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published