| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| # 5.21.2_ Persistent Linked Text Control _ Cross-Page Text Flow (Issue #11) source code.tar.gz | 2026-11-15 | 123.1 MB | |
| # 5.21.2_ Persistent Linked Text Control _ Cross-Page Text Flow (Issue #11) source code.zip | 2026-11-15 | 123.7 MB | |
| README.md | 2026-11-15 | 9.5 kB | |
| OpenPublisher5-i386-windowsXP.exe | 2026-11-15 | 56.5 MB | |
| openpublisher5g_amd64-windows.exe | 2026-11-15 | 81.1 MB | |
| openpublisher5_amd64-windows-portable.exe | 2026-11-15 | 183.2 MB | |
| openpublisher5_amd64-windows.exe | 2026-11-15 | 165.2 MB | |
| openpublisher5_amd64-macos.dmg | 2026-11-15 | 233.1 MB | |
| openpublisher5_amd64-linux.run | 2026-11-15 | 193.4 MB | |
| openpublisher5_amd64-linux.rpm | 2026-11-15 | 215.4 MB | |
| openpublisher5_amd64-linux.flatpak | 2026-11-15 | 153.6 MB | |
| openpublisher5_amd64-linux.deb | 2026-11-15 | 156.2 MB | |
| openpublisher5_amd64-linux.AppImage | 2026-11-15 | 166.4 MB | |
| openpublisher5_amd64-freebsd.pkg | 2026-11-15 | 185.5 MB | |
| Totals: 14 Items | 2.0 GB | 0 | |
π Summary
Version 5.21.2 addresses the follow-up findings on GitHub Issue [#11] (#11 reported by IcedQuinn), making linked text boxes resilient when text retracts back to empty and enabling seamless multi-page text flow linking:
- Empty linked text boxes no longer lose their
contenteditable="true"control when spilled text retracts back upstream, eliminating the false"Please select a text box to link to."alert on subsequent link attempts. - Initiating Link on one page and switching to another page in the sidebar (or adding a new page) now preserves the active linking session instead of cancelling on
deselect(), allowing stories to link and reflow continuously across pages (Page 1 -> Page 2 -> Page 3). - Fixed the floating delete button (
.quick-action-delete) becoming unresponsive on linked text boxes due to overlay container rebuilds, and added a themed Delete Linked Text Box modal dialog prompting users to delete only the selected box, delete all linked boxes across the chain (including cross-page frames), or leave them alone. - Cross-page chain overlays now show clickable navigation badges (
<- P#and#N -> P#), off-page linked boxes stay synchronized with resize/edit reflows and Undo/Redo snapshots, and all5.21.2version strings are synchronized across modules and cachebusters.
π οΈ Key Improvements
1. Persistent Editable Text Control After Spill Retraction (elements/text/text.js, extensions/ui-interactions.js, core/history.js, core/pages.js, canvas/interaction-text-flow.js)
- Explicit Text Box Type (
elements/text/text.js): Stamped newly created text boxes withdata-type="text"so empty text frames are no longer grouped under generic'box'heuristics. - Accurate Hollow-Border Detection (
extensions/ui-interactions.js): FixedensureTemplateElementsEditable()ignoring inlineoutline: nonestrings in border checks (which previously treated empty text frames as hollow decorative rectangles and strippedcontenteditable="true"), exempteddata-type="text", linked flow boxes (data-next-box/data-prev-box), and.text-contentcontainers fromcontenteditableremoval, and restoredcontenteditable="true"if missing. - Empty Linked Box Preservation (
core/history.js,core/pages.js): GuardedisGhostchecks during serialization and page restoration so empty linked frames (data.filterAttributes['data-next-box']/'data-prev-box') are retained across page switches, Undo/Redo, and.opubsaves. - Automatic Flow Engine Recovery (
canvas/interaction-text-flow.js): HardenedgetEditableTextContent()(ensureTextBoxTypeAndEditable) to automatically re-attachcontenteditable="true"on text-typed or linked frames that lack it (including documents saved in earlier builds).
2. Cross-Page Linking & Continuous Reflow Engine (core/pages.js, core/selection.js, canvas/interaction.js, ui/ui.js, canvas/interaction-text-flow.js)
- Cross-Page Linking State Preservation (
core/pages.js,core/selection.js,ui/ui.js,canvas/interaction.js): AddedstartTextBoxLinking(),syncTextBoxLinkingUI(), and ID-backed state (linkingSourceId,linkingSourcePageIndex). WrappingswitchPage()with_preservingTextLinkOnPageSwitchpreventsrenderPage()->deselect()from cancelling link mode when navigating to another page thumbnail or adding a page, and updates the cursor and status bar to guide the user ("Linking from Page N: select an empty text box on this page..."). - Cross-Page Ref Lookup & Off-Page Hydration (
canvas/interaction-text-flow.js): - Updated
locateFlowBox(),getTextFlowHeadRef(),getTextFlowChainRefs(),wouldCreateCycleRefs(),linkTextBoxes(),unlinkTextBox(), andhandleLinkedBoxesRemoved()to resolve both live DOM frames on the active page and serialized elements insidestate.pages. - Updated
window.flowTextBoxes()to hydrate off-page linked boxes into the off-screen measurement container so accurate frame bounds, typography, splitting, and overflow flags flow continuously across pages and write packed results back tostate.pages, refreshing sidebar thumbnails cleanly. - Cross-Page Navigation Pills (
renderTextFlowOverlays): Added clickable<- P#and#N -> P#pills on linked frames whose upstream or downstream neighbor resides on a different page, allowing instant one-click jumping between connected frames across pages.
3. Floating Delete Button Fix & Themed Linked-Box Deletion Modal (extensions/system-patches.js, core/selection.js, canvas/interaction-text-flow.js)
- Reliable Quick-Actions Overlay Reuse (
extensions/system-patches.js): Fixedwindow.renderSelectionOverlays()checkingcontainer.children.length === 1, which always evaluatedfalsewhen.op-textflow-overlaywas present inside#selection-overlay-containerand tore down.selected-overlay/.quick-action-deletemid-click. Checking:scope > .selected-overlaykeeps the floating lock, clone, and delete toolbar stable on linked text boxes. - Themed 3-Option Linked Delete Confirmation (
core/selection.js,canvas/interaction-text-flow.js): Deleting any linked text box (via the floating trash button, Ribbon, Context Menu, orDelkey) now opens an on-themeDialogSystemmodal alerting the user that the box belongs to a linked chain (showing box count and spanned page numbers) with three actions: - Delete Selected Text Box: Removes only the selected frame, heals remaining
prev -> nextlinks, and reflows the story into surviving boxes. - Delete All Linked (N): Deletes every connected text box across the entire chain (both same-page and off-page frames in
state.pages), refreshes thumbnails, and records a single atomic Undo snapshot. - Leave Them Alone: Closes the modal without modifying any frames or links.
π Version Synchronization (v5.21.2)
| Component | Target Version | Updated Reference |
|---|---|---|
| Service Worker | v5.21.2 |
open-publisher-v5-21-2-1 and header comment in sw.js |
| Text Flow Engine | v5.21.2 |
Header comment (v5.21.2) and cross-page reflow engine in canvas/interaction-text-flow.js |
| Template Router & 404 | v5.21.2 |
Cachebusters and deep-link router comment in elements/templates/templates.js and 404.html |
| Dashboard Start Screen | v5.21.2 |
Asset query strings updated to ?v=5.21.2 in ui/dashboard.js |
| AI Studio Engine | v5.21.2 |
Header version and AIAssistant.VERSION (5.21.2) in extensions/ai-assistant.js |
| About Dialog & UI Interactions | v5.21.2 |
Header comment, Knowledge Base icon query strings, and About dialog (v5.21.2) in extensions/ui-interactions.js |
| Print & Watermark Engines | v5.21.2 |
Header comments in extensions/print-engine.js and extensions/watermark-engine.js |
| PWA Installer | v5.21.2 |
Service worker registration sw.js?v=5.21.2 in extensions/pwa-install.js |
| Application Cachebusters | v5.21.2 |
Script, stylesheet, and asset query strings updated to ?v=5.21.2 in index.html |
| README Badges | v5.21.2 |
Patreon and Facebook badge query strings updated to ?v=5.21.2 and Firefox 115.21.0esr wording preserved in README.md (with 5.20.8 Gecko binary download link intact) |
β Checklist Completed
- [x] Stamp
data-type="text"on created text boxes (elements/text/text.js) and fixoutline: none/ empty flow frame handling inensureTemplateElementsEditable()(extensions/ui-interactions.js) - [x] Guard
isGhostserialization and page restoration (core/history.js,core/pages.js) plus self-healingcontenteditable="true"recovery (canvas/interaction-text-flow.js) so empty retracted boxes keep their text control - [x] Preserve
window.isLinkingTextBoxand ID-backedlinkingSourceId/linkingSourcePageIndexacrossswitchPage()(core/pages.js,core/selection.js,ui/ui.js,canvas/interaction.js) - [x] Implement cross-page chain lookup, off-page DOM hydration in
flowTextBoxes(), cross-pagelinkTextBoxes()/unlinkTextBox()/handleLinkedBoxesRemoved(), and clickable<- P#/#N -> P#overlay pills (canvas/interaction-text-flow.js) - [x] Fix floating
.quick-action-deleteoverlay teardown on linked boxes (extensions/system-patches.js) and add themed Delete Linked Text Box modal with Delete Selected Text Box, Delete All Linked (N) (cross-page), and Leave Them Alone options (core/selection.js,canvas/interaction-text-flow.js) - [x] Verify all flows end-to-end in live browser (
http://127.0.0.1:8126/,http://127.0.0.1:8127/): empty retracted box keepscontenteditable="true"after Undo/Redo and cleanup; cross-page linking from Page 1 -> Page 2 preserves linking mode and flows/retracts text dynamically across pages; real clicks on floating.quick-action-deleteopen the modal cleanly and verify Leave Them Alone, Delete Selected Text Box, cross-page Delete All Linked, Undo restore, and immediate unlinked deletion with zero app JS errors - [x] Synchronize version
5.21.2acrosssw.js(open-publisher-v5-21-2-1),index.html, and versioned modules
π Version 5.21.2 - Open Publisher