Skip to content

diamondniam/editor

 
 

Repository files navigation

Kona Editor

Installing

npm install @use-kona/editor

Using

import { 
  KonaEditor, 
  BasicFormattingPlugin,
  /* rest of the plugins */
} from "@use-kona/editor";

const defaultValue = [
  { type: 'paragraph', children: [{ text: '' }]}
];

export const Editor = () => {
  return (
    <KonaEditor
      plugins={[
        new BasicFormattingPlugin(),
        // rest of the plugins
      ]}
      initialValue={defaultValue}
      onChange={console.log}
    />
  )
}

About

Rich text editor with plugins based on Slate.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 80.3%
  • MDX 11.1%
  • CSS 8.6%