Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 730 Bytes

README.md

File metadata and controls

34 lines (29 loc) · 730 Bytes

Sailkit

Sailkit is a toolkit editor suite based on tiptap and prosemirror.

Example code (React)

import { EditorContent, useEditor } from "@sailkit/react";
import { Document } from "@sailkit/document";
import { TextKit } from "@sailkit/text-kit";
import { BlockTile } from "@sailkit/blocktile";
import { Uuid } from "@sailkit/uuid";

export const Editor = () => {
  const editor = useEditor({
    extensions: [
        Document.extend({ content: "blockTile+" }),
        Uuid,
        BlockTile,
        TextKit,
    ],
  });

  return (
    <div>
      <EditorContent className={styles.editorWrapper} editor={editor}></EditorContent>
    </div>
  );
};