Repository navigation
fix(editor): preserve rich copy, add Select All, and update Workspace icon - #273
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Deploying markdownviewer with
|
| Latest commit: |
28b1a77
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://90c7575f.markdownviewer.pages.dev |
| Branch Preview URL: | https://fix-270-rich-copy-select-all.markdownviewer.pages.dev |
Owner
Author
|
Hi @Sifu5, please review the latest update when you get a chance. Please check whether everything is working correctly and whether the formatting remains consistent when pasting the copied content into a DOCX/Word document. If you notice any issue, please let me know. Thank you! |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preview Copy used a text-only clipboard write, so pasting into Google Docs lost the document formatting. It now supplies sanitized HTML and readable plain text for context-menu Copy and native browser Copy, including partial selections. A copy-event fallback supports browsers without asynchronous HTML clipboard writes. Preview controls are excluded from copied content.
The copy commands follow their document context:
Workspace rows use Lucide's bundled
briefcase-businessicon in web and desktop, including collapsed and drag-expanded states. The Features and Usage Guide explain selection and copying, whole-document tooltips are translated in all 15 catalogs, and shared desktop resources are synchronized.Validation on the final change:
npm test -- -- --workers=1: build/static/SEO checks, 22 unit tests and all 287 Chromium tests passed.node desktop-app/prepare.jscompleted; web and desktop scripts match.git diff --checkpassed.Physical Android PWA → Google Docs verification remains a manual check; automated browser touch and clipboard tests do not exercise the native Docs app.
Closes #270.