Fix flow from new page creation to page editor.

This commit is contained in:
2026-08-18 03:10:26 +00:00
parent a0990fc3f6
commit 124ef62b5f
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ async function loadPlain(p) {
history.replaceState(null, '', finalUrl)
runScripts(document.getElementById('page-banner'))
runScripts(document.getElementById('main'))
dispatchEvent(new CustomEvent('pagerite:preview')) // re-tuck the edit pen
dispatchEvent(new CustomEvent('pagerite:preview')) // re-inject + re-tuck the edit pens
// The swap brought in the server-rendered (inherited) banner; overlay
// the page's own banner if one is being edited.
if (banner.value.trim()) previewBanner()