Skip to content

Incompatibility with Excalidraw #20

@zsviczian

Description

@zsviczian

@yuvve recorded the following issue for Excalidraw: zsviczian/obsidian-excalidraw-plugin#124
I was able to reproduce the error. I looked at your source code. Based on my quick scan I would try adding

let view = this.app.workspace.getActiveViewOfType(MarkdownView);
if (!view) return;

to here

I am not really sure if this will solve the problem, but it seems you make modifications to the document object even if the view is not a markdown view: see here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions