Mimic Canvas behavior when interacting with embeds

Hi @Zsolt ,

at first I thought I came across a bug. However, assuming my understanding of what is going on under the hood is correct, it’s probably more of a feature request.

Base case – no problem here:

You use Excalidraw and the Tasks plugin in parallel, both with default settings. You create a file containing two tasks like so:

- [ ] test1
- [ ] test2

You embed this file into an Excalidraw drawing and when you interact with the embed, you have clickable checkboxes for both tasks. Absolutely fine.

My case:

I do not use the Tasks plugin as shipped but with a global filter (see option below). This way, I can clearly mark my tasks with a certain tag while still using standard checkboxes for other things I do not want to have tracked by the Tasks plugin (habits, items on grocery lists etc.)

Thus, having a “real” task and another (non-Tasks-plugin-tracked) checkbox in a list may look like this:

- [ ] #task test1
- [ ] test2

Now, this creates an issue in embeds. While tasks WITH task filter (test1) are correctly recognized and have clickable checkboxes, entries WITHOUT task filter behave differently, i.e. the embed always jumps into edit mode when the checkbox is clicked and its status change is not reliably reflected. I hope the gif below demonstrates this sufficiently.

Obviously, reworking my task logic throughout the entire vault is a hassle. Therefore, it would be great if all checkboxes would behave similarly at some point in the future – especially since I only stumbled upon this while trying to implement a visual-first daily note workflow :wink:

Thanks for looking into this!

BR, Robert

Aufzeichnung2026-06-14203047-ezgif.com-video-to-gif-converter

10 Answers

10

Do you experience the same if you create a markdown embed in Obsidian Canvas and create these two task items?

No, Canvas behaves as expected:

Aufzeichnung2026-06-15055938-ezgif.com-video-to-gif-converter

Based on some testing I think the issue is different. It is not a problem of

This works:

- [ ] #test test

and this does not:

- [ ] test

Both work when they are done in isolation. The issue is rather the sequence of doing them one after the other. It seems like an element lifecycle issue. When you click the embeddable, then the embeddable elements status also changes.

Will experiment with this a little to figure out what might be going on.

I found one sequence that works reliably well.

Enable single click activation:

Leave an empty line above the list of your tasks. The reason for the first empty row is to avoid the task bullet from jumping into edit mode.

Instead of a single click you can also activate the embeddable by pressing Enter.

I cannot reproduce this just now. Actually, with the single-click option active, I always enter edit mode, no matter what I do. I will play around a bit more in order to understand better what is going on.

EDIT: I can definitely not reproduce. “Single-click to edit” directly throws me into edit mode – I guess this is also the expected behavior. As long as the option is turned off, I can check “real” tasks in preview mode, all other checkboxes trigger the editing mode.

A halfway decent workaround is to use Live Preview as editing mode instead of Source. However, as far as I can see, this only works via switching to Live Preview globally (not exactly what I intend to do). Would it be an option to introduce an Excalidraw-specific setting that allows overriding the global editing mode for embeds?

Hey @Zsolt ,

I actually see the same behavior with your DNP example vault in this post using the Meta Bind toggles:

Aufzeichnung2026-06-16091714-ezgif.com-video-to-gif-converter

Does it behave differently on your end?

BR, Robert

It behaves the same.

You will have a smoother experience if you turn on "filename visible for the embeddable. (click cog in the top left)

Hi @Zsolt ,

thanks for looking into it. However, showing the file name does not seem to change the behavior when interacting with checkboxes or Meta Bind toggles in (pre)view mode – I always enter edit mode, just as before.

Anyway, I could imagine an additional embed-specific option “prevent entering edit mode” that could be used as a condition in the handleClick event – not sure if this would cause other issues, though.

Just in case you want to consider it in the future.

Thank you!

A “lock” reading mode option in the top left is actually an amazing idea.

Implemented in Excalidraw 2.24.2