changes label
This commit is contained in:
parent
4ebacec9a9
commit
2a7c92e7d2
|
@ -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',
|
||||
],
|
||||
]);
|
||||
|
||||
}
|
||||
|
|
|
@ -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'),
|
||||
]);
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue