mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
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:
parent
de926c5456
commit
619bea1b99
3 changed files with 21 additions and 6 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue