| Name | Modified | Size | Downloads / 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:
- 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. - 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 unifiedpointerdown/mousedown/clickhandlers, and guardedhandleMouseDownso clicking<- P1reliably navigates back to Page 1 instead of being swallowed as a box drag. - Eliminated Ghost Multi-Page Overlays & Vanishing Badges: Isolated off-page story reflow hydration inside
#op-textflow-measure-host, updatedlocateFlowBox()to resolve live DOM boxes strictly within#paper, movedrenderSelectionOverlays()to run aftermeasureHostcleanup, and enforced page/container checks inrenderTextFlowOverlays().
π οΈ Key Improvements
1. Contextual Ribbon Tab Persistence (ui/ui.js, core/selection.js)
- Manual Tab Respect (
window.switchTab): Updatedwindow.switchTab(t)so switching to any standard tab properly updateswindow.lastStandardTaband trackswindow._userManualTabForEl/_userManualTabIdfor the currently selected element. - Same-Element Preservation (
ContextRibbonSystem.updateTabs,hideAllTabs):updateTabs(el, preserveActiveTab)now respectspreserveActiveTab(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 fixedhideAllTabs(restoreStandardTab)sohideAllTabs(false)no longer triggers an extra tab reset beforeupdateTabsruns. - Clean Deletion Tab Reset (
core/selection.js):executeDeleteElements()now clears_lastRibbonSelectedEl/_userManualTabForEland callsContextRibbonSystem.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-hostIsolation (locateFlowBox,flowTextBoxes): Tagged the temporary off-screen measurement container with#op-textflow-measure-hostand updatedlocateFlowBox()(isLivePaperFlowEl) to match DOM elements strictly inside#paper. Off-page hydrated boxes can no longer masquerade as on-page DOM elements withpageIndex === currPageIdx, eliminating ghost box outlines and#1 -> #2 -> #3connectors on Page 2 as well as preserving<- P1pills during reflow.- Clean Post-Hydration Overlay Timing: Moved
window.renderSelectionOverlays()inflowTextBoxes()to run cleanly in post-finallyexecution once#op-textflow-measure-hosthas been removed from the DOM. - Z-Index & Pointer Hit-Testing Fix: Elevated
.op-textflow-overlaytoz-index: 1000020(and.op-textflow-pillbadges toz-index: 1000021), offsetprevPill(<- P1) cleanly clear of corner/edge handles (left: l + 10, top: t + 6), boundbindPillNavigation()acrosspointerdown/mousedown/click, and added.op-textflow-pillearly returns tohandleMouseDown()in bothcanvas/interaction-mouse.jsandextensions/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-overlayand.op-textflow-pillnavigation pills (<- P1,#N -> P..., step chips) above.selected-overlayand bindpointerdown/mousedown/clickhandlers cleanly - [x] Isolate
#op-textflow-measure-hostand restrictlocateFlowBox/renderTextFlowOverlaysto#paperDOM elements on the active page so off-page ghost outlines/connectors never appear on Page 2 - [x] Live browser E2E verified (
Inserttab persists across >1500ms & box focus while new boxes auto-openText Box Tools;<- P1jumps to Page 1 / Box 2 and#2 -> P2jumps back to Page 2 / Box 3 with zero ghost overlays and zero JS console errors) - [x] Synchronize version strings from
5.21.4to5.21.5across core HTML/JS/SW files and README badges
π Version 5.21.5 - Open Publisher