-
```braft-editor```提供了`initialContent`,`contentId `,`onChange`,`onRawChange `和`onHTMLChange `等参数来实现数据控制,但是因为`onChange`的回调限定为`raw`或者`html`,会丢失组件状态,无法实现组件的受控。
建议采用完整的状态`EditorState`,结合经典的`defaultValue…
-
```json
// 版本号
"braft-editor": "^2.3.9",
"react": "^16.13.1"
```
```ts
Property 'defaultProps' does not exist on type 'typeof BraftEditor'.ts(2339)
```
[error重现地址](https://codesandbox.…
-
- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.
### Reproduction link
[https://www.nolink.com](http…
-
### 🐛 bug 描述
我把我项目的源代码拷给别人,结果别人npm install 之后报错。报错信息如下。
```
Unexpected keys "@@dva", "global", "settings", "dashboardAndanalysis", "dashboardAndmonitor", "dashboardAndworkplace", "admin", "area",…
-
初始化后,就出现这个错误,猜测可能是我用了**useState** 的原因, 请问该怎么解决这个bug
![image](https://user-images.githubusercontent.com/6580897/73476087-932fe380-43cc-11ea-9d00-05d332e9671c.png)
```
import React,{useState}…
ghost updated
4 years ago
-
https://umijs.org/zh/guide/faq.html#ssr
这里的方法不能解决。我只引用,还没使用,就出错了。
-
### 🥰 需求描述
或者有推荐的富文本编辑器吗?
-
和 ant.design 的form 表单一起使用,在编辑数据的时候,数据不显示
```jsx
{form.getFieldDecorator('ftext', {
validateTrigger: 'onBlur',
rules: [{
required: true,…
-
I got below error when using braft-editor with next.js
the version braft-editor is "v2.3.9"
```
ReferenceError: window is not defined
at Object. (my_project/node_modules/braft-editor/dist/…
-