fix: issue in data selector other block should display Markdown, not 'Add Text' (#5161)

This commit is contained in:
Katherine 2024-08-30 17:51:55 +08:00 committed by GitHub
parent afcb64ad23
commit 16254a4533
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,21 +70,9 @@ const commonOptions = {
name: 'otherBlocks', name: 'otherBlocks',
children: [ children: [
{ {
title: '{{t("Add text")}}', name: 'markdown',
Component: 'BlockItemInitializer', title: '{{t("Markdown")}}',
name: 'addText', Component: 'MarkdownBlockInitializer',
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**.")}}',
},
},
}, },
], ],
}, },