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
[developing packages and plugins](https://flutter.dev/developing-packages).
11
+
[developing packages and plugins](https://flutter.dev/developing-packages).
12
12
-->
13
13
14
14
<h1align="center"><b>AppFlowy Editor</b></h1>
@@ -51,7 +51,7 @@ flutter pub get
51
51
52
52
## Creating Your First Editor
53
53
54
-
Start by creating a new empty AppFlowyEditor object.
54
+
Start by creating a new empty AppFlowyEditor object.
55
55
56
56
```dart
57
57
final editorState = EditorState.empty(); // an empty state
@@ -60,7 +60,7 @@ final editor = AppFlowyEditor(
60
60
);
61
61
```
62
62
63
-
You can also create an editor from a JSON object in order to configure your initial state.
63
+
You can also create an editor from a JSON object in order to configure your initial state. Or you can [create an editor from Markdown or Quill Delta](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/documentation/importing.md).
64
64
65
65
```dart
66
66
final json = ...;
@@ -79,7 +79,7 @@ MaterialApp(
79
79
);
80
80
```
81
81
82
-
To get a sense for how the AppFlowy Editor works, run our example:
82
+
To get a sense of how the AppFlowy Editor works, run our example:
@@ -98,7 +98,7 @@ Below are some examples of component customizations:
98
98
*[Checkbox Text](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/lib/src/render/rich_text/checkbox_text.dart) demonstrates how to extend new styles based on existing rich text components
99
99
*[Image](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/network_image_node_widget.dart) demonstrates how to extend a new node and render it
100
100
* See further examples of [rich-text plugins](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/lib/src/render/rich_text)
101
-
101
+
102
102
### Customizing Shortcut Events
103
103
104
104
Please refer to our documentation on customizing AppFlowy for a detailed discussion about [customizing shortcut events](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/documentation/customizing.md#customize-a-shortcut-event).
@@ -113,7 +113,7 @@ Below are some examples of shortcut event customizations:
113
113
Please refer to the API documentation.
114
114
115
115
## Contributing
116
-
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
116
+
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
117
117
118
118
Please look at [CONTRIBUTING.md](https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/contributing-to-appflowy) for details.
For more details, please refer to the function `_importFile` through this [link](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/example/lib/home_page.dart).
0 commit comments