From c0068d4e673f4db3da4380926aa0fe189dcba1c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 4 Jun 2021 00:09:47 +0200 Subject: [PATCH] refactoring --- docs/src/demos/Experiments/Figure/figure.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/src/demos/Experiments/Figure/figure.ts b/docs/src/demos/Experiments/Figure/figure.ts index f6f971db..e5628295 100644 --- a/docs/src/demos/Experiments/Figure/figure.ts +++ b/docs/src/demos/Experiments/Figure/figure.ts @@ -31,7 +31,6 @@ export const Figure = Node.create({ name: 'figure', defaultOptions: { - // inline: false, HTMLAttributes: {}, }, @@ -97,10 +96,7 @@ export const Figure = Node.create({ type: this.name, attrs, content: caption - ? [{ - type: 'text', - text: caption, - }] + ? [{ type: 'text', text: caption }] : [], }) // set cursor at end of caption field