feat: integrate Obsidian notes into burg and marker editors

Replace the old TinyMCE notes editor with Obsidian integration in:
- Burg editor "Edit note" button
- Marker editor "Edit note" button

Changes:
- modules/ui/burg-editor.js: Update editBurgLegend() to call editObsidianNote()
- modules/ui/markers-editor.js: Update editMarkerLegend() to call editObsidianNote()
- Both functions fall back to old editNotes() if Obsidian is not configured
- index.html: Update version hashes to 1.108.13

Now when users click "Edit note" on a burg or marker, they get the modern
Markdown editor with Obsidian vault integration instead of the old WYSIWYG.
This commit is contained in:
Claude 2025-11-14 03:59:19 +00:00
parent de926c5456
commit 619bea1b99
No known key found for this signature in database
3 changed files with 21 additions and 6 deletions

View file

@ -221,7 +221,14 @@ function editMarker(markerI) {
function editMarkerLegend() {
const id = element.id;
editNotes(id, id);
// Use Obsidian integration if available, otherwise fall back to old notes system
if (typeof editObsidianNote !== "undefined" && marker) {
const coordinates = {x: marker.x, y: marker.y};
editObsidianNote(marker.i, "marker", coordinates);
} else {
editNotes(id, id);
}
}
function toggleMarkerLock() {