changes label

This commit is contained in:
buttle 2021-05-10 17:43:10 +02:00
parent 4ebacec9a9
commit 2a7c92e7d2
2 changed files with 5 additions and 6 deletions

View File

@ -14,7 +14,11 @@ class SimpleMDTextBlockForm extends Form
'name' => 'o:block[__blockIndex__][o:data][markdown_text]', 'name' => 'o:block[__blockIndex__][o:data][markdown_text]',
'type' => Element\Textarea::class, 'type' => Element\Textarea::class,
'options' => [ 'options' => [
'label' => 'Simple text', 'label' => 'Makdown text',
'info' => 'https://www.markdownguide.org/cheat-sheet',
],
'attributes' => [
'rows' => '10',
], ],
]); ]);

View File

@ -66,10 +66,5 @@ class SimpleMDText extends AbstractBlockLayout
{ {
$parsedown = new Parsedown(); $parsedown = new Parsedown();
return $parsedown->text($block->dataValue('markdown_text')); return $parsedown->text($block->dataValue('markdown_text'));
/*
return $view->partial('common/block-layout/simple-md-text', [
'markdown_text' => $block->dataValue('markdown_text'),
]);
*/
} }
} }