Fix edit description to require only one click.

Thanks to uusijani and xet7 !

Fixes #3338
This commit is contained in:
Lauri Ojansivu 2020-11-10 07:16:14 +02:00
parent 6cbb77b591
commit 0ef248574c
3 changed files with 3 additions and 1 deletions

View file

@ -144,3 +144,4 @@ rajit:bootstrap3-datepicker-vi
rajit:bootstrap3-datepicker-zh-cn
rajit:bootstrap3-datepicker-zh-tw
staringatlights:fast-render
spacebars

View file

@ -3,5 +3,5 @@ template(name="descriptionForm")
.new-description.js-new-description(
class="{{#if descriptionFormIsOpen}}is-open{{/if}}")
form.js-new-description-form
+editor(class="js-new-description-input" data-meteor-emoji-large="true")
+editor(class="js-new-description-input" data-meteor-emoji-large="true" autofocus="autofocus")
| {{getUnsavedValue 'cardDescription' _id getDescription}}

View file

@ -3,6 +3,7 @@ template(name="editor")
dir="auto"
class="{{class}}"
id=id
autofocus=autofocus
placeholder="{{_ 'comment-placeholder'}}")
+Template.contentBlock