-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] clipboard: don't open composer on firefox
Steps to reproduce: - open a spreadsheet with firefox - copy a cell - paste it somewhere else => the composer is open with the pasted content. Ok... that's weird, but not a big deal. But it gets better: - copy *multiple* cells - paste them somewhere else => boom The composer opens in the same way, but it doesn't support multiline text! This commit fixes the composer opening and it also makes the edition plugin more robust by removing any carriage return that could slip through. Additional small fix in the content editable helper, the selection `start` was not clipped if it was greater than the content length. Note: it doesn't happen on Chrome because `ev.data` is null when pasting content. It doesn't correctly implements the spec https://w3c.github.io/input-events/#dfn-data opw-3236303 closes #2251 Signed-off-by: Rémi Rahir (rar) <[email protected]>
- Loading branch information
1 parent
7f01131
commit 1a66d74
Showing
5 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters