Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-01-08 04:23:05 +0300
committerJoas Schilling <coding@schilljs.com>2020-01-09 22:19:18 +0300
commitc728282147a1c376630902fbe7bf0d3f3d3b5cb6 (patch)
tree3c6f1be316b50e9104f906c113e42f398380fe81 /src/main.js
parent920deedec88bdd8ceb3fdc3c382ebb0a1630b32e (diff)
Add basic autocompletion of mentions
The vue-at component is used to provide the autocompletion UI. This component handles the edition in its wrapped contenteditable, so the "vue-contenteditable-directive" is no longer needed. As the new message form hides its overflowing children (and it can not be removed, as it breaks the layout when typing long (tall) messages) the "vue-at-reparenter" helper is used. In this initial version the candidate mentions show the id of the user or guest that matches the current "@" mention being written and, when selected, adds that id as plain text to the editable content. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main.js b/src/main.js
index 7230aebf5..f3756d7fa 100644
--- a/src/main.js
+++ b/src/main.js
@@ -38,7 +38,6 @@ import { generateFilePath } from '@nextcloud/router'
import { getRequestToken } from '@nextcloud/auth'
// Directives
-import contenteditableDirective from 'vue-contenteditable-directive'
import VueClipboard from 'vue-clipboard2'
import { translate, translatePlural } from '@nextcloud/l10n'
import VueObserveVisibility from 'vue-observe-visibility'
@@ -60,7 +59,6 @@ Vue.prototype.n = translatePlural
Vue.prototype.OC = OC
Vue.prototype.OCA = OCA
-Vue.use(contenteditableDirective)
Vue.use(Vuex)
Vue.use(VueRouter)
Vue.use(VueClipboard)