Thanks to visit codestin.com
Credit goes to github.com

Skip to content

use-kona/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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •