diff --git a/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/bold.svg b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/bold.svg
new file mode 100644
index 0000000000..85640695af
--- /dev/null
+++ b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/bold.svg
@@ -0,0 +1,3 @@
+
diff --git a/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/bulleted_list.svg b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/bulleted_list.svg
new file mode 100644
index 0000000000..c2c962fa0b
--- /dev/null
+++ b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/bulleted_list.svg
@@ -0,0 +1,8 @@
+
diff --git a/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/divider.svg b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/divider.svg
new file mode 100644
index 0000000000..3e57a6b000
--- /dev/null
+++ b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/divider.svg
@@ -0,0 +1,3 @@
+
diff --git a/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/italic.svg b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/italic.svg
new file mode 100644
index 0000000000..6b739a761f
--- /dev/null
+++ b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/italic.svg
@@ -0,0 +1,3 @@
+
diff --git a/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/number_list.svg b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/number_list.svg
new file mode 100644
index 0000000000..2db0ab3b64
--- /dev/null
+++ b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/number_list.svg
@@ -0,0 +1,3 @@
+
diff --git a/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/quote.svg b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/quote.svg
new file mode 100644
index 0000000000..8e55d9e2e3
--- /dev/null
+++ b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/quote.svg
@@ -0,0 +1,4 @@
+
diff --git a/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/strikethrough.svg b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/strikethrough.svg
new file mode 100644
index 0000000000..b37bb9acc0
--- /dev/null
+++ b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/strikethrough.svg
@@ -0,0 +1,4 @@
+
diff --git a/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/underline.svg b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/underline.svg
new file mode 100644
index 0000000000..933471e6a7
--- /dev/null
+++ b/frontend/app_flowy/packages/flowy_editor/assets/images/toolbar/underline.svg
@@ -0,0 +1,4 @@
+
diff --git a/frontend/app_flowy/packages/flowy_editor/example/lib/main.dart b/frontend/app_flowy/packages/flowy_editor/example/lib/main.dart
index a2fcc7a4df..158e33bbb1 100644
--- a/frontend/app_flowy/packages/flowy_editor/example/lib/main.dart
+++ b/frontend/app_flowy/packages/flowy_editor/example/lib/main.dart
@@ -123,32 +123,32 @@ class _MyHomePageState extends State {
customBuilders: {
'image': ImageNodeBuilder(),
},
- shortcuts: [
- // TODO: this won't work, just a example for now.
- {
- 'h1': (editorState, eventName) {
- debugPrint('shortcut => $eventName');
- final selectedNodes = editorState.selectedNodes;
- if (selectedNodes.isEmpty) {
- return;
- }
- final textNode = selectedNodes.first as TextNode;
- TransactionBuilder(editorState)
- ..formatText(textNode, 0, textNode.toRawString().length, {
- 'heading': 'h1',
- })
- ..commit();
- }
- },
- {
- 'bold': (editorState, eventName) =>
- debugPrint('shortcut => $eventName')
- },
- {
- 'underline': (editorState, eventName) =>
- debugPrint('shortcut => $eventName')
- },
- ],
+ // shortcuts: [
+ // // TODO: this won't work, just a example for now.
+ // {
+ // 'h1': (editorState, eventName) {
+ // debugPrint('shortcut => $eventName');
+ // final selectedNodes = editorState.selectedNodes;
+ // if (selectedNodes.isEmpty) {
+ // return;
+ // }
+ // final textNode = selectedNodes.first as TextNode;
+ // TransactionBuilder(editorState)
+ // ..formatText(textNode, 0, textNode.toRawString().length, {
+ // 'heading': 'h1',
+ // })
+ // ..commit();
+ // }
+ // },
+ // {
+ // 'bold': (editorState, eventName) =>
+ // debugPrint('shortcut => $eventName')
+ // },
+ // {
+ // 'underline': (editorState, eventName) =>
+ // debugPrint('shortcut => $eventName')
+ // },
+ // ],
);
}
},
diff --git a/frontend/app_flowy/packages/flowy_editor/lib/render/selection/floating_shortcut_widget.dart b/frontend/app_flowy/packages/flowy_editor/lib/render/selection/floating_shortcut_widget.dart
deleted file mode 100644
index 9fbbbbcb01..0000000000
--- a/frontend/app_flowy/packages/flowy_editor/lib/render/selection/floating_shortcut_widget.dart
+++ /dev/null
@@ -1,58 +0,0 @@
-import 'package:flowy_editor/flowy_editor.dart';
-import 'package:flutter/material.dart';
-
-typedef FloatingShortcutHandler = void Function(
- EditorState editorState, String eventName);
-typedef FloatingShortcuts = List