banyudu / kedao

React 编辑器,从 braft-editor 修改而来,基于 draft-js 实现
https://kedao.vercel.app
MIT License
7 stars 2 forks source link

如何回填值 #46

Open Charles-ccc opened 7 months ago

Charles-ccc commented 7 months ago

在braft-editor这样使用的,不知道在刻刀要如何使用? import BraftEditor from 'braft-editor' // 定义一段HTML字符串 const htmlString =

Hello World!

// 将HTML字符串转换为编辑器所需要的EditorState实例 const editorState = BraftEditor.createEditorState(htmlString)