Add thread share button

This commit is contained in:
Jon Staab
2024-10-23 16:41:11 -07:00
parent 306a0f0f3d
commit e327bebe12
7 changed files with 143 additions and 47 deletions
+4
View File
@@ -9,6 +9,7 @@
import {getPubkeyHints} from "@app/commands"
export let onSubmit
export let content = ""
const loading = writable(false)
@@ -27,6 +28,9 @@
editor = createEditor(
getEditorOptions({submit, loading, getPubkeyHints, submitOnEnter: true, autofocus: true}),
)
console.log($editor, content)
$editor.commands.setContent(content)
})
</script>