diff --git a/index.html b/index.html
index 976ee481..9a7bc578 100644
--- a/index.html
+++ b/index.html
@@ -8254,7 +8254,7 @@
-
+
@@ -8269,7 +8269,7 @@
-
+
diff --git a/modules/ui/burg-editor.js b/modules/ui/burg-editor.js
index 13e32850..cc331342 100644
--- a/modules/ui/burg-editor.js
+++ b/modules/ui/burg-editor.js
@@ -486,9 +486,17 @@ function editBurg(id) {
}
function editBurgLegend() {
- const id = elSelected.attr("data-id");
- const name = elSelected.text();
- editNotes("burg" + id, name);
+ const id = +elSelected.attr("data-id");
+ const burg = pack.burgs[id];
+
+ // Use Obsidian integration if available, otherwise fall back to old notes system
+ if (typeof editObsidianNote !== "undefined") {
+ const coordinates = {x: burg.x, y: burg.y};
+ editObsidianNote(id, "burg", coordinates);
+ } else {
+ const name = elSelected.text();
+ editNotes("burg" + id, name);
+ }
}
function showTemperatureGraph() {
diff --git a/modules/ui/markers-editor.js b/modules/ui/markers-editor.js
index 9f56db9a..30bdd90b 100644
--- a/modules/ui/markers-editor.js
+++ b/modules/ui/markers-editor.js
@@ -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() {