| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| OpenPublisher5-i386-windowsXP.exe | 2026-11-18 | 56.5 MB | |
| openpublisher5g_amd64-windows.exe | 2026-11-18 | 81.1 MB | |
| openpublisher5_amd64-windows-portable.exe | 2026-11-18 | 183.2 MB | |
| openpublisher5_amd64-windows.exe | 2026-11-18 | 165.2 MB | |
| openpublisher5_amd64-macos.dmg | 2026-11-18 | 233.1 MB | |
| openpublisher5_amd64-linux.run | 2026-11-18 | 193.4 MB | |
| openpublisher5_amd64-linux.rpm | 2026-11-18 | 215.4 MB | |
| openpublisher5_amd64-linux.flatpak | 2026-11-18 | 153.6 MB | |
| openpublisher5_amd64-linux.deb | 2026-11-18 | 156.2 MB | |
| openpublisher5_amd64-linux.AppImage | 2026-11-18 | 166.4 MB | |
| openpublisher5_amd64-freebsd.pkg | 2026-11-18 | 185.5 MB | |
| 5.22.9_ Document References Styling, Layout _ Modal Polish source code.tar.gz | 2026-11-17 | 123.3 MB | |
| 5.22.9_ Document References Styling, Layout _ Modal Polish source code.zip | 2026-11-17 | 123.8 MB | |
| README.md | 2026-11-17 | 11.3 kB | |
| Totals: 14 Items | 2.0 GB | 1 | |
π Summary
Version 5.22.9 is a feature and polish update for the Document References suite (Table of Contents, Footnotes, and Endnotes) introduced in 5.22.8. It resolves an input focus and text-selection regression inside the Reference builder dialogs, adds full visual customization for divider lines and box outlines across all reference types, preserves user color customizations when refreshing references, prevents newly inserted reference boxes from stacking on top of each other, and replaces native browser prompts with themed internal dialogs.
Highlights at a Glance
- Seamless Typing & Text Selection in Reference Modals: Fixed an issue where clicking into the TOC Title or Note Text / Citation fields could lose focus or clear selection, and restored full
Ctrl+A,Ctrl+C,Ctrl+X, and click-drag text selection across Chromium and Gecko/Firefox. - Divider Line & Box Outline Styling: Both Table of Contents Builder and Insert Footnote or Endnote now include built-in styling controls for the Header / Separator Line and Box Outline (color swatches powered by OpenPublisher's Custom Color Picker, line style, and
1px-4pxthickness), plus new Outline Style and Outline Width controls inside CSS Color, Gradient & Theme Studio. - Full Element Colors Compatibility & Style Preservation: Fixed
Element Colorsdetection for TOC, Footnote, and Endnote divider lines, and ensured that clicking Update TOC or resyncing notes preserves all custom colors, backgrounds, borders, and Editor Guide colors. - Smart Non-Overlapping Placement & Clean Fallback Boxes: Inserting multiple reference items (such as a Table of Contents, Footnotes, Endnotes, and standalone reference markers) now automatically finds open space on the page instead of stacking at the top-left or overlapping at the bottom margin, and strips the
"Click to edit text"placeholder when dropping a reference marker into a new or untouched box. - Accidental Click Protection & Internal XP-Style Alert Dialog: Disabled accidental backdrop-click dismissal so misclicking outside a modal never discards typed text, replaced the native browser
alert()with an internal draggable modal featuring the teal warning icon (ui/icons/alert.png), and updated the[?]Help dialogs.
π οΈ Detailed Fixes & Improvements
1. Modal Input Focus, Text Selection & Shortcut Isolation (style.css, core/keyboard.js, extensions/ui-interactions.js, extensions/legacy-fixes.js, extensions/references-engine.js)
- Restored Text Highlighting &
Ctrl+A: Addeduser-select: text(-webkit-user-select: text,-moz-user-select: text) oninput, textareainstyle.cssand on.op-ref-input, .op-ref-textareainextensions/references-engine.jsso the global* { user-select: none; }rule no longer blocks text selection in Gecko/Firefox or Chromium. - Prevented
mouseupSelection Clearing: Exempted.op-ref-modal-window,.op-ref-help-box, andinput, textarea, selectfrom the canvas clear-highlightsmouseuphandler inextensions/ui-interactions.js, stopping mouse clicks inside modal fields from callingwindow.getSelection().removeAllRanges(). - Canvas Keyboard Shortcut Shielding: Added early guards in
core/keyboard.jsand the capture-phaseCtrl+Clistener inextensions/legacy-fixes.jswheneverdocument.activeElementis anINPUT,TEXTAREA, orSELECT, and added_wireModalInputGuards()inextensions/references-engine.jsso shortcuts (Ctrl+A,Ctrl+C,Ctrl+X,Ctrl+D,Backspace,Delete) stay strictly inside the modal input whileEscapecleanly closes the dialog. - Safe Autofocus: Guarded the initial modal autofocus timer so it only focuses the default input if focus is not already inside
#op-references-modal-root.
2. Divider Line & Box Outline Customization (style.css, core/history.js, extensions/ui-interactions.js, extensions/references-engine.js)
- TOC, Footnote & Endnote Modal Styling Controls:
- Added a Divider Line & Box Outline Styling section to both Table of Contents Builder and Insert Footnote or Endnote:
- Header / Separator Line: Color swatch button (using
window.CustomColorPicker.open), line style (Solid Line,Dashed Line,Dotted Line,None), and thickness (1px-4px). - Box Outline: Color swatch button (using
window.CustomColorPicker.open), outline mode (Editor Guidefor a screen-only dashed guide hidden when printing,None (Borderless),Dashed Border,Solid Border,Dotted Border), and thickness (1px-4px).
- Header / Separator Line: Color swatch button (using
- Switching between Footnote and Endnote in the note modal automatically loads and syncs the current styling of that frame type.
- Enabled clean dropdown overflow (
#op-toc-modal-window.allow-overflow .op-ref-modal-body,#op-note-modal-window.allow-overflow .op-ref-modal-body) so.custom-dom-selectmenus extend freely without clipping inside the modal body. - Editor Guide Color Support:
- Replaced the old hardcoded
border-style: dashed;rule instyle.csswith a non-printing screen guide (outline: 1px dashed var(--op-ref-guide-color, rgba(100, 116, 139, 0.35))) that respects custom guide colors (data-ref-guide-color/--op-ref-guide-color) and hides cleanly whenNone (Borderless)or a custom border is selected. - CSS Color, Gradient & Theme Studio Enhancements:
- Updated
TemplateCSSColorEngine.scanElement()inextensions/ui-interactions.jsto parse shorthand borders containing CSS variables and added descriptive labels (TOC Header Divider,Endnotes Divider,Footnote Divider,TOC Leader Line,Update TOC Button,TOC Page Number,TOC Title). - Added Outline Style (
None,Solid,Dashed,Dotted) and Outline Width (1px-6px) controls to the Box Fill, Outline & Corner Styling section of CSS Color Studio. - Custom Color Preservation Across Updates:
- Clicking Update TOC (on the canvas badge or via the modal) or resyncing Footnotes and Endnotes now reads and preserves all user customizations made via Element Colors or CSS Color Studio, including header/separator divider colors, title color,
Update TOCbutton fill and text color, heading entry and page number colors, empty-state placeholder text color, container background fills/gradients, custom borders, and Editor Guide colors. - Whitelisted
data-ref-outlineanddata-ref-guide-colorincore/history.jsfor Undo/Redo, page switches, and.opubfile saves.
3. Smart Non-Overlapping Placement & Placeholder Cleanup (extensions/references-engine.js)
- Collision-Free Box Placement (
_findNonOverlappingPosition): - When creating a new Table of Contents, Footnote, Endnote, or fallback reference marker text box, OpenPublisher now scans existing elements on
#paperand places the new frame in an open slot instead of stacking boxes at(50, 50)or overlapping Footnote and Endnote frames at the bottom of the page. - Bottom-anchored frames (
fnBoxandenBox) automatically stack upward with clean spacing when both exist on the same page. - Automatic Placeholder Removal:
- When inserting a Footnote or Endnote marker without an active edited text box (or into a fresh text box that still contains the default
"Click to edit text"placeholder),_insertNoteMarker()automatically strips"Click to edit text", inserts the superscript marker ([1]or[i]) cleanly, and places the cursor right before it ready for typing. - Prevented reference markers from being accidentally inserted inside generated
[data-toc-box],[data-footnote-box], or[data-endnote-box]frames.
4. Modal UX Safeguards, Internal Alert Dialog & Updated Help (extensions/references-engine.js)
- No Accidental Backdrop Dismissal: Removed outside-click close handlers from
#op-toc-modal-backdrop,#op-note-modal-backdrop, and#op-ref-notice-backdropso knocking or clicking the mouse outside the dialog while typing never closes the window or loses work. - Internal XP-Style Warning Dialog (
_showNoticeModal): Replaced the native browseralert()when submitting an empty note with a draggable internal modal featuringui/icons/alert.png(42x42pxteal warning icon) that opens above the parent dialog and returns focus to#op-note-text-inputwhen dismissed. - Updated Help Modals: Refreshed both Table of Contents Help and Footnotes & Endnotes Help (
[?]button) with dedicated topics covering Divider Line & Box Outline and Element Colors & Updating.
π Version Synchronization (v5.22.9)
| Component | Target Version | Updated File |
|---|---|---|
| References Engine | v5.22.9 |
extensions/references-engine.js |
| Main Application & Script Includes | v5.22.9 |
index.html |
| Application Stylesheet | v5.22.9 |
style.css |
| Service Worker & Cache Store | open-publisher-v5-22-9-1 |
sw.js |
| UI Interactions & CSS Color Studio | v5.22.9 |
extensions/ui-interactions.js |
| Keyboard & Legacy Shortcuts | v5.22.9 |
core/keyboard.js, extensions/legacy-fixes.js |
| History Serialization Engine | v5.22.9 |
core/history.js |
| Size & Position Modal | v5.22.9 |
ui/modals/size-position-modal.js |
| Watermark, Print, AI & PWA Engines | v5.22.9 |
extensions/watermark-engine.js, extensions/print-engine.js, extensions/ai-assistant.js, extensions/pwa-install.js |
| Dashboard, Templates, 404 & README | v5.22.9 |
ui/dashboard.js, elements/templates/templates.js, 404.html, README.md |
β Checklist Completed
- [x] Fix
user-select: textforinput/textareaand.op-ref-input/.op-ref-textarea - [x] Exempt Reference modals and form inputs from
mouseupselection clearing inextensions/ui-interactions.js - [x] Guard global keyboard shortcuts in
core/keyboard.jsandextensions/legacy-fixes.jswhen typing insideINPUT/TEXTAREA/SELECT - [x] Add Divider Line & Box Outline Styling controls (with
CustomColorPickerswatches and unclipped.custom-dom-selectdropdowns) to both Table of Contents Builder and Insert Footnote or Endnote - [x] Add Outline Style and Outline Width controls to CSS Color, Gradient & Theme Studio and detect all reference divider lines in Element Colors
- [x] Apply custom Editor Guide colors via
--op-ref-guide-colorand preserve all custom Element Colors across Update TOC and note resyncs - [x] Prevent reference and fallback marker boxes from stacking or overlapping via
_findNonOverlappingPosition()and strip"Click to edit text"on fallback marker insertion - [x] Disable accidental outside-click backdrop dismissal, replace native
alert()with internal_showNoticeModal()usingui/icons/alert.png, and update[?]Help dialogs - [x] Bump version from
5.22.8to5.22.9across all 14 versioned files