Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

braft-editor使用 #10

Open
itstrive opened this issue Oct 15, 2018 · 0 comments
Open

braft-editor使用 #10

itstrive opened this issue Oct 15, 2018 · 0 comments
Labels
article small article

Comments

@itstrive
Copy link
Owner

编辑器回显注意事项

此处说的1版本,正常情况使用 initialContent , 文档也说了,默认只会在第一次传入的时候有效,也就是比如使用react异步获取的值,就可能出问题。
解决:

  • 配合 contentId 属性,一定注意, contentId 必须也变化,比如: 随机一个
  • 使用实力的方法 setContent

具体参考: https://github.com/margox/braft-editor/blob/old-master/README.md

@itstrive itstrive added the article small article label Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
article small article
Projects
None yet
Development

No branches or pull requests

1 participant