| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| OpenPublisher-5-x86_64.AppImage | 2026-10-12 | 166.4 MB | |
| openpublisher5_amd64-windows-portable.exe | 2026-10-12 | 183.2 MB | |
| openpublisher5_amd64-windows.exe | 2026-10-12 | 165.2 MB | |
| openpublisher5_amd64-macos.dmg | 2026-10-12 | 233.1 MB | |
| openpublisher5_amd64-linux.run | 2026-10-12 | 193.4 MB | |
| 5.7.5_ Text Box Border Art Padding, Context Menu Type Discrimination _ Slider Reactivity source code.tar.gz | 2026-10-12 | 22.5 MB | |
| 5.7.5_ Text Box Border Art Padding, Context Menu Type Discrimination _ Slider Reactivity source code.zip | 2026-10-12 | 22.8 MB | |
| README.md | 2026-10-12 | 12.4 kB | |
| openpublisher5_amd64-linux.rpm | 2026-10-12 | 215.4 MB | |
| openpublisher5_amd64-linux.flatpak | 2026-10-12 | 153.6 MB | |
| openpublisher5_amd64-linux.deb | 2026-10-12 | 156.2 MB | |
| openpublisher5_amd64-freebsd.pkg | 2026-10-12 | 185.5 MB | |
| Totals: 12 Items | 1.7 GB | 0 | |
π Summary
Version 5.7.5 introduces critical fixes and architectural enhancements for Border Art when applied to text boxes and pages:
- Independent Slider Reactivity for Elements: The "Art Size" and "Margin / Inset" sliders now immediately adjust border art on selected text boxes in real time without requiring a full page border to be added first.
- Target State Synchronization & Isolation: Switching between "Whole Page" and "Selected Box" seamlessly synchronizes the sliders, labels, and pattern card highlights with the active target, completely isolating page border settings from element border settings.
- Dynamic Text Box Padding: When Border Art is applied to a text box, padding is automatically calculated and applied to the text container matching the border tile reach plus a buffer. This ensures text entered into the text box remains fully visible inside the border and never types under or into the border art clipart. When border art is removed, the original padding is cleanly restored.
- Context Menu Type Discrimination: Resolves an element discrimination conflict where text boxes with border art were misidentified as images (because border art tiles contain
<img>tags). The right-click context menu now correctly presents the full Text Box menu (including "Format Text Box" and "Border Art...") rather than picture options ("Change Picture...", "Crop Image"). - Cursor and Selection Preservation: Ensures text editing focus, text selection, hover cursors, and the selection pane correctly treat text boxes with border art as text boxes, while preserving full functionality for true picture elements.
- Print and Export Preservation: All existing border art rendering, layout, and print engine pipelines remain 100% operational without regression.
π Problems Solved & Root Cause Analysis
1. Border Art Sliders Disconnected on Text Boxes
- Root Cause 1 (
this.currentArtIdUnpopulated): Inelements/border-art/border-art.js,onSizeChange()andonInsetChange()guarded execution withif (this.currentArtId && this.currentArtId !== 'none'). However,this.currentArtIdwas only populated insiderenderPageBorder(). When a user created a text box and applied border art,this.currentArtIdremainednull. Consequently, moving either slider evaluated to false and failed to callthis.apply(). Only when a page border was added first didrenderPageBorder()populatethis.currentArtId, which accidentally unblocked the slider guard but applied the page preset across targets. - Root Cause 2 (Target State Desynchronization): In
setTarget(), switching between "Whole Page" and "Selected Box" updated button styles but never synchronized slider values, numerical labels, or active card highlights to the target being selected. - Root Cause 3 (Element Clamping Threshold): In
renderElementBorder(), size was previously clamped toMath.floor(Math.min(w, h) / 3), which artificially capped 100px text boxes to 33px regardless of slider inputs. - The Solution:
- Implemented
BorderArtEngine.syncStateWithTarget()to inspect the target element (data-border-art) or page border (data-style) and synchronizecurrentArtId,currentSize,currentInset, slider inputs, and active card styling. - Implemented
BorderArtEngine.getActiveArtId()to dynamically resolve the active preset from the target element or page border ifcurrentArtIdis unset. - Updated
setTarget()to invokesyncStateWithTarget(), ensuring instantaneous two-way synchronization whenever switching targets. - Updated
onSizeChange()andonInsetChange()to update slider DOM values, numerical readout labels, and apply changes directly to the target. - Relaxed element size bounds to
Math.min(w, h) / 2 - 2and persisted user-selected slider values on the element attribute so users can freely dial in sizes up to 64px. - Guarded
renderPageBorder()so background resize operations on paper never overwrite the element state when targeting a selected box.
2. Text Box Typing Overlap (Dynamic Border Art Padding)
- Root Cause: When Border Art was applied to an element via
BorderArtEngine.renderElementBorder(), an overlay container.element-border-artwith tiled clipart images was attached inside.element-content. However, the editable text container ([contenteditable="true"]) remained at its defaultpadding: 10px. With border tiles sized at 32px or higher, text entered by the user typed directly into and underneath the clipart tiles. - The Solution: In
elements/border-art/border-art.js,renderElementBorder()now inspects whether the target element contains an editable text container. When border art is applied: - The original padding is stored in
data-original-paddingon the editable element if not already preserved. - The border reach is computed from
safeInset + safeSize. - A dynamic padding value (
targetPad = Math.round(borderReach + 6)) is assigned to the text container withbox-sizing: border-box. - Padding dynamically updates if the text box is resized or if the border art size or inset sliders are adjusted.
- When border art is removed (
artId === 'none'), the original padding is restored anddata-original-paddingis cleared.
3. Context Menu False Positive Image Detection
- Root Cause: In
ui/menus.js, the context menu builder determined whether an element was a picture viaconst isImage = el.querySelector('img'). Because border art adds thumbnail clipart images inside.element-border-art, any text box with border art evaluatedisImageas true andisTextas false. - The Failure: Right-clicking a text box with border art presented image items ("Change Picture...", "Apply to Background", "Crop Image", etc.), completely hiding "Format Text Box" and "Border Art...".
- The Solution:
- Introduced
window.getElementContentImage(el)incore/core.jsto search for content images while ignoring images inside.element-border-art,.border-art-wrapper, or#native-border-art-border. - Updated
ui/menus.jssoisTextrecognizes[contenteditable="true"]text boxes, andisImageonly evaluates to true when a non-border content image is present without an editable text box. - Text boxes with border art now reliably show "Format Text Box" and "Border Art..." on right-click.
4. Cursor Hover, Mouse Interaction, and Ribbon Tab Consistency
- Root Cause: Similar
el.querySelector('img')checks existed inui/ui.js(context ribbon tab updates),elements/text/text.js(floating text toolbar),ui/sidebar/selection-pane.js(element naming),extensions/smart-images.js,canvas/interaction.js, andcanvas/interaction-mouse.js(drag vs text selection). This caused text boxes with border art to open the "Format Picture" ribbon tab instead of "Format Text", suppress the text toolbar, and initiate element dragging when clicking on text. - The Solution:
- Updated
ui/ui.jsupdateTabs()to activate the "Format Text" tab for text boxes with border art. - Updated
elements/text/text.jsshowFloatToolbar()to display the floating text toolbar. - Updated mouse interaction handlers in
canvas/interaction.js,canvas/interaction-mouse.js, andextensions/system-patches.jsto allow text focus and caret placement inside text boxes with border art while preserving edge dragging. - Updated
ui/sidebar/selection-pane.jsto list text boxes with border art as "Text Box" instead of "Picture".
π Files Modified
| File | Changes |
|---|---|
elements/border-art/border-art.js |
Added syncStateWithTarget(), getActiveArtId(), slider synchronization, dynamic element padding, target isolation, and relaxed size thresholds. |
core/core.js |
Added window.getElementContentImage(el) helper to identify content images without mistaking border art decoration tiles. |
ui/menus.js |
Updated element type discrimination in ContextMenuSystem.buildMenu() so text boxes with border art display the Text Box context menu. |
ui/ui.js |
Updated ContextRibbonSystem.updateTabs() to activate the "Format Text" tab for text boxes with border art. |
elements/text/text.js |
Updated showFloatToolbar() to keep the text floating formatting bar active for text boxes with border art. |
ui/sidebar/selection-pane.js |
Updated element naming logic so text boxes with border art are identified as "Text Box". |
extensions/smart-images.js |
Updated cursor hover check so text boxes with border art show the text cursor over text content. |
canvas/interaction.js |
Updated drag logic to differentiate between content images and border art tiles. |
canvas/interaction-mouse.js |
Updated mouse drag and cursor check to avoid false image triggers on border art. |
extensions/ui-interactions.js |
Updated batch smart swap target filter to exclude border art text boxes. Bumped About dialog version to v5.7.5. |
extensions/legacy-fixes.js |
Updated Image Sidebar visibility check with getElementContentImage. Bumped engine log to v5.7.5. |
extensions/system-patches.js |
Updated Image Sidebar visibility check and mouse interaction handlers with getElementContentImage. |
extensions/print-engine.js |
Bumped print sequence log string to v5.7.5. |
extensions/pwa-install.js |
Bumped header comment to (v5.7.5) and Service Worker registration query to sw.js?v=5.7.5. |
sw.js |
Bumped Service Worker cache name to open-publisher-v5-7-5 and header comment to (v5.7.5). |
ui/dashboard.js |
Updated template fetch cachebuster queries to ?v=5.7.5. |
ui/modals/options-modal.js |
Bumped header comment to (v5.7.5). |
ui/sidebar-context.js |
Bumped header comment to (v5.7.5). |
index.html |
Synchronized all 83 asset cachebuster queries from ?v=5.7.4 to ?v=5.7.5. |
β v5.7.5 Verification Checklist
- [x] Independent Element Slider Reactivity: Verified "Art Size" and "Margin / Inset" sliders adjust border art on selected text boxes directly and immediately without needing a page border.
- [x] Target State Synchronization: Verified switching between "Whole Page" and "Selected Box" synchronizes slider positions, numerical labels, and card highlights to the active target.
- [x] Page and Element State Isolation: Verified adjusting sliders on an element does not alter page border settings, and adjusting page border does not alter element settings.
- [x] Dynamic Text Box Border Art Padding: Verified text boxes automatically expand padding to equal the border reach plus buffer when border art is applied or resized.
- [x] Padding Restoration: Verified removing border art restores original padding (10px) cleanly without residual offsets.
- [x] Text Box Context Menu Access: Verified right-clicking a text box with border art displays the Text Box context menu with "Format Text Box" and "Border Art...".
- [x] True Image Menu Preservation: Verified true picture elements continue to display the Picture context menu ("Change Picture...", "Crop Image", etc.).
- [x] Ribbon Tab Synchronization: Verified selecting a text box with border art activates the "Format Text" tab instead of "Format Picture".
- [x] Cursor and Interaction Fidelity: Verified text boxes with border art allow text selection and editing in the body while retaining edge-drag move handles.
- [x] Selection Pane Parity: Verified text boxes with border art are labeled as "Text Box" rather than "Picture" in the selection sidebar.
- [x] Print Engine Fidelity: Verified border art elements and text boxes with dynamic padding render and print cleanly without distortion or errors.
- [x] Cachebuster Synchronization: Verified all 83 asset queries in
index.htmlandui/dashboard.jsare updated to?v=5.7.5. - [x] Service Worker Cache: Verified cache name in
sw.jsis updated toopen-publisher-v5-7-5. - [x] Automated Test Suite: Executed end-to-end automated Playwright tests with all verification suites passing cleanly.
π Version 5.7.5 - Open Publisher