Content-Length: 238950 | pFad | http://github.com/odoo/odoo/pull/194101

A1 [FIX] html_editor: hide toolbar when selection is in non-contenteditable by Jinjiu96 · Pull Request #194101 · odoo/odoo · GitHub
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

[FIX] html_editor: hide toolbar when selection is in non-contenteditable #194101

Open
wants to merge 1 commit into
base: 18.0
Choose a base branch
from

Conversation

Jinjiu96
Copy link
Contributor

Before this commit:
The toolbar appeared even when selecting a contenteditable false element within the editable area. For instance, while editing a report, clicking on a non-editable element like a delivery slip would still show the toolbar.

After this commit:
The toolbar is hidden when the selection is within contenteditable false elements or consists only such elements. Exception: The toolbar remains visible for icons, as they are editable by the toolbar. Tests are added.

task-4309925


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

Before this commit:
The toolbar appeared even when selecting a contenteditable false element
within the editable area. For instance, while editing a report, clicking
on a non-editable element like a delivery slip would still show the
toolbar.

After this commit:
The toolbar is hidden when the selection is within contenteditable false
elements or consists only such elements. Exception: The toolbar remains
visible for icons, as they are editable by the toolbar. Tests are added.

task-4309925
@robodoo
Copy link
Contributor

robodoo commented Jan 17, 2025

Pull request status dashboard

@C3POdoo C3POdoo requested a review from a team January 17, 2025 10:24
@C3POdoo C3POdoo added the RD research & development, internal work label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/odoo/odoo/pull/194101

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy