Commit 4c0c12a
Bump main version to 9.27.0 (#3025)
* Use FormatContainer to represent DIV with id (#3003)
* Fix #3005 (#3007)
* Fix a cache issue (#3006)
* Refactor getStyleMetadata to not rely on DomCreator and only use String handling (#3010)
* Refactor paste plugin to remove unused DOMCreator parameter and enhance style extraction logic
* fix test
* Change search string to lowercase
* Clean image edit when undo (#3015)
* undo image
* undo image
* undo image
* Add 'CustomCopyCut' experimental feature to fix some copy cut bugs (#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>
* Demo site: Add preset content for undeleteable anchor (#3014)
Co-authored-by: Bryan Valverde U <bvalverde@microsoft.com>
* Revert "Refactor getStyleMetadata to not rely on DomCreator and only use Stri…" (#3020)
This reverts commit 5bbab35.
* Add API playground for createModelFromHTML (#3019)
* Add API playground for createModelFromHTML
* imporve
---------
Co-authored-by: Bryan Valverde U <bvalverde@microsoft.com>
* Do not copy div ID on Enter (#3011)
* wip
* insertCustom
* refactor
* formatKeys
* Add image hidden marker (#3021)
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.
* Include ImageMetadata in FormatState (#3023)
* Support List Pasting from PowerPoint Desktop (#3012)
* 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>
* Remove comments `<!--` and `-->` from styles and re apply fix for Word 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>
* Bump main version to 9.27.0 in versions.json
* insert link in the image (#3027)
When the image is selected, do not replace the image with the link, add the link to image segment.
* square (#3029)
Instead of using a square character, this change updates the square style to use the 'square' style.
* Normalize default format (#3028)
* Normalize default format
* improve
---------
Co-authored-by: Bryan Valverde U <bvalverde@microsoft.com>
* auto link (#3026)
* Add margin-inline-start to watermark styles for improved positioning (#3031)
---------
Co-authored-by: Jiuqing Song <jisong@microsoft.com>
Co-authored-by: Julia Roldi <87443959+juliaroldi@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 39154d7 commit 4c0c12a
File tree
95 files changed
+8277
-602
lines changed- demo/scripts
- controlsV2
- mainPane
- options
- sidePane
- apiPlayground
- createModelFromHtml
- insertCustomContainer
- insertEntity
- editorOptions
- presets
- allPresets
- utils
- packages
- roosterjs-content-model-api
- lib/publicApi/link
- test
- modelApi/common
- publicApi
- format
- link
- roosterjs-content-model-core
- lib
- command/paste
- corePlugin
- cache
- copyPaste
- utils
- format
- utils
- test
- command/paste
- corePlugin
- cache
- copyPaste
- utils
- format
- overrides
- roosterjs-content-model-dom
- lib
- constants
- domToModel/processors
- formatHandlers
- segment
- modelApi
- common
- editing
- test
- domToModel/processors
- formatHandlers/segment
- modelApi
- common
- editing
- roosterjs-content-model-plugins
- lib
- autoFormat
- horizontalLine
- edit
- utils
- imageEdit
- utils
- paste
- PowerPoint
- WordDesktop
- parsers
- utils
- watermark
- test
- autoFormat
- edit
- inputSteps
- utils
- imageEdit
- utils
- paste
- e2e
- htmlTemplates
- plugin
- utils
- word
- watermark
- roosterjs-content-model-types/lib
- contentModel/format
- formatParts
- editor
- parameter
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
95 files changed
+8277
-602
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
194 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
195 | 204 | | |
196 | 205 | | |
197 | 206 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 73 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
demo/scripts/controlsV2/sidePane/apiPlayground/insertCustomContainer/InsertCustomContainerPane.tsx
Lines changed: 103 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
101 | | - | |
| 102 | + | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments