summaryrefslogtreecommitdiff
path: root/app/Helper
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-11-27 18:57:05 -0500
committerFrederic Guillot <fred@kanboard.net>2016-11-27 18:57:05 -0500
commit0c426c6d998fa4e53fc07e2465313ed8c08411fd (patch)
treea1666df80f27393b3f791220fe6d86bb6ebaae01 /app/Helper
parent453513da298534702baef8f2416695bfb2ff1a90 (diff)
Make autofocus works in text editor
Diffstat (limited to 'app/Helper')
-rw-r--r--app/Helper/FormHelper.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Helper/FormHelper.php b/app/Helper/FormHelper.php
index fb088d23..f672ab1d 100644
--- a/app/Helper/FormHelper.php
+++ b/app/Helper/FormHelper.php
@@ -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'])) {