Skip to content

Conversation

@JiuqingSong
Copy link
Collaborator

See #3055 for more details

JiuqingSong and others added 30 commits April 21, 2025 10:20
…ng handling (#3010)

* Refactor paste plugin to remove unused DOMCreator parameter and enhance style extraction logic

* fix test

* Change search string to lowercase
* undo image

* undo image

* undo image
…3000)

* Add 'CustomCopyCut' experimental feature to enhance copy/cut behavior

* Implement pruneUnselectedModel utility for optimizing copy/paste behavior

* Try fix iuld

* Address comment and fix broken tests

* Revert unneeded change

* Refactor pruneUnselectedModel

---------

Co-authored-by: Jiuqing Song <jisong@microsoft.com>
Co-authored-by: Bryan Valverde U <bvalverde@microsoft.com>
* Add API playground for createModelFromHTML

* imporve

---------

Co-authored-by: Bryan Valverde U <bvalverde@microsoft.com>
* wip

* insertCustom

* refactor

* formatKeys
Instead of using a dataset to store the isEditing property, a hidden property is now used. To support this, get/set functions and the ImageMarkerFormat were introduced. The imageMarker property can now be accessed through the format property of the image.
This change eliminates the need to manually remove the dataset from the image element when extracting content from the DOM.
* Refactor paste parsers: add removeNegativeTextIndentParser and deprecatedBorderColorParser; update imports and constants for bullet list types

* Update packages/roosterjs-content-model-plugins/lib/paste/PowerPoint/processPastedContentFromPowerPoint.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Refactor bullet list constants and improve format parser signatures

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…d Desktop Pasting (#3024)

* Update dependencies and enhance paste functionality by cleaning HTML comments in style tags

* Reapply "Refactor getStyleMetadata to not rely on DomCreator and only use Stri…" (#3020)

This reverts commit 32f47bf.

* Enhance cleanHtmlComments to handle both HTML comment formats in style tags

* Set original DOMPurify

* Update packages/roosterjs-content-model-plugins/lib/paste/WordDesktop/getStyleMetadata.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Ensure headEndIndex is valid

* address comment

* Address comments

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Jiuqing Song <jisong@microsoft.com>
When the image is selected, do not replace the image with the link, add the link to image segment.
Instead of using a square character, this change updates the square style to use the 'square' style.
* Normalize default format

* improve

---------

Co-authored-by: Bryan Valverde U <bvalverde@microsoft.com>
* Allow queryContentModelBlocks to search children of entity

* Expect EditorContext instead

* Break out createEditorContextForEntity function into separate file and add tests
* options

* add test
* keyboard tab

* remove import
* Fix 354663

* export the new function
Co-authored-by: Jiuqing Song <jisong@microsoft.com>
* Add height property to table rows in paste tests and processor

* Fix build

* Remove local change
* Fix A11y bug with table selection

* Add comment
* Enhance paste functionality: support additional document types and extract HTML head content

* Fix paste source validations for Safari: update environment handling and improve document detection logic

* Add environment param back
…3049)

* Prevent multiple event attachments for mousemove in SelectionPlugin

* Update packages/roosterjs-content-model-core/test/corePlugin/selection/SelectionPluginTest.ts

* Refactor mouse event handling in SelectionPlugin to ensure proper cleanup and re-attachment on mouseDown events
BryanValverdeU and others added 6 commits May 23, 2025 13:36
* Enhance paste functionality: Update setProcessor call counts in tests and add pasteButtonProcessor unit tests

* Refactor pasteButtonProcessor: Enhance button element processing and add comprehensive unit tests
* Support table edit with logical root

* fix build and test

---------

Co-authored-by: Bryan Valverde U <bvalverde@microsoft.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR bumps the version of the roosterjs-content-model-dom package to 9.29.1 to address issue #3055 and adds additional tests for the normalizeFontFamily function.

  • Updated versions.json to include the new version override for roosterjs-content-model-dom
  • Added new test cases in normalizeFontFamilyTest.ts to check for single-quoted and mixed-quoted font families
  • Modified the regex in normalizeFontFamily.ts to correctly handle both single and double quotes

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
versions.json Added "overrides" field with the new package version
packages/roosterjs-content-model-dom/test/domUtils/style/normalizeFontFamilyTest.ts Introduced new test cases for various quoting patterns
packages/roosterjs-content-model-dom/lib/domUtils/style/normalizeFontFamily.ts Updated regex to capture both single and double quoted font names

@JiuqingSong JiuqingSong merged commit 795fad2 into release May 27, 2025
7 checks passed
@JiuqingSong JiuqingSong deleted the u/jisong/3055 branch May 27, 2025 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants