Fix missing compose input, handle parents differently

This commit is contained in:
Jon Staab
2025-01-28 09:20:34 -08:00
parent 08e80262a4
commit 4f0579bb7f
10 changed files with 106 additions and 102 deletions
+1 -4
View File
@@ -25,12 +25,11 @@ export const signWithAssert = async (template: StampedEvent) => {
return event!
}
export const getEditor = ({
export const makeEditor = ({
aggressive = false,
autofocus = false,
charCount,
content = "",
element,
placeholder = "",
submit,
uploading,
@@ -40,14 +39,12 @@ export const getEditor = ({
autofocus?: boolean
charCount?: Writable<number>
content?: string
element: HTMLElement
placeholder?: string
submit: () => void
uploading?: Writable<boolean>
wordCount?: Writable<number>
}) =>
createEditor({
element,
content,
autofocus,
extensions: [