Skip to content

Commit 2b07823

Browse files
committed
Added ability to set 'rows' property for wysiwyg elements.
Usage example: ``` <item name="config" xsi:type="array"> <item name="formElement" xsi:type="string">wysiwyg</item> <item name="wysiwyg" xsi:type="boolean">true</item> <item name="rows" xsi:type="number">10</item> </item> ```
1 parent 2808f2d commit 2b07823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Ui/Component/Form/Element/Wysiwyg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(
5555
\Magento\Framework\Data\Form\Element\Editor::class,
5656
[
5757
'force_load' => true,
58-
'rows' => 20,
58+
'rows' => isset($config['rows']) ? $config['rows'] : 20,
5959
'name' => $data['name'],
6060
'config' => $wysiwygConfig->getConfig($wysiwygConfigData),
6161
'wysiwyg' => isset($config['wysiwyg']) ? $config['wysiwyg'] : null,

0 commit comments

Comments
 (0)