Use lib version of date functions

This commit is contained in:
Jon Staab
2025-05-05 10:11:02 -07:00
parent 5873e8aa60
commit c1b52b66ff
21 changed files with 221 additions and 150 deletions
+13 -9
View File
@@ -71,6 +71,7 @@ export const makeEditor = async ({
submit,
uploading,
wordCount,
disableFileUpload,
}: {
aggressive?: boolean
autofocus?: boolean
@@ -81,6 +82,7 @@ export const makeEditor = async ({
submit: () => void
uploading?: Writable<boolean>
wordCount?: Writable<number>
disableFileUpload?: boolean
}) => {
return new Editor({
content,
@@ -103,16 +105,18 @@ export const makeEditor = async ({
aggressive,
},
},
fileUpload: {
config: {
onDrop() {
uploading?.set(true)
fileUpload: disableFileUpload
? false
: {
config: {
onDrop() {
uploading?.set(true)
},
onComplete() {
uploading?.set(false)
},
},
},
onComplete() {
uploading?.set(false)
},
},
},
nprofile: {
extend: {
addNodeView: () => makeMentionNodeView(url),