Commit faaedb6
feat: initial support for multi-column; lists and media fixes(Copy/paste project) (#2528)
* feat: initial support for multi-column; lists and media fixes
* fix: build error
* fix: address codex review comments
* fix: remove duplicated functions and improve html parsing
* test: add behavior tests for SuperDoc-to-SuperDoc copy-paste (SD-148)
- Copy-paste preserves inline formatting (bold)
- Copy-paste preserves list structure
- Cut removes content, paste restores it
- Pasted block identities are stripped (no duplicate paraId/sdBlockId)
- Copy-paste preserves images from multi-format document (PNG, JPG, BMP, GIF, TIFF)
- Image path collision triggers rename to avoid overwriting existing media
* test: add unit tests for clipboard embed/extract round-trip and slice paste guard (SD-148)
- embedSliceInHtml/extractSliceFromHtml/stripSliceFromHtml round-trip
- Unicode content round-trip (CJK, emoji)
- bodySectPr embed + extract round-trip
- extractSliceFromHtml returns null for plain HTML
- bodySectPrShouldEmbed with multi/single column
- shouldPreserveSlicePastedListRendering preserves freshly pasted list data
- non-slice paragraphs still get recalculated
---------
Co-authored-by: Caio Pizzol <caio@harbourshare.com>
Co-authored-by: Caio Pizzol <97641911+caio-pizzol@users.noreply.github.com>1 parent 48a74f9 commit faaedb6
22 files changed
Lines changed: 2408 additions & 70 deletions
File tree
- packages
- layout-engine/style-engine/src/ooxml
- super-editor/src/editors/v1
- core
- commands
- helpers
- inputRules
- docx-paste
- html
- renderers
- extensions/paragraph
- helpers
- tests/behavior/tests/copy-paste
- fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
| 78 | + | |
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
| |||
158 | 156 | | |
159 | 157 | | |
160 | 158 | | |
161 | | - | |
162 | | - | |
163 | | - | |
| 159 | + | |
164 | 160 | | |
165 | 161 | | |
166 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
0 commit comments