Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 916 Bytes

README.CN.md

File metadata and controls

51 lines (35 loc) · 916 Bytes

bricky

一款基于 slate.js 的富文本编辑器

react    slate.js    typescript    antd    rich-editor    

使用

1、安装

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" />

本地安装调试

cd ~/bricky       # 进入本项目根目录
npm link          # 将本项目包创建全局链接,类似安装到全局
cd ~/my-project   # 进入其他项目目录
npm link bricky   # 链接 bricky 包, --save: 保存到 package.json