Excalidraw 2.26.0

New

  • Stencil libraries can now be stored as vault files instead of data.json, improving plugin settings stability. Existing users are offered a safe, merge-first migration. To sync libraries, enable Sync all other types in Obsidian Sync. To view library files, enable Show all file types in Obsidian settings.
  • Added editable Markdown images.
    • Store content locally (back-of-the-card) or link to a Markdown note, heading, or block.
    • Edit content and appearance from the Excalidraw side panel.
    • Supports canvas layering and image export.
    • Dragging a Markdown note as an image lets you choose a heading (when available) and insert it as either an editable Markdown image or embeddable.
    • Local Markdown image copies share the same source. Use Duplicate selected image to create an independent image and Markdown body. You can also convert between images and embeddables from the selected element’s menu.
  • Image-reference embeds now support an optional padding=N parameter, e.g. ![[drawing#^area=xyz,padding=10]]. #2850 :folded_hands: @Evgene-Kopylov
  • Added the Voronoi Diagram script. :folded_hands: @FreeCutter #2845
  • Dragging a single external GIF with the Import external file action now lets you import it as either an image or an embeddable. #2848
  • Folder and file path settings now provide vault suggestions, warn about missing paths, and can create missing folders after confirmation.

New and Fixed from Excalidraw.com

  • New: Flowcharts (Ctrl/Cmd + Arrow) now intelligently route new shapes to avoid overlapping child nodes. #11532
  • New: Draw to Shape automatically converts freehand drawings into perfect shapes. #9313
  • Fixed: Dragged arrow endpoints now respect grid and angle locks. #10972
  • New: Double-click an arrow to toggle its arrowhead. #11615

Fixed

  • Custom freedraw pens now remain selected after temporarily switching to the eraser or another tool, and are restored when returning to freedraw. #2859
  • Added configurable bottom padding for Markdown images to prevent clipped final lines or borders.
  • Markdown image font selectors now preview each font and refresh the vault font list whenever opened.
  • Empty Markdown image font colors now normalize to black when the editor opens or the color field loses focus. CSS controls can also copy the generated SVG for inspection.
  • Dragging an external video or other non-image file with the Import external file action now offers the same use, overwrite, or import options as images when a matching vault file already exists. #2851 :folded_hands: @WolfExplode

ExcalidrawAutomate Breaking Change

  • The Excalidraw API has replaced api.scrollToContent(target?, opts?) with api.setViewport(opts | null). Update the MindMap Builder and Comic Strip Director scripts, along with any custom scripts using the old API. See the Excalidraw CHANGELOG for details.
4 Likes

Relevant for up to 2.26.2: there seems to be a bug that erases data from the Insertable image: Both in Excali view, and in Markdown side (tried on two vaults, both had the issue), which appeared in some beta version (I think somewhere in range [beta.5 - beta.8]; I ran out of API calls for version switch on BRAT for 10 mins, and then for 50 mins :sweat_smile: ).

Could not reproduce on beta.4, but the bug seems to be random, so maybe I had a good luck; not sure.

Not sure if the errors are relevant

First of all, thanks for raising. Working on a solution. The issue happens in the specific scenario you show in the video. You open one image to edit, and instead of clicking the Excalidraw canvas you immediately click on the next markdown image to edit.

I may be misreading your comment here, but from this I assume you were following along during Beta releases and already experienced this issue. My very strong request/plea is that if you are testing a Beta and come across anything strange you raise the issue during beta testing. Unfortunately, the community provides almost no feedback whatsoever during beta testing. Sadly, that is not really helpful.

The error in developer console is likely related to something else. I am not yet able to reproduce the console log errors.

Not quite. I had used beta.2, then beta.4, and then did not change up until the release (BRAT or Obsidian do not notify about beta releases; only the official releases, so I didn’t even know there were additional betas).

When I switched to 2.26.1, I first experienced an issue (and then same for 2.26.2). From that I tried to roll back to different versions to figure out which one does or doesn’t have a problem; and from too rapid switching BRAT has put me on hold for 50 mins.

1 Like

BRAT does this???

At any length, thanks for raising, the fix is ready… and as it happens Excalidraw just released a cool new feature: bucket fill, so that will be included in the update as well :nerd_face:

2.26.3

Fixed

  • Fixed an issue where editing one Markdown image and immediately selecting another could silently lose the first image’s content, both in memory and on disk.
  • Fixed deletion of the last local Markdown image via the properties panel so it now consistently prompts whether to keep or delete the associated Markdown content, regardless of how the deletion is triggered.

New from Excalidraw.com

  • Added the Bucket Fill tool. Open it from the More Tools menu or press B to toggle it. #11799

Apparently yes, for many version switches in a row. It was a surprise to me as well… The actual message from BRAT was also in the Console Log from the previous Screenshot.

That is not BRAT, that is the GitHub api’s rate limit triggering for your IP address.

Just tested the 2.26.3 and it seems like the issue is in some other place… Still does not save successfully at times.

Basically Saving Scene (Ctrl+S) sometimes erases the content.

Since there is no errors in the console and the erasing happens only occasionally, I am not even sure how to describe the systematic steps to reproduce honestly.

Oh, okay. My bad. Thank you for clarifying that.

@Joen_club, could you test the solution provided here and let me know if you can still reproduce the issue?

2.26.4

  • Markdown-image edits could be lost in some usage scenarios, 2.26.3 did not provide a broad enough fix. #2865

@Joen_club, I hope this finally gets to the bottom of it. :crossed_fingers:

1 Like

Just got a chance to test the fixes. The 2.26.4 seems to have resolved the issue from what I have seen so far. Great Job!

1 Like

How do I install the right sidebar with all the icons?

Hi @rocanino, this is not the right place to ask this question.
Please go through Excalidraw Essentials and you will receive such answers:
Lesson 08: Unlocking the Superpower of Excalidraw Scripts - Excalidraw Essentials - Sketch Your Mind