Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

Hide the toolbar if active view is not MarkdownView #35

Open
zsviczian opened this issue Sep 13, 2022 · 1 comment
Open

Hide the toolbar if active view is not MarkdownView #35

zsviczian opened this issue Sep 13, 2022 · 1 comment

Comments

@zsviczian
Copy link

See this issue: zsviczian/obsidian-excalidraw-plugin#798

I recommend adding an app.workspace.off("active-leaf-change",show_hide_toolbar); and checking if activeLeaf.view is a MarkdownView

@brimwats
Copy link

brimwats commented Sep 13, 2022

worth noting that this only happens with "always show toolbar". Perhaps an excalidraw compatibility mode toggle? (I feel silly that it's been months and I didn't know there were undo/erase buttons!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: to do
Development

No branches or pull requests

2 participants