From 16254a45335e03de6fcb5aa0bf80a5dc6c7a57e2 Mon Sep 17 00:00:00 2001 From: Katherine Date: Fri, 30 Aug 2024 17:51:55 +0800 Subject: [PATCH] fix: issue in data selector other block should display Markdown, not 'Add Text' (#5161) --- .../Picker/TableSelectorInitializers.tsx | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/packages/core/client/src/modules/fields/component/Picker/TableSelectorInitializers.tsx b/packages/core/client/src/modules/fields/component/Picker/TableSelectorInitializers.tsx index d8ba0d3525..d07cb8914f 100644 --- a/packages/core/client/src/modules/fields/component/Picker/TableSelectorInitializers.tsx +++ b/packages/core/client/src/modules/fields/component/Picker/TableSelectorInitializers.tsx @@ -70,21 +70,9 @@ const commonOptions = { name: 'otherBlocks', children: [ { - title: '{{t("Add text")}}', - Component: 'BlockItemInitializer', - name: 'addText', - schema: { - type: 'void', - 'x-editable': false, - 'x-decorator': 'BlockItem', - // 'x-designer': 'Markdown.Void.Designer', - 'x-toolbar': 'BlockSchemaToolbar', - 'x-settings': 'blockSettings:markdown', - 'x-component': 'Markdown.Void', - 'x-component-props': { - content: '{{t("This is a demo text, **supports Markdown syntax**.")}}', - }, - }, + name: 'markdown', + title: '{{t("Markdown")}}', + Component: 'MarkdownBlockInitializer', }, ], },