Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: disable toolbar in code block (#3682)

Lucas.Xu0cd272675284
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart
index 20e86108bd..2f76f6c83d 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart
@@ -154,6 +154,11 @@ class _AppFlowyEditorPageState extends State<AppFlowyEditorPage> {
supportSlashMenuNodeWhiteList.addAll([
ToggleListBlockKeys.type,
]);
+ toolbarItemWhiteList.addAll([
+ ToggleListBlockKeys.type,
+ CalloutBlockKeys.type,
+ TableBlockKeys.type,
+ ]);
AppFlowyRichTextKeys.supportSliced.add(AppFlowyRichTextKeys.fontFamily);
}