Skip to content

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Apr 26, 2025

Behavior before this PR:

  • Create a bold or italic tag using keyboard when selection is collapsed, leave it empty.
  • Change selection using arrow key.
  • Put cursor back where format tag was created.

Notice that empty element is not removed and text is formatted when writing something.

Behavior after PR is merged:

  • This PR makes sure that empty format element gets removed when changing selection.
  • Tag will not get removed if it's parent block element is empty.

task-4240818


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

Forward-Port-Of: #195018

Behavior before this commit:

- Create a bold or italic tag using keyboard when selection
  is collapsed, leave it empty.
- Change selection using arrow key.
- Put cursor back where format tag was created.

Notice that empty element is not removed and text is formatted when
writing something.

Behavior after commit:

- This commit makes sure that empty format element gets removed
  when changing selection.
- Tag will not get removed if it's parent block element is empty.

task-4240818

X-original-commit: 761c92a
@robodoo
Copy link
Contributor

robodoo commented Apr 26, 2025

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Apr 26, 2025

This PR targets saas-18.2 and is part of the forward-port chain. Further PRs will be created up to master.

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 Apr 26, 2025
@C3POdoo C3POdoo added the RD research & development, internal work label Apr 26, 2025
@fw-bot
Copy link
Contributor Author

fw-bot commented Apr 28, 2025

@adsa-odoo @dmo-odoo child PR #207612 was modified / updated and has become a normal PR. This PR (and any of its parents) will need to be merged independently as approvals won't cross.

@fw-bot
Copy link
Contributor Author

fw-bot commented May 4, 2025

@adsa-odoo @dmo-odoo this forward port of #195018 is awaiting action (not merged or closed).

1 similar comment
@fw-bot
Copy link
Contributor Author

fw-bot commented May 11, 2025

@adsa-odoo @dmo-odoo this forward port of #195018 is awaiting action (not merged or closed).

@dmo-odoo
Copy link
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request May 12, 2025
Behavior before this commit:

- Create a bold or italic tag using keyboard when selection
  is collapsed, leave it empty.
- Change selection using arrow key.
- Put cursor back where format tag was created.

Notice that empty element is not removed and text is formatted when
writing something.

Behavior after commit:

- This commit makes sure that empty format element gets removed
  when changing selection.
- Tag will not get removed if it's parent block element is empty.

task-4240818

closes #207599

X-original-commit: 761c92a
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
@robodoo robodoo closed this May 12, 2025
@fw-bot fw-bot deleted the saas-18.2-18.0-remove-empty-format-adsa-432008-fw branch May 19, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

5 participants