diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-11-27 15:44:45 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-11-27 15:44:45 -0500 |
commit | d8b0423d152ca27682b001f2c4d386d9c5dd361e (patch) | |
tree | 8b4919d5296b857bcf74e81c8cc06729ddfce5e5 /app/Helper | |
parent | 04ff67e26b880dde8bfb6462f312cf434457cd46 (diff) |
Add suggest menu for user mentions in text editor
Diffstat (limited to 'app/Helper')
-rw-r--r-- | app/Helper/FormHelper.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Helper/FormHelper.php b/app/Helper/FormHelper.php index 629de9ff..e44c5d06 100644 --- a/app/Helper/FormHelper.php +++ b/app/Helper/FormHelper.php @@ -204,6 +204,10 @@ class FormHelper extends Base 'placeholder' => t('Write your text in Markdown'), ); + if (isset($values['project_id'])) { + $params['mentionUrl'] = $this->helper->url->to('UserAjaxController', 'mention', array('project_id' => $values['project_id'])); + } + $html = '<div class="js-text-editor" data-params=\''.json_encode($params, JSON_HEX_APOS).'\'></div>'; $html .= $this->errorList($errors, $name); |