| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| OpenPublisher_setup.exe | 2026-09-14 | 69.3 MB | |
| OpenPublisher.deb | 2026-09-14 | 96.8 MB | |
| OpenPublisher.AppImage | 2026-09-14 | 125.8 MB | |
| OpenPublisher_Portable.exe | 2026-09-14 | 74.8 MB | |
| OpenPublisher.dmg | 2026-09-14 | 108.1 MB | |
| OpenPublisher.rpm | 2026-09-14 | 128.2 MB | |
| 4.20.6_ Text Box Copy and Paste Fix source code.tar.gz | 2026-09-14 | 21.4 MB | |
| 4.20.6_ Text Box Copy and Paste Fix source code.zip | 2026-09-14 | 21.7 MB | |
| README.md | 2026-09-14 | 2.6 kB | |
| Totals: 9 Items | 646.2 MB | 0 | |
🚀 Summary
Version 4.20.6 fixes a bug where text boxes could not be copied and pasted as elements. Selecting a text box and pressing Ctrl+C (or using the Copy button) would silently do nothing, leaving the clipboard empty. All other copy and paste features continued to work correctly (text with formatting, images, shapes, tables, etc.), but the text box element itself could not be duplicated. This update fixes the root cause in the copy engine.
🛠️ Enhancements & Fixes
1. Root Cause Identified and Fixed
The bug was inside the copyEl() function in extensions/legacy-fixes.js. The function contained a "recover focus" block designed to restore a lost text selection after clicking a ribbon button. This block would:
- Check if the currently active element was not a content-editable area.
- If so, look inside the selected element for a
contenteditable="true"inner div (which all text boxes have). - Assign that inner div as the active element and mark
isTextEditing = true.
This caused a problem: when a user simply selected a text box element and pressed Ctrl+C - without having any text highlighted inside it - the code incorrectly entered the "copy text" path. Since no text was highlighted, hasTextSelection was false, so it returned without copying anything. The text box element was never added to the internal clipboard.
2. The Fix
The "recover focus" block now only runs when the user actually has text highlighted (checked before the block runs). The text-copy path now also requires both isTextEditing AND hasTextSelection to be true before entering. This means:
- Selecting a text box and pressing Ctrl+C: copies the whole text box element as before.
- Double-clicking into a text box, highlighting some text, then pressing Ctrl+C: copies the highlighted text with formatting as before.
- All other copy and paste features remain unchanged.
✅ Checklist Completed
- [x]
extensions/legacy-fixes.js: FixedcopyEl()- the "recover focus" block now only runs when text is actually highlighted. The text-copy branch now requires bothisTextEditingandhasTextSelectionto be true, preventing text boxes from blocking element copy. - [x]
index.html: Synchronized all asset query strings to?v=4.20.6. - [x]
elements/templates/templates.js: Synchronized template runtime fetch query parameters to?v=4.20.6.
Version 4.20.6 - Open Publisher