Skip to content

longlongago2/bricky

Repository files navigation

bricky

A rich editor based on slate.js.

react    slate.js    typescript    antd    rich-editor    

Usage

1.Install

npm install bricky

2.Javascript / Typescript

app.tsx

import { Editor } from 'bricky';

tsconfig.json

{
  "compilerOptions": { },
  "include": [
    "src",
    "./node_modules/bricky/esm/slate.d.ts" // extend slate CustomTypes
    ]
}

or

vite-env.d.ts

/// <reference types="bricky/esm/slate.d.ts" />

Debugging / Local install

cd ~/bricky       # go into this package directory
npm link          # creates global link
cd ~/my-project   # go into some other package directory.
npm link bricky   # link-install the package, --save: change the package.json