Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.21.5
Name Modified Size InfoDownloads / Week
Parent folder
5.21.5_ Ribbon Tab Persistence _ Cross-Page Text Flow Badge _ Overlay Fixes (GitHub Issue #11) source code.tar.gz 2026-11-16 123.1 MB
5.21.5_ Ribbon Tab Persistence _ Cross-Page Text Flow Badge _ Overlay Fixes (GitHub Issue #11) source code.zip 2026-11-16 123.7 MB
README.md 2026-11-16 6.7 kB
OpenPublisher5-i386-windowsXP.exe 2026-11-16 56.5 MB
openpublisher5g_amd64-windows.exe 2026-11-16 81.1 MB
openpublisher5_amd64-windows-portable.exe 2026-11-16 183.2 MB
openpublisher5_amd64-windows.exe 2026-11-16 165.2 MB
openpublisher5_amd64-macos.dmg 2026-11-16 233.1 MB
openpublisher5_amd64-linux.run 2026-11-16 193.4 MB
openpublisher5_amd64-linux.rpm 2026-11-16 215.4 MB
openpublisher5_amd64-linux.flatpak 2026-11-16 153.6 MB
openpublisher5_amd64-linux.deb 2026-11-16 156.2 MB
openpublisher5_amd64-linux.AppImage 2026-11-16 166.4 MB
openpublisher5_amd64-freebsd.pkg 2026-11-16 185.5 MB
Totals: 14 Items   2.0 GB 0

πŸ“‹ Summary

Version 5.21.5 resolves the two follow-up UI bugs reported in GitHub Issue [#11] (#11) while preserving automatic contextual Text Box Tools opening whenever users select or insert a new element:

  1. No Ribbon Snap-Back After Manual Tab Switch (ui/ui.js): When a text box (or any object) is selected and the user manually switches to another Ribbon tab such as Insert or Home, background selection re-syncs, text editing, or canvas interactions no longer yank the active tab back to Text Box Tools. Contextual tabs still open automatically whenever selecting or creating a new/different element.
  2. Clickable Cross-Page Navigation Pills (<- P1 / #N -> P...): Raised .op-textflow-overlay (z-index: 1000020) and pill badges (z-index: 1000021) strictly above .selected-overlay (z-index: 999999) and its border drag hitboxes (.selection-edge-drag.sed-n), added unified pointerdown / mousedown / click handlers, and guarded handleMouseDown so clicking <- P1 reliably navigates back to Page 1 instead of being swallowed as a box drag.
  3. Eliminated Ghost Multi-Page Overlays & Vanishing Badges: Isolated off-page story reflow hydration inside #op-textflow-measure-host, updated locateFlowBox() to resolve live DOM boxes strictly within #paper, moved renderSelectionOverlays() to run after measureHost cleanup, and enforced page/container checks in renderTextFlowOverlays().

op-ContextualRibbonTabPersistenceAndCrossPageTextNavigation


πŸ› οΈ Key Improvements

1. Contextual Ribbon Tab Persistence (ui/ui.js, core/selection.js)

  • Manual Tab Respect (window.switchTab): Updated window.switchTab(t) so switching to any standard tab properly updates window.lastStandardTab and tracks window._userManualTabForEl / _userManualTabId for the currently selected element.
  • Same-Element Preservation (ContextRibbonSystem.updateTabs, hideAllTabs): updateTabs(el, preserveActiveTab) now respects preserveActiveTab (re-selecting the same active element) and manual tab overrides while still keeping the contextual tab visible in the tab bar (display: inline-block) and updating all toolbar indicators. Selecting a different element or inserting a new text box still auto-opens its contextual tab cleanly, and fixed hideAllTabs(restoreStandardTab) so hideAllTabs(false) no longer triggers an extra tab reset before updateTabs runs.
  • Clean Deletion Tab Reset (core/selection.js): executeDeleteElements() now clears _lastRibbonSelectedEl / _userManualTabForEl and calls ContextRibbonSystem.hideAllTabs(true) when no selected elements remain.

2. Cross-Page Text Flow Overlays & Navigation Pills (canvas/interaction-text-flow.js, canvas/interaction-mouse.js, extensions/system-patches.js)

  • #op-textflow-measure-host Isolation (locateFlowBox, flowTextBoxes): Tagged the temporary off-screen measurement container with #op-textflow-measure-host and updated locateFlowBox() (isLivePaperFlowEl) to match DOM elements strictly inside #paper. Off-page hydrated boxes can no longer masquerade as on-page DOM elements with pageIndex === currPageIdx, eliminating ghost box outlines and #1 -> #2 -> #3 connectors on Page 2 as well as preserving <- P1 pills during reflow.
  • Clean Post-Hydration Overlay Timing: Moved window.renderSelectionOverlays() in flowTextBoxes() to run cleanly in post-finally execution once #op-textflow-measure-host has been removed from the DOM.
  • Z-Index & Pointer Hit-Testing Fix: Elevated .op-textflow-overlay to z-index: 1000020 (and .op-textflow-pill badges to z-index: 1000021), offset prevPill (<- P1) cleanly clear of corner/edge handles (left: l + 10, top: t + 6), bound bindPillNavigation() across pointerdown / mousedown / click, and added .op-textflow-pill early returns to handleMouseDown() in both canvas/interaction-mouse.js and extensions/system-patches.js.

πŸ”„ Version Synchronization (v5.21.5)

Component Target Version Updated Reference
Application Assets & Cache Busting v5.21.5 index.html
Service Worker & Cache Store open-publisher-v5-21-5-1 sw.js
Watermark & Print Engines v5.21.5 watermark-engine.js, print-engine.js
AI Assistant & UI Interactions v5.21.5 ai-assistant.js, ui-interactions.js
PWA Registration & Templates v5.21.5 pwa-install.js, templates.js
Dashboard, 404 Router, & Badges v5.21.5 dashboard.js, 404.html, README.md

βœ… Checklist Completed

  • [x] Fix Ribbon snapping back from Insert to Text Box Tools while keeping automatic contextual tab opening for new/changed element selections
  • [x] Elevate .op-textflow-overlay and .op-textflow-pill navigation pills (<- P1, #N -> P..., step chips) above .selected-overlay and bind pointerdown / mousedown / click handlers cleanly
  • [x] Isolate #op-textflow-measure-host and restrict locateFlowBox / renderTextFlowOverlays to #paper DOM elements on the active page so off-page ghost outlines/connectors never appear on Page 2
  • [x] Live browser E2E verified (Insert tab persists across >1500ms & box focus while new boxes auto-open Text Box Tools; <- P1 jumps to Page 1 / Box 2 and #2 -> P2 jumps back to Page 2 / Box 3 with zero ghost overlays and zero JS console errors)
  • [x] Synchronize version strings from 5.21.4 to 5.21.5 across core HTML/JS/SW files and README badges

πŸš€ Version 5.21.5 - Open Publisher

Source: README.md, updated 2026-11-16