zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
3.68k stars 202 forks source link

QUESTION: Click on a Element in Canvas and trigger via ScriptEngine a script. #1777

Closed foreversun69 closed 1 month ago

foreversun69 commented 1 month ago

Hey,

is it possible to trigger a js-script via click on e.g. a "Button"? image

best wishes foreversun

zsviczian commented 1 month ago

Yes. 1) Create an Excalidraw script. 2) Attach the script to any element with Insert Obsidian Command as a Link

image