Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.21.2
Name Modified Size InfoDownloads / 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:

  1. 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.
  2. 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).
  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.
  4. 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 all 5.21.2 version strings are synchronized across modules and cachebusters.

op-PersistentLinkedTextControlAndCrossPageTextFlow


πŸ› οΈ 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 with data-type="text" so empty text frames are no longer grouped under generic 'box' heuristics.
  • Accurate Hollow-Border Detection (extensions/ui-interactions.js): Fixed ensureTemplateElementsEditable() ignoring inline outline: none strings in border checks (which previously treated empty text frames as hollow decorative rectangles and stripped contenteditable="true"), exempted data-type="text", linked flow boxes (data-next-box / data-prev-box), and .text-content containers from contenteditable removal, and restored contenteditable="true" if missing.
  • Empty Linked Box Preservation (core/history.js, core/pages.js): Guarded isGhost checks 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 .opub saves.
  • Automatic Flow Engine Recovery (canvas/interaction-text-flow.js): Hardened getEditableTextContent() (ensureTextBoxTypeAndEditable) to automatically re-attach contenteditable="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): Added startTextBoxLinking(), syncTextBoxLinkingUI(), and ID-backed state (linkingSourceId, linkingSourcePageIndex). Wrapping switchPage() with _preservingTextLinkOnPageSwitch prevents renderPage() -> 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(), and handleLinkedBoxesRemoved() to resolve both live DOM frames on the active page and serialized elements inside state.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 to state.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): Fixed window.renderSelectionOverlays() checking container.children.length === 1, which always evaluated false when .op-textflow-overlay was present inside #selection-overlay-container and tore down .selected-overlay / .quick-action-delete mid-click. Checking :scope > .selected-overlay keeps 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, or Del key) now opens an on-theme DialogSystem modal 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 -> next links, 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 fix outline: none / empty flow frame handling in ensureTemplateElementsEditable() (extensions/ui-interactions.js)
  • [x] Guard isGhost serialization and page restoration (core/history.js, core/pages.js) plus self-healing contenteditable="true" recovery (canvas/interaction-text-flow.js) so empty retracted boxes keep their text control
  • [x] Preserve window.isLinkingTextBox and ID-backed linkingSourceId / linkingSourcePageIndex across switchPage() (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-page linkTextBoxes() / unlinkTextBox() / handleLinkedBoxesRemoved(), and clickable <- P# / #N -> P# overlay pills (canvas/interaction-text-flow.js)
  • [x] Fix floating .quick-action-delete overlay 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 keeps contenteditable="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-delete open 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.2 across sw.js (open-publisher-v5-21-2-1), index.html, and versioned modules

πŸš€ Version 5.21.2 - Open Publisher

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