Commit fae88b3
Version bump to 9.48.0 (#3307)
* Fix publish file (#3267)
* fix publish file
* remove file
* [Table Improvements] Add undoSnapshot when tab on a table cell (#3265)
Add undoSnapshot after pressing Tab key in a table that has new content, otherwise if the user type content in a table and press tab to move to another cell and then undo the content, all the typed content will be removed.
* [Table Improvements] Use keyboard to delete rows and columns (#3270)
When press backspace or shift + delete when an entire row or column, delete the column and row.
* [Table Improvements] Add Shift Cells Table Operation (#3271)
Add new shift cells up and shift cells left table operations. These operations move the table cell content to the cells at left or above.
* align table cell list (#3275)
When apply alignment in table cells that has list items, also apply the alignment to the list items.
* fill gaps (#3272)
* Bump lodash from 4.17.21 to 4.17.23 (#3266)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.21...4.17.23)
---
updated-dependencies:
- dependency-name: lodash
dependency-version: 4.17.23
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jiuqing Song <[email protected]>
* fix table format (#3277)
When triggering clearFormat on table cells, do not clear the cell or the table format.
* [Table Improvements] Add preview for table cell selection (#3274)
When start shadow edit, check if table cells are selected, if they are selected, remove the background color to make the styles changes visible in the table.
* Fix outdated JSDoc comments in setTableCellsStyle.ts (#3278)
Fix JSDoc comments for removeTableCellsStyle function to match actual parameters
Fix JSDoc comments for setTableCellsStyle function to match actual parameters
* Fix 329516 (#3276)
Co-authored-by: Bryan Valverde U <[email protected]>
* [Table Improvements] Insert table content (#3258)
When inserting a table in a range selection, insert the selected content inside the table.
* Bump webpack from 5.94.0 to 5.104.1 (#3285)
Bumps [webpack](https://github.com/webpack/webpack) from 5.94.0 to 5.104.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Changelog](https://github.com/webpack/webpack/blob/main/CHANGELOG.md)
- [Commits](webpack/webpack@v5.94.0...v5.104.1)
---
updated-dependencies:
- dependency-name: webpack
dependency-version: 5.104.1
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Filter temporary EOP elements in Word Online paste and add test pattern support (#3283)
* Filter temporary EOP elements in Word Online paste and add test pattern support
- Skip elements with both 'Selected' and 'EOP' classes during WAC paste processing to remove temporary End of Paragraph markers
- Add unit tests for EOP element filtering behavior (3 test cases)
- Enhance test runner with --testPathPattern and --testNamePattern flags for faster targeted test execution
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Update packages/roosterjs-content-model-plugins/lib/paste/WacComponents/processPastedContentWacComponents.ts
Co-authored-by: Copilot <[email protected]>
---------
Co-authored-by: Claude Sonnet 4.5 <[email protected]>
Co-authored-by: Copilot <[email protected]>
* Dark color improvement (#3279)
* Dark color improvement
* improve
* Fix #3280 (#3282)
* [Table Improvements] Ignore span cells when merge table cells (#3281)
When merging table cells, count table that are span as one cell, so two or more cells cannot be merge to one single span cell.
* Preserve cursor position when navigating tables (#3284)
When pressing key up or key down in table cells that have text, preserve the cursor position.
* Add adjustWordListMarginParser to fix duplicate list indentation when pasting from Word Desktop (#3288)
Word Desktop pastes list items with full indentation as marginLeft on MsoListParagraph
elements, which duplicates the paddingInlineStart (40px) already applied by the
browser's default list styling. This parser subtracts the default 40px from the
marginLeft of list items with the MsoListParagraph class to correct the indentation.
- Add adjustWordListMarginParser using parseValueWithUnit for unit conversion
- Register parser for listItemElement in processPastedContentFromWordDesktop
- Update addParser call count expectations in pasteTest and ContentModelPastePluginTest
- Add dedicated test case for the margin adjustment behavior
* Remove mutations that is not under editor (#3290)
Co-authored-by: Bryan Valverde U <[email protected]>
* Preserve trailing space in last paragraph segment by converting to nbsp (#3235) (#3287)
* Preserve trailing space in last paragraph segment by converting to nbsp
When the last text segment in a paragraph ends with a regular space,
browsers collapse it during rendering. This change detects that case in
handleText and replaces the trailing space with a non-breaking space
(\u00A0) so it is preserved in the output.
To support this, a new ModelToDomSegmentContext interface is introduced
that extends ModelToDomContext with an isLastSegment flag. handleParagraph
sets this flag for each segment before dispatching, and ContentModelSegmentHandler
is updated to use ModelToDomSegmentContext as its context type, eliminating
the need for type casts in the handlers.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
* Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
* Improve trailing space to nbsp conversion with noFollowingTextSegmentOrLast
Refactor handleParagraph to track whether a text segment is the last in the
paragraph or has no following text segment (excluding SelectionMarkers).
This ensures trailing spaces are converted to not only for the very
last segment, but also when the next non-marker segment is not a Text segment.
- Convert forEach to for loop in handleParagraph for segment iteration
- Extract hasTextSegmentAfter helper to check for upcoming text segments
- Add noFollowingTextSegmentOrLast property to ModelToDomSegmentContext
- Update handleText to use the new property name
- Fix stale isLastSegment references in handleTextTest
- Add comprehensive tests for noFollowingTextSegmentOrLast in handleParagraphTest
---------
Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Co-authored-by: Copilot <[email protected]>
* Do not invalidate cached model for ContentChangedEvent (#3291)
* Bump minimatch from 3.1.2 to 3.1.5 (#3295)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.1.2 to 3.1.5.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](isaacs/minimatch@v3.1.2...v3.1.5)
---
updated-dependencies:
- dependency-name: minimatch
dependency-version: 3.1.5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* [Table Improvements] Add new customization properties for table format (#3293)
* merge model
* new table styles
* fixes
* add test
* nit
* nit
* Bump immutable from 4.0.0 to 4.3.8 (#3298)
Bumps [immutable](https://github.com/immutable-js/immutable-js) from 4.0.0 to 4.3.8.
- [Release notes](https://github.com/immutable-js/immutable-js/releases)
- [Changelog](https://github.com/immutable-js/immutable-js/blob/main/CHANGELOG.md)
- [Commits](immutable-js/immutable-js@v4.0.0...v4.3.8)
---
updated-dependencies:
- dependency-name: immutable
dependency-version: 4.3.8
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix merge table error (#3302)
When pasting table cells that are merged, counts only the logical cells and not all physical cells, otherwise, the number of pasted cells will appear bigger than then the actually copied
* Add 'resolveImageSource' option to support cid image source for canvas editing (#3301)
* Feature: support cid: image sources via resolveImageSource for reliable canvas editing
* Fix format
---------
Co-authored-by: Liang Meng <[email protected]>
Co-authored-by: Jiuqing Song <[email protected]>
* Fix #3292 Put B/I/U/S under hyperlink (#3297)
* Fix #3292
* Update packages/roosterjs-content-model-types/lib/contentModel/format/ContentModelFormatMap.ts
Co-authored-by: Copilot <[email protected]>
---------
Co-authored-by: Copilot <[email protected]>
* Keep Margins in the List items, and set the padding of list elements for better paste interop with Wac Components (#3304)
* Keep Margins in the List items, and set the padding of list elements for better paste interop with Word Components
* Remove obsolete test
* Fix cursor position for arrow up (#3305)
* merge model
* move table cursor
* Version bump to 9.48.0
---------
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Julia Roldi <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Bryan Valverde U <[email protected]>
Co-authored-by: Claude Sonnet 4.5 <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Liang <[email protected]>
Co-authored-by: Liang Meng <[email protected]>1 parent d98c5b3 commit fae88b3
File tree
29 files changed
+2301
-362
lines changed- demo/scripts/controlsV2/demoButtons
- packages
- roosterjs-content-model-core
- lib/corePlugin
- cache
- selection
- test/corePlugin
- cache
- selection
- roosterjs-content-model-dom
- lib
- formatHandlers
- modelApi
- editing
- metadata
- modelToDom/utils
- test
- domToModel/context
- modelApi
- editing
- metadata
- modelToDom
- context
- utils
- roosterjs-content-model-plugins
- lib
- imageEdit
- types
- utils
- paste/WacComponents
- test/paste/word
- roosterjs-content-model-types/lib
- contentModel/format
- metadata
29 files changed
+2301
-362
lines changedLines changed: 269 additions & 104 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | 118 | | |
121 | 119 | | |
122 | 120 | | |
| |||
165 | 163 | | |
166 | 164 | | |
167 | 165 | | |
168 | | - | |
169 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
| 587 | + | |
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
| 504 | + | |
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
| 511 | + | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| |||
Lines changed: 76 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2144 | 2144 | | |
2145 | 2145 | | |
2146 | 2146 | | |
2147 | | - | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
| 2196 | + | |
| 2197 | + | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
2148 | 2201 | | |
2149 | 2202 | | |
2150 | 2203 | | |
2151 | | - | |
2152 | | - | |
2153 | | - | |
2154 | | - | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
2155 | 2208 | | |
2156 | 2209 | | |
2157 | | - | |
2158 | | - | |
| 2210 | + | |
| 2211 | + | |
2159 | 2212 | | |
2160 | 2213 | | |
2161 | 2214 | | |
| |||
2165 | 2218 | | |
2166 | 2219 | | |
2167 | 2220 | | |
2168 | | - | |
| 2221 | + | |
2169 | 2222 | | |
2170 | | - | |
| 2223 | + | |
2171 | 2224 | | |
2172 | | - | |
| 2225 | + | |
2173 | 2226 | | |
2174 | 2227 | | |
2175 | 2228 | | |
2176 | 2229 | | |
2177 | 2230 | | |
2178 | 2231 | | |
| 2232 | + | |
2179 | 2233 | | |
2180 | 2234 | | |
2181 | 2235 | | |
2182 | | - | |
| 2236 | + | |
2183 | 2237 | | |
2184 | | - | |
| 2238 | + | |
2185 | 2239 | | |
2186 | | - | |
| 2240 | + | |
2187 | 2241 | | |
2188 | 2242 | | |
2189 | 2243 | | |
| |||
2197 | 2251 | | |
2198 | 2252 | | |
2199 | 2253 | | |
2200 | | - | |
| 2254 | + | |
2201 | 2255 | | |
2202 | 2256 | | |
2203 | 2257 | | |
2204 | 2258 | | |
2205 | 2259 | | |
2206 | | - | |
| 2260 | + | |
2207 | 2261 | | |
2208 | 2262 | | |
2209 | 2263 | | |
2210 | 2264 | | |
2211 | 2265 | | |
2212 | | - | |
2213 | | - | |
2214 | | - | |
2215 | | - | |
2216 | | - | |
2217 | | - | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
2218 | 2272 | | |
2219 | 2273 | | |
2220 | 2274 | | |
| |||
2227 | 2281 | | |
2228 | 2282 | | |
2229 | 2283 | | |
| 2284 | + | |
2230 | 2285 | | |
2231 | 2286 | | |
2232 | 2287 | | |
| |||
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| |||
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
145 | | - | |
| 149 | + | |
| 150 | + | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
| |||
0 commit comments