You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -58,8 +58,6 @@ final editorStyle = EditorStyle.defaultStyle();
58
58
final editorState = EditorState.empty(); // an empty state
59
59
final editor = AppFlowyEditor(
60
60
editorState: editorState,
61
-
shortcutEvents: const [],
62
-
customBuilders: const {},
63
61
editorStyle: editorStyle,
64
62
);
65
63
```
@@ -72,8 +70,6 @@ final editorStyle = EditorStyle.defaultStyle();
72
70
final editorState = EditorState(StateTree.fromJson(data));
73
71
final editor = AppFlowyEditor(
74
72
editorState: editorState,
75
-
shortcutEvents: const [],
76
-
customBuilders: const {},
77
73
editorStyle: editorStyle,
78
74
);
79
75
```
@@ -113,7 +109,7 @@ Please refer to our documentation on customizing AppFlowy for a detailed discuss
113
109
114
110
Below are some examples of shortcut event customizations:
115
111
116
-
*[BIUS](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/update_text_style_by_command_x_handler.dart) demonstrates how to make text bold/italic/underline/strikethrough through shortcut keys
112
+
*[BIUS](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/format_style_handler.dart) demonstrates how to make text bold/italic/underline/strikethrough through shortcut keys
117
113
*[Paste HTML](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/copy_paste_handler.dart) gives you an idea on how to handle pasted styles through shortcut keys
118
114
* Need more examples? Check out [Internal key event handlers](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers)
Check out the [complete code](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/underscore_to_italic_key_event_handler.dart) file of this example.
141
+
Check out the [complete code](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/underscore_to_italic.dart) file of this example.
135
142
136
143
137
144
## Customizing a Component
@@ -297,7 +304,7 @@ return AppFlowyEditor(
297
304
);
298
305
```
299
306
300
-

307
+

301
308
302
309
Check out the [complete code](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/network_image_node_widget.dart) file of this example.
0 commit comments