Add editor props from nostr-editor

This commit is contained in:
Jon Staab
2025-12-01 08:45:35 -08:00
parent df17929681
commit bb6e7495f5
5 changed files with 9 additions and 6 deletions
+2 -1
View File
@@ -14,7 +14,7 @@ import {
getWotGraph,
} from "@welshman/app"
import type {FileAttributes} from "@welshman/editor"
import {Editor, MentionSuggestion, WelshmanExtension} from "@welshman/editor"
import {Editor, MentionSuggestion, WelshmanExtension, editorProps} from "@welshman/editor"
import {makeMentionNodeView} from "@app/editor/MentionNodeView"
import ProfileSuggestion from "@app/editor/ProfileSuggestion.svelte"
import {uploadFile} from "@app/core/commands"
@@ -84,6 +84,7 @@ export const makeEditor = async ({
return new Editor({
content,
autofocus,
editorProps,
element: document.createElement("div"),
extensions: [
WelshmanExtension.configure({