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