chore: update README.MD
This commit is contained in:
parent
0ccc7777c6
commit
74cd881677
1 changed files with 7 additions and 7 deletions
|
|
@ -67,7 +67,7 @@ You can also create an editor from a JSON object in order to configure your init
|
|||
```dart
|
||||
final json = ...;
|
||||
final editorStyle = EditorStyle.defaultStyle();
|
||||
final editorState = EditorState(StateTree.fromJson(data));
|
||||
final editorState = EditorState(Document.fromJson(data));
|
||||
final editor = AppFlowyEditor(
|
||||
editorState: editorState,
|
||||
editorStyle: editorStyle,
|
||||
|
|
|
|||
Loading…
Reference in a new issue