Use Ajax request for Markdown preview

This remove dependency on a Javascript library.
This commit is contained in:
Franky Van Liedekerke
2020-05-02 05:05:53 +02:00
committed by GitHub
parent 6a0b6a8672
commit 0ede384cda
10 changed files with 31 additions and 444 deletions

View File

@@ -233,6 +233,7 @@ class FormHelper extends Base
'required' => isset($attributes['required']) && $attributes['required'],
'tabindex' => isset($attributes['tabindex']) ? $attributes['tabindex'] : '-1',
'labelPreview' => t('Preview'),
'previewUrl' => $this->helper->url->to('TaskAjaxController', 'preview'),
'labelWrite' => t('Write'),
'labelTitle' => t('Title'),
'placeholder' => t('Write your text in Markdown'),