diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index 635f9152..484d8041 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -65,11 +65,11 @@ async function handlePaste(evt: ClipboardEvent) { await uploadAttachments(Array.from(files)) } -function insertText(text: string) { - editor.value?.chain().insertContent(text).focus().run() +function insertEmoji(name: string) { + editor.value?.chain().focus().insertEmoji(name).run() } -function insertEmoji(image: any) { - editor.value?.chain().focus().setEmoji(image).run() +function insertCustomEmoji(image: any) { + editor.value?.chain().focus().insertCustomEmoji(image).run() } async function pickAttachments() { @@ -196,7 +196,7 @@ defineExpose({
-
+
@@ -280,7 +280,10 @@ defineExpose({ v-if="shouldExpanded" flex="~ gap-2 1" m="l--1" pt-2 justify="between" max-full border="t base" > - +