Add suggest menu for task ID

This commit is contained in:
Frederic Guillot
2016-12-03 12:56:12 -05:00
parent 4b22db5400
commit 23d862aef8
24 changed files with 382 additions and 36 deletions

View File

@@ -70,8 +70,8 @@ KB.component('text-editor', function (containerElement, options) {
textarea = textareaElement.build();
if (options.mentionUrl) {
KB.getComponent('suggest-menu', textarea, {triggers: {'@': options.mentionUrl}}).render();
if (options.suggestOptions) {
KB.getComponent('suggest-menu', textarea, options.suggestOptions).render();
}
return KB.dom('div')