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: delete behaviour on heading elements #159480

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Mar 27, 2024

Before this PR:

  1. When an empty heading from H4 to H6 is the only element in the editable
    area, the backspace key doesn't turn it into paragraphs.
  2. When the cursor is at the start of a heading element with text content, and the
    user hits the backspace key, the element gets converted into a paragraph.

After this PR:

All heading elements are removed on backspace if they're empty.

task-3456815

Forward-Port-Of: #159004
Forward-Port-Of: #132778

Before this commit:

1. When an empty heading from H4 to H6 is the only element in the editable
   area, the backspace key doesn't turn it into paragraphs.
2. When the cursor is at the start of a heading element with text content, and the
   user hits the backspace key, the element gets converted into a paragraph.

After this commit:

All heading elements are removed on backspace if they're empty.

task-3456815

X-original-commit: 992b113
@robodoo
Copy link
Contributor

robodoo commented Mar 27, 2024

@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 27, 2024

@maad-odoo @dmo-odoo this PR targets master and is the last of the forward-port chain.

To merge the full chain, use

@fw-bot r+

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

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Mar 27, 2024
@dmo-odoo
Copy link
Contributor

@fw-bot r+

@C3POdoo C3POdoo added the RD research & development, internal work label Mar 27, 2024
@dmo-odoo
Copy link
Contributor

@robodoo r-

@dmo-odoo
Copy link
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request Mar 29, 2024
Before this commit:

1. When an empty heading from H4 to H6 is the only element in the editable
   area, the backspace key doesn't turn it into paragraphs.
2. When the cursor is at the start of a heading element with text content, and the
   user hits the backspace key, the element gets converted into a paragraph.

After this commit:

All heading elements are removed on backspace if they're empty.

task-3456815

closes #159480

X-original-commit: 992b113
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
@robodoo robodoo added the 17.3 label Mar 29, 2024
@robodoo robodoo closed this Mar 29, 2024
@fw-bot fw-bot deleted the master-15.0-delete-behaviour-header-elements-maad-D_HC-fw branch April 12, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17.3 forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants