From 2a7c92e7d2741d32b23f0b84a239fc5d88c55566 Mon Sep 17 00:00:00 2001 From: buttle Date: Mon, 10 May 2021 17:43:10 +0200 Subject: [PATCH] changes label --- src/Form/SimpleMDTextBlockForm.php | 6 +++++- src/Site/BlockLayout/SimpleMDText.php | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Form/SimpleMDTextBlockForm.php b/src/Form/SimpleMDTextBlockForm.php index a1fcfb7..f252406 100644 --- a/src/Form/SimpleMDTextBlockForm.php +++ b/src/Form/SimpleMDTextBlockForm.php @@ -14,8 +14,12 @@ class SimpleMDTextBlockForm extends Form 'name' => 'o:block[__blockIndex__][o:data][markdown_text]', 'type' => Element\Textarea::class, 'options' => [ - 'label' => 'Simple text', + 'label' => 'Makdown text', + 'info' => 'https://www.markdownguide.org/cheat-sheet', ], + 'attributes' => [ + 'rows' => '10', + ], ]); } diff --git a/src/Site/BlockLayout/SimpleMDText.php b/src/Site/BlockLayout/SimpleMDText.php index 1b9f30c..b521743 100644 --- a/src/Site/BlockLayout/SimpleMDText.php +++ b/src/Site/BlockLayout/SimpleMDText.php @@ -66,10 +66,5 @@ class SimpleMDText extends AbstractBlockLayout { $parsedown = new Parsedown(); return $parsedown->text($block->dataValue('markdown_text')); - /* - return $view->partial('common/block-layout/simple-md-text', [ - 'markdown_text' => $block->dataValue('markdown_text'), - ]); - */ } }