Commit Graph
4 Commits
Author SHA1 Message Date
MrMugameandZef Hemel d3e79ea4a7 Catch event in capturing phase instead of bubbling phase (#1315)
This is should be the default behaviour as silverbullet keybinds should always have priority over keybinds implemented by document editors
2025-03-26 19:43:00 +01:00
Zef Hemel 4191fa5d4b Port https://github.com/silverbulletmd/silverbullet/pull/1310 2025-03-23 15:58:34 +01:00
MrMugameandGitHub d3cc3e0d48 Add image viewer (#1289)
* Fix legacy support for navigation

* Fixes timing issue with document editors

If silverbullet was directly loaded into a document editor it would set
the darkmode after loading the editor, causing a wrong value to be
passed

* Add basic `image-viewer`

This add adds a basic image viewer using the panzoom library from Timmy
Willison

* Svgs somehow don't accept 100% width

* Make `internal` a property of a message

* Add `editor.sendMessage` syscall

* Update forgotten internal syscall

* Add small info command to image-viewer

* Change indent to two spaces

* Move zoom in button to the right

* Switch rotation direction

* Display mime type instead of file extension
2025-03-14 09:42:23 +01:00
MrMugameandGitHub e61a447d98 Implementing #913 (#1230)
Implemented custom editors
2025-03-06 15:11:17 +01:00