Skip to content

Commit

Permalink
Added ability to set 'rows' property for wysiwyg elements.
Browse files Browse the repository at this point in the history
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>
```
  • Loading branch information
vovayatsyuk committed Aug 31, 2017
1 parent 2808f2d commit 2b07823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Ui/Component/Form/Element/Wysiwyg.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct(
\Magento\Framework\Data\Form\Element\Editor::class,
[
'force_load' => true,
'rows' => 20,
'rows' => isset($config['rows']) ? $config['rows'] : 20,
'name' => $data['name'],
'config' => $wysiwygConfig->getConfig($wysiwygConfigData),
'wysiwyg' => isset($config['wysiwyg']) ? $config['wysiwyg'] : null,
Expand Down

0 comments on commit 2b07823

Please sign in to comment.