diff --git a/packages/frontend/src/components/MkEditForm.vue b/packages/frontend/src/components/MkEditForm.vue index 6ba08c1f88..9d5aa08241 100644 --- a/packages/frontend/src/components/MkEditForm.vue +++ b/packages/frontend/src/components/MkEditForm.vue @@ -27,7 +27,7 @@ SPDX-License-Identifier: AGPL-3.0-only -
{{ i18n.ts.quoteAttached }}
+
{{ i18n.ts.quoteAttached }}
@@ -368,8 +368,6 @@ async function onPaste(ev: ClipboardEvent) { insertTextAtCursor(textareaEl.value, paste); return; } - - quoteId.value = paste.substring(url.length).match(/^\/notes\/(.+?)\/?$/)?.[1] ?? null; }); } @@ -608,6 +606,12 @@ function cancel() { emit('cancel'); } +function insertMention() { + os.selectUser({ localOnly: localOnly.value, includeSelf: true }).then(user => { + insertTextAtCursor(textareaEl.value, '@' + Misskey.acct.toString(user) + ' '); + }); +} + async function insertEmoji(ev: MouseEvent) { textAreaReadOnly.value = true; const target = ev.currentTarget ?? ev.target;