chore: disable toolbar in code block (#3682)

This commit is contained in:
Lucas.Xu 2023-10-15 22:01:17 +08:00 committed by GitHub
parent 11daa15b89
commit 0cd2726752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}