Make autofocus works in text editor

This commit is contained in:
Frederic Guillot
2016-11-27 18:57:05 -05:00
parent 453513da29
commit 0c426c6d99
4 changed files with 7 additions and 4 deletions

View File

@@ -220,6 +220,7 @@ class FormHelper extends Base
'labelPreview' => t('Preview'),
'labelWrite' => t('Write'),
'placeholder' => t('Write your text in Markdown'),
'autofocus' => isset($attributes['autofocus']) && $attributes['autofocus']
);
if (isset($values['project_id'])) {