mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-13 16:22:32 +10:00
feat: draw.io (diagrams.net) integration (#215)
* draw.io init * updates
This commit is contained in:
@ -33,6 +33,7 @@ import {
|
||||
Selection,
|
||||
Attachment,
|
||||
CustomCodeBlock,
|
||||
Drawio,
|
||||
Excalidraw,
|
||||
} from "@docmost/editor-ext";
|
||||
import {
|
||||
@ -50,6 +51,7 @@ 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 DrawioView from "../components/drawio/drawio-view";
|
||||
import ExcalidrawView from "@/features/editor/components/excalidraw/excalidraw-view.tsx";
|
||||
import plaintext from "highlight.js/lib/languages/plaintext";
|
||||
|
||||
@ -154,6 +156,9 @@ export const mainExtensions = [
|
||||
Attachment.configure({
|
||||
view: AttachmentView,
|
||||
}),
|
||||
Drawio.configure({
|
||||
view: DrawioView,
|
||||
}),
|
||||
Excalidraw.configure({
|
||||
view: ExcalidrawView,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user