Skip to content

Commit

Permalink
Patch and bump RoosterJS core package to 9.11.1 (#2816)
Browse files Browse the repository at this point in the history
* Add a ID to the TempDiv, to be able to identify on blur was caused for copy/cut #2813

* update versions.json
  • Loading branch information
BryanValverdeU authored Sep 30, 2024
1 parent fbb2b12 commit b72829f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ import type {
ReadonlyTableSelectionContext,
} from 'roosterjs-content-model-types';

const TEMP_DIV_ID = 'roosterJS_copyCutTempDiv';

/**
* Copy and paste plugin for handling onCopy and onPaste event
*/
Expand Down Expand Up @@ -235,6 +237,7 @@ class CopyPastePlugin implements PluginWithState<CopyPastePluginState> {
div.childNodes.forEach(node => div.removeChild(node));

div.style.display = '';
div.id = TEMP_DIV_ID;
div.focus();

return div;
Expand Down
4 changes: 3 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
"react": "9.0.0",
"main": "9.11.0",
"legacyAdapter": "8.62.1",
"overrides": {}
"overrides": {
"roosterjs-content-model-core": "9.11.1"
}
}

0 comments on commit b72829f

Please sign in to comment.