Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FW][FIX] web_editor: fix summernote text drop on firefox #42759

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Jan 6, 2020

Issue

- Have firefox
- Go to any chatter
- Open full editor
- Write some "test" words with line breaks
- Select one of your "test" words
- Drag & drop it somewhere else in the editor

Welcome on test.com! (redirected)

Cause

Summernote doesn't preventDefault on drop event, so firefox
think we want to go to another URL.

Solution

Add the preventDefault manually.

This reveals another issue which is solved by importing
this PR's code https://github.com/summernote/summernote/pull/3327
(with adaptation for our dinosaurus version)

OPW-2158112

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #42719
Forward-Port-Of: #42470

Issue

    - Have firefox
    - Go to any chatter
    - Open full editor
    - Write some "test" words with line breaks
    - Select one of your "test" words
    - Drag & drop it somewhere else in the editor

    Welcome on test.com! (redirected)

Cause

    Summernote doesn't preventDefault on drop event, so firefox
    think we want to go to another URL.

Solution

    Add the preventDefault manually.

    This reveals another issue which is solved by importing
    this PR's code summernote/summernote#3327
    (with adaptation for our dinosaurus version)

OPW-2158112

X-original-commit: 197145a
@fw-bot
Copy link
Contributor Author

fw-bot commented Jan 6, 2020

Ping @jvm-odoo
This PR targets master and is the last of the forward-port chain containing:

To merge the full chain, say

@fw-bot r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added forwardport This PR was created by @fw-bot CI 🤖 Robodoo has seen passing statuses labels Jan 6, 2020
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Jan 6, 2020
@jvnm-dev
Copy link

jvnm-dev commented Jan 6, 2020

@fw-bot r+

@robodoo robodoo added the r+ 👌 label Jan 6, 2020
robodoo pushed a commit that referenced this pull request Jan 6, 2020
Issue

    - Have firefox
    - Go to any chatter
    - Open full editor
    - Write some "test" words with line breaks
    - Select one of your "test" words
    - Drag & drop it somewhere else in the editor

    Welcome on test.com! (redirected)

Cause

    Summernote doesn't preventDefault on drop event, so firefox
    think we want to go to another URL.

Solution

    Add the preventDefault manually.

    This reveals another issue which is solved by importing
    this PR's code summernote/summernote#3327
    (with adaptation for our dinosaurus version)

OPW-2158112

closes #42759

X-original-commit: 197145a
Signed-off-by: Jason Van Malder <jvm-odoo@users.noreply.github.com>
@robodoo robodoo closed this Jan 6, 2020
@robodoo robodoo temporarily deployed to merge January 6, 2020 15:14 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI 🤖 Robodoo has seen passing statuses forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants