| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| OpenPublisher5-i386-windowsXP.exe | 2026-11-04 | 56.5 MB | |
| openpublisher5_amd64-windows-portable.exe | 2026-11-04 | 183.2 MB | |
| openpublisher5_amd64-windows.exe | 2026-11-04 | 165.2 MB | |
| openpublisher5_amd64-macos.dmg | 2026-11-04 | 233.1 MB | |
| 5.17.8_ Font Bold, Formatting _ Strikethrough Button Active Highlight Synchronization source code.tar.gz | 2026-11-04 | 102.6 MB | |
| 5.17.8_ Font Bold, Formatting _ Strikethrough Button Active Highlight Synchronization source code.zip | 2026-11-04 | 103.1 MB | |
| README.md | 2026-11-04 | 9.4 kB | |
| openpublisher5_amd64-linux.run | 2026-11-04 | 193.4 MB | |
| openpublisher5_amd64-linux.rpm | 2026-11-04 | 215.4 MB | |
| openpublisher5_amd64-linux.flatpak | 2026-11-04 | 153.6 MB | |
| openpublisher5_amd64-linux.deb | 2026-11-04 | 156.2 MB | |
| openpublisher5_amd64-linux.AppImage | 2026-11-04 | 166.4 MB | |
| openpublisher5_amd64-freebsd.pkg | 2026-11-04 | 185.5 MB | |
| Totals: 13 Items | 1.9 GB | 0 | |
π Summary
Version 5.17.8 resolves an issue where applying Bold or Strikethrough formatting to text would successfully modify the text style on the canvas but fail to visually highlight the corresponding "B" or "S" buttons on the ribbon bar and floating menu bar (#float-toolbar). This release introduces a centralized formatting state synchronizer (syncFormatButtonHighlights) that evaluates both native DOM command states (document.queryCommandState) and resolved element computed styles to accurately detect bold, italic, underline, and strikethrough states across any selected text range or active text box. High-contrast active styling is now applied consistently across both toolbars in light mode and dark mode, using dedicated .active and .active-tool styles with theme color accent backgrounds, borders, and crisp typography. Selection listeners, keyboard shortcuts (including Alt+Shift+5 and Ctrl+Shift+X for strikethrough), and caret movement handlers have been updated to reactively update formatting highlights in real time as the cursor moves through mixed formatted text, while unhighlighting buttons immediately upon element deselect. Parity is established across all primary formatting controls (Bold, Italic, Underline, and Strikethrough), and the application version has been synchronized to 5.17.8 across the Service Worker (open-publisher-v5-17-8-1), About modal, template index loaders, and asset cachebusters.
π Enhancements & Bug Fixes
π€ Real-Time Formatting & Strikethrough Button Active Synchronization (elements/text/text.js)
- Centralized Format Synchronizer (
window.syncFormatButtonHighlights): - Implemented a resilient detection engine that interrogates
document.queryCommandState('bold'),document.queryCommandState('italic'),document.queryCommandState('underline'), anddocument.queryCommandState('strikeThrough'). - Added robust fallback detection for non-collapsed ranges and whole text box selections, parsing computed
fontWeight('bold','bolder', or numeric values>= 600),fontStyle('italic','oblique'), andtextDecorationLine/textDecoration('underline','line-through'). - Added DOM hierarchy inspection traversing
node.closest()for enclosingb,strong,i,em,u,ins,s,strike,del, and inline CSS style declarations. - Automatically clears all active indicators when a non-text element is selected or when the canvas is deselected.
- Immediate State Synchronization in
execCmd&execFloatCmd: - Bound
syncFormatButtonHighlights()directly intoexecCmd()andexecFloatCmd(), providing instantaneous feedback with zero delay when clicking toolbar buttons. - Resolved an issue in
execFloatCmd()wherestate.isProgrammaticUpdate = truebypassedupdateFloatToolbarValues(), ensuring that toolbar state synchronizes both immediately and following range restoration. - Dynamic Toolbar Button Targeting:
- Updated button queries to synchronize all instances across the DOM simultaneously: ribbon buttons (
#ribbon-bold-btn,#ribbon-italic-btn,#ribbon-underline-btn,#ribbon-strikethrough-btn), floating toolbar buttons (#float-bold-btn,#float-italic-btn,#float-underline-btn,#float-strikethrough-btn), template floating bars (#template-float-bold-btn,#template-float-italic-btn,#template-float-underline-btn,#template-float-strikethrough-btn), fallback float buttons (#float-fallback-bold-btn,#float-fallback-italic-btn,#float-fallback-underline-btn,#float-fallback-strikethrough-btn), and contextual menus.
π¨ High-Contrast Active Tool Styling in Light & Dark Modes (style.css)
- Ribbon Format Buttons (
.modern-format-btn.active,.modern-format-btn.active-tool): - Light mode: Highlighted with a 25% tint of the active theme color (
color-mix(in srgb, var(--ui-theme-color) 25%, transparent)), a 1px solid theme-color border, and darker theme text. - Dark mode: High-contrast 35% theme tint background with solid theme border and pure
#fffffftext/icon color, eliminating dark mode text illegibility. - Floating Toolbar Mini Buttons (
.float-mini-btn.active,.float-mini-btn.active-tool): - Added full
.activeand.active-toolsupport to.float-mini-btnwith 1px theme border and subtle depth shadow. - Implemented dark mode overrides with
filter: none !importantand pure white#fffffftext across all child elements (strong,i), maintaining crisp contrast against dark canvas backgrounds. - Fallback Floating Bar Buttons (
#float-toolbar .mini-btn.active): - Added matching themed background and border rules for fallback mini-buttons.
β¨οΈ Keyboard Shortcuts & Selection Lifecycle Integration
- Keyboard Shortcut Sync (
core/keyboard.js): - Integrated
syncFormatButtonHighlights()intoCtrl+B(Bold),Ctrl+I(Italic),Ctrl+U(Underline), and added explicit handlers for Strikethrough (Alt+Shift+5andCtrl+Shift+X), ensuring toolbar buttons immediately toggle highlight states when formatting via keyboard. - Immediate Selection Tracking (
core/boot.js): - Added fast-path format synchronization to document
selectionchangeevents, allowing buttons to update instantly as the caret is moved with arrow keys or mouse clicks through mixed-format paragraphs. - Clean Element Deselection (
core/selection.js&canvas/interaction.js): - Added explicit format button clearing (
syncFormatButtonHighlights(null)) todeselect()in both selection engines, ensuring no buttons remain highlighted when clicking the canvas background.
π·οΈ Button Element Identifiers & Focus Retention (index.html, extensions/legacy-fixes.js, extensions/ui-interactions.js)
- Explicit Button Identifiers:
- Ribbon bar: Added
id="ribbon-bold-btn",id="ribbon-italic-btn",id="ribbon-underline-btn", andid="ribbon-strikethrough-btn"inindex.html. - Floating toolbar: Added
id="float-bold-btn",id="float-italic-btn",id="float-underline-btn", andid="float-strikethrough-btn"inextensions/legacy-fixes.js. - Template floating toolbar: Added
id="template-float-bold-btn",id="template-float-italic-btn",id="template-float-underline-btn", andid="template-float-strikethrough-btn"inindex.html. - Fallback floating toolbar: Added
id="float-fallback-bold-btn",id="float-fallback-italic-btn",id="float-fallback-underline-btn", andid="float-fallback-strikethrough-btn"inindex.html. - Focus Preservation (
onmousedown="event.preventDefault()"): - Added
onmousedown="event.preventDefault()"to ribbon format buttons and contextual tab buttons, preventing mouse clicks on toolbar controls from stealing DOM focus or clearing the active text selection range before formatting executes.
π¦ Version Synchronization (v5.17.8)
| Component | Target Version | Updated Reference |
|---|---|---|
| Service Worker | v5.17.8 |
open-publisher-v5-17-8-1 in sw.js |
| About Dialog | v5.17.8 |
Free Online Desktop Publishing Tool β’ v5.17.8 in extensions/ui-interactions.js |
| Style Header | v5.17.8 |
Line spacing modal header in style.css |
| Export Template Modal | v5.17.8 |
Package metadata and README in ui/modals/export-template-modal.js |
| Line Spacing Modal | v5.17.8 |
Header documentation in ui/modals/line-spacing-modal.js |
| Template Asset Loaders | v5.17.8 |
getTemplateAssetUrl in elements/templates/templates.js and ui/dashboard.js |
| Application Cachebusters | v5.17.8 |
All 92 module script and stylesheet links updated to ?v=5.17.8 in index.html |
β Checklist Completed
- [x] Implement centralized format button highlight synchronizer (
syncFormatButtonHighlights) inelements/text/text.js - [x] Add real-time highlight synchronization for Bold, Italic, Underline, and Strikethrough buttons across ribbon bar and floating toolbar
- [x] Implement robust DOM query command state checking and computed style parsing for
line-throughand ancestor formatting tags - [x] Support
Alt+Shift+5andCtrl+Shift+Xkeyboard shortcuts for Strikethrough with automatic highlight synchronization incore/keyboard.js - [x] Add high-contrast active styling (
.modern-format-btn.active,.float-mini-btn.active,#float-toolbar .mini-btn.active) instyle.cssfor light and dark modes - [x] Add explicit element IDs and
onmousedown="event.preventDefault()"to format buttons inindex.htmlandextensions/ui-interactions.js - [x] Automatically clear button active highlights on canvas deselect in
core/selection.jsandcanvas/interaction.js - [x] Bump application version and About dialog to
v5.17.8 - [x] Bump Service Worker cache bucket to
open-publisher-v5-17-8-1insw.js - [x] Synchronize all asset cachebusters across
index.html,ui/dashboard.js, andui/menus.jsto?v=5.17.8 - [x] Verify active button highlights, toggle actions, and deselect behavior in light and dark modes via automated Playwright test suite
π Version 5.17.8 - Open Publisher