Repository navigation
Fix borders being incorrectly applied when pasting tables from Word Desktop - #3470
Open
Bryan Valverde U (BryanValverdeU) wants to merge 2 commits into
Open
Bryan Valverde U (BryanValverdeU) wants to merge 2 commits into
Bryan Valverde U (BryanValverdeU) wants to merge 2 commits into
Conversation
|
Add a Word Desktop border parser that reads the original style attribute and preserves explicit border:none declarations by clearing the corresponding table border formats. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 12a1ef28-2e75-4648-a2a2-c149b4436919
Bryan Valverde U (BryanValverdeU)
force-pushed
the
u/bvalverde/fixWordTableNoBorderPaste
branch
from
October 5, 2026 23:45
5824c5f to
7e38f92
Compare
… paste Fix unit tests for addParser call counts after adding wordBorderParser Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: fc13a30a-b68a-4db8-a3eb-c057f2195fe4
Bryan Valverde U (BryanValverdeU)
marked this pull request as ready for review
October 6, 2026 15:16
Julia Roldi (juliaroldi)
approved these changes
Oct 6, 2026
This branch has not been 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.
Root cause: Word Desktop marks table cells/borders with border: none in inline styles, but this wasn't being parsed, so the no-border intent was lost and default/inherited borders appeared after paste.
Fix: Added a wordBorderParser that detects border: none (and per-side variants) in the pasted style and explicitly sets the corresponding ContentModelTableFormat properties to 'none' (previously set to '' , which didn't correctly suppress borders downstream).
Before

After

Source
