Skip to content

[19.0][MIG] web_editor_class_selector: Migration to 19.0#3328

Merged
OCA-git-bot merged 14 commits into
OCA:19.0from
HeliconiaIO:19.0-mig-web_editor_class_selector
May 15, 2026
Merged

[19.0][MIG] web_editor_class_selector: Migration to 19.0#3328
OCA-git-bot merged 14 commits into
OCA:19.0from
HeliconiaIO:19.0-mig-web_editor_class_selector

Conversation

@BhaveshHeliconia
Copy link
Copy Markdown
Contributor

No description provided.

@BhaveshHeliconia BhaveshHeliconia mentioned this pull request Oct 17, 2025
45 tasks
@pedrobaeza
Copy link
Copy Markdown
Member

/ocabot migration web_editor_class_selector

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Oct 17, 2025
carlos-lopez-tecnativa and others added 13 commits March 11, 2026 14:20
… editor.

This module allows users to create custom CSS classes, which can then be selected and applied directly in the HTML editor.
…s not present

Go to the website
Open the editor
Add text and select it, a traceback is shown
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-17.0/web-17.0-web_editor_class_selector
Translate-URL: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_editor_class_selector/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-17.0/web-17.0-web_editor_class_selector
Translate-URL: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_editor_class_selector/
Currently translated at 100.0% (18 of 18 strings)

Translation: web-17.0/web-17.0-web_editor_class_selector
Translate-URL: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_editor_class_selector/it/
@BhaveshHeliconia BhaveshHeliconia force-pushed the 19.0-mig-web_editor_class_selector branch from 03a5be0 to d0c9404 Compare March 11, 2026 08:50
Copy link
Copy Markdown
Contributor

@carlos-lopez-tecnativa carlos-lopez-tecnativa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, working fine, just a technical detail.

Comment on lines +11 to +13
title: {type: [String, Function], optional: true},
getSelection: {type: Function, optional: true},
isDisabled: {type: [Function, Boolean], optional: true},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, I hadn’t noticed that toolbarButtonProps was already exported from the core. I’ve updated the component to reuse the existing one instead of redefining the props manually. I also adjusted the template accordingly, following the same approach used in FontSelector. Thanks for pointing that out!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, but with these changes I now get this error. I understand that the title is empty, but in toolbarButtonProps the title is required. I now understand that this may be the reason why you changed this, but it could be useful to add a comment explaining the reason.

Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've now marked those props as optional in the component and added a comment explaining why (since the Toolbar might pass undefined if the description is missing). I also updated the plugin to use description instead of title to match what the core Toolbar expects. That should fix the validation error you saw. Thanks!

@BhaveshHeliconia BhaveshHeliconia force-pushed the 19.0-mig-web_editor_class_selector branch from d0c9404 to fba019a Compare May 13, 2026 05:03
@OCA-git-bot OCA-git-bot added series:19.0 mod:web_editor_class_selector Module web_editor_class_selector labels May 13, 2026
@BhaveshHeliconia BhaveshHeliconia force-pushed the 19.0-mig-web_editor_class_selector branch from fba019a to 2171834 Compare May 15, 2026 05:20
Copy link
Copy Markdown
Contributor

@carlos-lopez-tecnativa carlos-lopez-tecnativa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 19.0-ocabot-merge-pr-3328-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 5ed2f97 into OCA:19.0 May 15, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 2fa7b00. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants