odoo/o-spreadsheet#5063

Created by BI, RĂ©mi Rahir (rar)
Merged at 23037c368c07a0d34b495d21ca757ae86bc63399

Statuses:

label
odoo:18.0-fix-cross-browser-rar
head
cfc20d51967e9dcd60d5edf9e6f2581625540d16
merged
3 days ago by BI, Adrien Minne (adrm)
odoo/o-spreadsheet
18.0 #5063
master #5241

[FIX] clipboard: Fix clipboard cross-browser coverage

The current implementation of the cross-browser clipboard relies heavily on an API that is currently only available on Chromium based browsers (see table).

There is currently no definitive announce that the feature will be adopted by other browsers (namely FF and Safari) and since the feature is still marked as experimental, it'd be better to rely on a more generic approach.

This revision changes the flow to rely entirely on the text/html mimetype as it is supported by all modern browsers.

task-4241877

Description:

description of this task, what is implemented and why it is implemented that way.

Task: TASK_ID

review checklist

  • [ ] feature is organized in plugin, or UI components
  • [ ] support of duplicate sheet (deep copy)
  • [ ] in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • [ ] in model/UI: ranges are strings (to show the user)
  • [ ] undo-able commands (uses this.history.update)
  • [ ] multiuser-able commands (has inverse commands and transformations where needed)
  • [ ] new/updated/removed commands are documented
  • [ ] exportable in excel
  • [ ] translations (_t("qmsdf %s", abc))
  • [ ] unit tested
  • [ ] clean commented code
  • [ ] track breaking changes
  • [ ] doc is rebuild (npm run doc)
  • [ ] status is correct in Odoo