| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| 5.17.3_ Interactive Line Spacing Modal Modernization, Live Typography Preview _ Persistent Text Selection source code.tar.gz | 2026-11-02 | 40.6 MB | |
| 5.17.3_ Interactive Line Spacing Modal Modernization, Live Typography Preview _ Persistent Text Selection source code.zip | 2026-11-02 | 41.0 MB | |
| README.md | 2026-11-02 | 7.7 kB | |
| OpenPublisher5-i386-windowsXP.exe | 2026-11-02 | 56.5 MB | |
| openpublisher5_amd64-windows-portable.exe | 2026-11-02 | 183.2 MB | |
| openpublisher5_amd64-windows.exe | 2026-11-02 | 165.2 MB | |
| openpublisher5_amd64-macos.dmg | 2026-11-02 | 233.1 MB | |
| openpublisher5_amd64-linux.run | 2026-11-02 | 193.4 MB | |
| openpublisher5_amd64-linux.rpm | 2026-11-02 | 215.4 MB | |
| openpublisher5_amd64-linux.flatpak | 2026-11-02 | 153.6 MB | |
| openpublisher5_amd64-linux.deb | 2026-11-02 | 156.2 MB | |
| openpublisher5_amd64-linux.AppImage | 2026-11-02 | 166.4 MB | |
| openpublisher5_amd64-freebsd.pkg | 2026-11-02 | 185.5 MB | |
| Totals: 13 Items | 1.8 GB | 0 | |
π Summary
Version 5.17.3 completely modernizes the Line Spacing Options dialog in Open Publisher, resolving text and element deselection issues, adding real-time live preview synchronization across the canvas, and introducing an elegant typography control suite:
- Persistent Text & Element Selection Protection: Prevents text boxes and highlighted text from being unselected or blurred when opening or interacting with the Line Spacing dialog, using native CSS Custom Highlight API (
::highlight(line-spacing-selection)) and range preservation. - Real-Time Live Canvas Preview: Dynamically updates the selected text box's line height in real time as the user drags the slider, steps numbers, or clicks presets, allowing immediate visual inspection directly on the document.
- Interactive Dual Slider & Stepper Controls: Replaces the basic input field with an on-theme range slider, live value badge (e.g.
18 pt), and fine-tune stepper buttons (-/+) supporting single-point adjustments and 5pt Shift-stepping. - One-Click Quick Presets: Features one-click pill buttons for popular typographic scales:
1.0x(Single),1.15x(Standard),1.25x(Relaxed),1.5x(Spacious),2.0x(Double), andAuto(revert to default font line-height). - In-Dialog Typography Preview Card: Renders an interactive live preview box directly inside the dialog showing sample lines of text expanding and contracting simultaneously with the canvas.
- Live Overlay & Minimap Tracking: Synchronizes the dashed selection box, rotation handles, and sidebar minimap thumbnail dynamically as the text box expands or tightens with line height adjustments.
- Safe Revert on Cancel: Automatically reverts line spacing to its original document state if the user cancels, presses Escape, or closes the dialog, and restores active cursor focus and text selection ranges.
- Focus Leak Elimination: Removed legacy password input focus calls (
doc-protect-pw) that previously stole focus away from text editing upon dialog completion. - Full Dark Theme Styling: Delivers custom styling across dialog cards, preset pills, sliders, inputs, and preview containers for both light and dark UI themes.
- System Synchronization & Service Worker Update: Bumped Service Worker cache to
open-publisher-v5-17-3-1, updated About dialog tov5.17.3, and synchronized all asset cachebusters to?v=5.17.3.
π What's New in v5.17.3
βοΈ Modernized Line Spacing Dialog & Live Preview Engine (ui/modals/line-spacing-modal.js, style.css)
- Persistent Selection & Visual Focus Retention:
- Previously, clicking or adjusting the exact spacing input caused browser focus to enter the input field, stripping focus from the contenteditable text box and causing text selection highlights to vanish.
- Implemented active selection range preservation (
state.lastRange) and activated the CSS Custom Highlight API (CSS.highlights.set('line-spacing-selection')), ensuring highlighted text displays a distinct theme highlight while modal controls have keyboard focus. - Maintained
state.selectedElandtargetEl.classList.add('selected')persistently throughout dialog interaction. - Added
.op-line-spacing-active-targethighlight styling to maintain visual focus on the canvas text box. - Restores keyboard focus and selection ranges to
.element-contentupon dialog dismissal (both OK and Cancel). - Interactive Range Slider & Fine-Tune Steppers:
- Replaced the plain input field with a responsive range slider (
.op-sidebar-slider) featuring a custom teal thumb and track. - Added Fine Tune stepper buttons (
#exact-ls-decand#exact-ls-inc) supporting 1pt incremental adjustments (and 5pt deltas when holdingShift). - Added numeric input with formatted
ptunit indicator and real-time bidirectional synchronization with the slider. - Dynamically updates the active value readout badge (e.g.,
Normal (23pt)or40 pt). - One-Click Quick Presets:
- Added dedicated pill buttons for instant standard line spacing values:
1.0x,1.15x,1.25x,1.5x,2.0x, andAuto. - Automatically calculates point equivalents relative to the text box's computed font size.
- Highlights the currently active preset with theme-colored fill and shadow.
- In-Dialog Typography Preview Box:
- Added a dedicated card inside the dialog displaying sample text lines that dynamically expand and contract in real time as values adjust.
- Safe Revert & Undo History Integration:
- Bound
window._dialogCancelHookto revert canvas text line spacing to its original value if closed via Cancel button, close icon (X), or Escape key. - Commits the new line spacing and records undo/redo history (
pushHistory()) only when confirming with OK or pressing Enter. - Re-aligns selection overlays and margin guidelines dynamically as the text block resizes.
π¨ Visual Polish & UI Theme Integration (style.css)
- Theme-Aware Control Styling:
- Added custom styling for
.op-ls-preset-btn,.op-ls-stepper-btn, and.op-ls-number-input. - Implemented dark mode variations for all line spacing components with midnight slate backgrounds, light text, and teal focus highlights.
- Ensured modal dragging via header remains smooth and allows positioning the modal beside canvas text for unobstructed visual typesetting.
π§ System Synchronization & Version Bump (v5.17.3)
- About Dialog (
extensions/ui-interactions.js): Subtitle updated toFree Online Desktop Publishing Tool β’ v5.17.3. - Service Worker Cache (
sw.js): Cache bucket bumped toopen-publisher-v5-17-3-1. - Export Template Modal (
ui/modals/export-template-modal.js): Version metadata and README exports bumped to5.17.3. - Asset Cachebusters (
index.html): Updated query tags for all scripts, stylesheets, and icons to?v=5.17.3. - Internal Template Engine & Dashboard (
elements/templates/templates.js,ui/dashboard.js,ui/menus.js): Synchronized internal template asset cachebusters to?v=5.17.3.
β Checklist Completed
- [x] Diagnose root cause of text and element deselection when interacting with line spacing modal
- [x] Protect target text box element in
state.selectedElthroughout modal lifecycle - [x] Implement CSS Custom Highlight API (
::highlight(line-spacing-selection)) for persistent visual text selection - [x] Implement real-time live preview on canvas elements during slider, stepper, and preset adjustments
- [x] Add interactive range slider (
min=4,max=140+) with custom teal styling - [x] Add Fine Tune stepper buttons (
-/+) with 1pt and Shift+5pt increments - [x] Add one-click Quick Preset pill buttons (1.0x, 1.15x, 1.25x, 1.5x, 2.0x, Auto)
- [x] Add in-dialog typography preview card mirroring live line height adjustments
- [x] Implement safe Cancel / Escape revert hook to restore original document line height
- [x] Restore active text selection range and cursor focus upon dialog confirmation
- [x] Eliminate legacy
doc-protect-pwfocus leak - [x] Implement complete light mode and dark mode styling in
style.css - [x] Bump application version, About dialog, Service Worker, and cachebusters to
v5.17.3 - [x] Verify drag functionality, live canvas updates, and selection persistence via Playwright automated tests
π Version 5.17.3 - Open Publisher