-
```
import ColorPicker from "braft-extensions/dist/color-picker";
import "braft-extensions/dist/color-picker.css";
import "braft-editor/dist/index.css";
import BraftEditor, { EditorState } from "b…
Abson updated
3 years ago
-
今天使用Braft Editor做富文本框时,报错window is not defined,原因是使用了nextjs做ssr(服务端渲染),nodejs中是没有window的,所以无法渲染。
```
import BraftEditor from 'braft-editor'
// 报错window is not defined
```
查阅了一些资料,可以使用懒加载方式…
-
```javascript
import BraftEditor from 'braft-editor';
import 'braft-editor/dist/index.css';
import 'braft-extensions/dist/table.css';
import HeaderId from 'braft-extensions/dist/header-id';
impor…
-
import 'braft-editor/dist/index.css';
import 'braft-extensions/dist/code-highlighter.css';
import React from 'react';
import BraftEditor from 'braft-editor';
import CodeHighlighter from 'braft-ext…
-
https://github.com/margox/braft-editor
-
I saw it used in braft-editor but failed to install because npm couldn't find it.
-
我照着官网“在Ant Design表单中使用”,把官网的代码拷贝下来,braft-editor不起作用呢,作者可以把官网的几个示例代码放出来参考一下吗,非常感谢。
![111](https://user-images.githubusercontent.com/11499014/63503399-f9513a00-c501-11e9-860b-e38ed3dd0750.png)
![222](…
-
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR! dev react@"^17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.0.2|| ^16.0…
-
- React动画库 react-spring [https://github.com/pmndrs/react-spring](https://github.com/pmndrs/react-spring)
- 思维导图 jsmind [https://github.com/hizzgdev/jsmind](https://github.com/hizzgdev/jsmind)
- 视频播…
-
在集成 braft-extensions 的 table 扩展后,
edge浏览器从网页复制内容粘贴时报错,其他浏览器目前正常
braft-editor:v2.2.9
braft-extensions:v0.0.18
```
braft-extensions/src/table/converts.js
export const tableImportFn = (nodeName, no…