Skip to content

Commit

Permalink
add boolean editor_autogrow view_template setting
Browse files Browse the repository at this point in the history
  • Loading branch information
graste committed Dec 12, 2016
1 parent d714f9a commit 69cf1c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ protected function getEditorParameters(array $current_params)
$editor = [];

$editor['enabled'] = $this->getOption('editor_enabled', false);
$editor['autogrow'] = $this->getOption('editor_autogrow', false);
$editor['twig'] = $this->getOption('editor_twig', 'html/attribute/textarea/htmlrichtexteditor.twig');
$editor['options'] = json_encode(
array_merge(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<li class="item"><button type="button" data-editor-action="redo" title="{{ _('redo.title', 'application.hrte') }}"><span>{{ _('redo', 'application.hrte') }}</span></button>
<li class="item"><button type="button" data-editor-action="autogrow" title="{{ _('autogrow.title', 'application.hrte') }}"/>&#x21D5;</button>
</ul>
<div class="editor-hrte"></div>
<div class="editor-hrte {{ editor.autogrow ? 'autogrow' : '' }}"></div>
<div class="editor-popup editor-popup-link">
<div>
<h2>{{ _('popup-link.header', 'application.hrte') }}</h2>
Expand Down

0 comments on commit 69cf1c0

Please sign in to comment.