feat: editor file attachments (#194)

* fix current slider value

* WIP

* changes to extension attributes

* update command title
This commit is contained in:
Philip Okugbe
2024-08-26 12:38:47 +01:00
committed by GitHub
parent 7e80797e3f
commit 7dc37b933f
19 changed files with 450 additions and 16 deletions

View File

@ -31,6 +31,7 @@ import {
TiptapVideo,
LinkExtension,
Selection,
Attachment,
CustomCodeBlock,
} from "@docmost/editor-ext";
import {
@ -46,6 +47,7 @@ import ImageView from "@/features/editor/components/image/image-view.tsx";
import CalloutView from "@/features/editor/components/callout/callout-view.tsx";
import { common, createLowlight } from "lowlight";
import VideoView from "@/features/editor/components/video/video-view.tsx";
import AttachmentView from "@/features/editor/components/attachment/attachment-view.tsx";
import CodeBlockView from "@/features/editor/components/code-block/code-block-view.tsx";
import plaintext from "highlight.js/lib/languages/plaintext";
@ -146,6 +148,9 @@ export const mainExtensions = [
},
}),
Selection,
Attachment.configure({
view: AttachmentView,
}),
] as any;
type CollabExtensions = (provider: HocuspocusProvider, user: IUser) => any[];