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

  1. 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.
  2. 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.
  3. 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.
  4. 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), and Auto (revert to default font line-height).
  5. 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.
  6. 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.
  7. 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.
  8. Focus Leak Elimination: Removed legacy password input focus calls (doc-protect-pw) that previously stole focus away from text editing upon dialog completion.
  9. Full Dark Theme Styling: Delivers custom styling across dialog cards, preset pills, sliders, inputs, and preview containers for both light and dark UI themes.
  10. System Synchronization & Service Worker Update: Bumped Service Worker cache to open-publisher-v5-17-3-1, updated About dialog to v5.17.3, and synchronized all asset cachebusters to ?v=5.17.3.

op-ModernizedLineSpacingAndTypography

πŸš€ 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.selectedEl and targetEl.classList.add('selected') persistently throughout dialog interaction.
  • Added .op-line-spacing-active-target highlight styling to maintain visual focus on the canvas text box.
  • Restores keyboard focus and selection ranges to .element-content upon 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-dec and #exact-ls-inc) supporting 1pt incremental adjustments (and 5pt deltas when holding Shift).
  • Added numeric input with formatted pt unit indicator and real-time bidirectional synchronization with the slider.
  • Dynamically updates the active value readout badge (e.g., Normal (23pt) or 40 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, and Auto.
  • 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._dialogCancelHook to 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 to Free Online Desktop Publishing Tool β€’ v5.17.3.
  • Service Worker Cache (sw.js): Cache bucket bumped to open-publisher-v5-17-3-1.
  • Export Template Modal (ui/modals/export-template-modal.js): Version metadata and README exports bumped to 5.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.selectedEl throughout 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-pw focus 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

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