Embedding a map: the [[ menu doesn't find maps, and the editor's preview shows the embed as a page to create #1277

Closed
opened 2026-10-29 17:09:42 +00:00 by claude-bot · 0 comments
Collaborator

Found by the owner on dev (4.6.2-rc1). Typing ![[Map: … in the wiki editor:

  1. The [[ menu searched only wiki pages, so it offered "Create 'Map: …'" instead of the map.
  2. The preview showed the embed as a page waiting to be written ("new"). EditorPane rendered WikiText without campaignId, and map embeds only turn on with one. The saved page drew the map correctly.

Fix: the menu loads the campaign's maps (mapEmbedLoader, once, on first opening) and, after Map:, offers only maps whose name contains what follows, with no "Create" option. Otherwise it offers up to 3 maps whose name starts with what's typed, after the pages, as "Map: ". The preview passes campaignId.

Found by the owner on dev (4.6.2-rc1). Typing `![[Map: …` in the wiki editor: 1. **The `[[` menu searched only wiki pages**, so it offered "Create 'Map: …'" instead of the map. 2. **The preview showed the embed as a page waiting to be written** ("new"). `EditorPane` rendered `WikiText` without `campaignId`, and map embeds only turn on with one. The saved page drew the map correctly. **Fix:** the menu loads the campaign's maps (`mapEmbedLoader`, once, on first opening) and, after `Map:`, offers only maps whose name contains what follows, with no "Create" option. Otherwise it offers up to 3 maps whose name starts with what's typed, after the pages, as "Map: <name>". The preview passes `campaignId`.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rbrooks/Quest-Board#1277
No description provided.