linking notes through CKEditor mentiones

This commit is contained in:
zadam
2019-11-07 22:43:01 +01:00
parent 8a9f2ff1d8
commit 744855d4f5
8 changed files with 99 additions and 70 deletions

View File

@@ -12,7 +12,7 @@ async function autocompleteSource(term, cb) {
if (result.length === 0) {
result.push({
title: "No results",
pathTitle: "No results",
path: ""
});
}
@@ -91,10 +91,10 @@ function initNoteAutocomplete($el, options) {
}, [
{
source: autocompleteSource,
displayKey: 'title',
displayKey: 'pathTitle',
templates: {
suggestion: function(suggestion) {
return suggestion.highlighted;
return suggestion.highlightedTitle;
}
},
// we can't cache identical searches because notes can be created / renamed, new recent notes can be added