From 35cafad0ff15dd6fc271a184cba147c9e87f00dc Mon Sep 17 00:00:00 2001 From: chenos Date: Fri, 27 Aug 2021 11:30:12 +0800 Subject: [PATCH] add cancel button to markdown --- .../client/src/schemas/markdown/index.tsx | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/packages/client/src/schemas/markdown/index.tsx b/packages/client/src/schemas/markdown/index.tsx index 9f0b81053..965929015 100644 --- a/packages/client/src/schemas/markdown/index.tsx +++ b/packages/client/src/schemas/markdown/index.tsx @@ -63,15 +63,23 @@ function MarkdownTextArea(props: any) { setValue(e.target.value); }} /> - + + + + ); } @@ -90,6 +98,9 @@ Markdown.Void = observer((props: any) => { { + field.readPretty = true; + }} onSubmit={async (value) => { field.readPretty = true; schema['default'] = value;