Wednesday, March 12, 2025
1 change · master
Code cleanup and technical improvements
This internal cleanup removes an unnecessary input from the editor's paste handling. It helps keep the code simpler and less error-prone without changing how users paste text.
Original PR description
**Reason**: After PR https://github.com/odoo/odoo/pull/196130, we discovered that the `selection` parameter of `pasteText` was unnecessary. It was not used before calling `insert`, and after that, the selection is outdated. The current selection should instead be retrieved from the selection plugin. **Change**: Remove the unused `selection` parameter from `pasteText`. opw-4558222 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr