Skip to content
New issue

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

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

Already on GitHub? # to your account

IBX-5757: Fixed custom classes and attributes on headings #88

Merged
merged 3 commits into from
Jun 13, 2023

Conversation

dew326
Copy link
Contributor

@dew326 dew326 commented Jun 6, 2023

Question Answer
JIRA issue https://issues.ibexa.co/browse/IBX-5757
Bug/Improvement yes
New feature no
Target version 4.4
BC breaks no
Tests pass yes
Doc needed yes

For doc:
In doc, we have a list of elements that can have custom attributes and classes: https://doc.ibexa.co/en/latest/content_management/rich_text/extend_online_editor/#configure-custom-data-attributes-and-classes
Now in the configuration we have two options, we can define heading and it will work like it was in the previous versions, the custom classes and attributes will be added to every heading.
The second way is to specify custom attributes and classes to a specific heading: 'heading1', 'heading2', 'heading3', 'heading4', 'heading5', 'heading6'.
The more specific key is more important, which means if there will be config for heading and heading2, the heading2 will have custom attributes and classes only from the heading2 config and will not inherit any attributes or classes from the heading config.

TODO:

  • Implement feature / fix a bug.
  • Implement tests.
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

@DominikaK DominikaK added the Doc needed The changes require some documentation label Jun 6, 2023
@dew326 dew326 requested a review from GrabowskiM June 6, 2023 12:40
@dew326 dew326 requested a review from lucasOsti June 6, 2023 13:58
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@dew326 dew326 requested a review from Gengar-i June 7, 2023 05:58
Copy link
Contributor

@micszo micszo left a comment

Choose a reason for hiding this comment

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

QA Approved on Ibexa Commerce 4.4.4-dev with diff.

@micszo micszo removed their assignment Jun 13, 2023
@dew326 dew326 merged commit c908117 into 4.4 Jun 13, 2023
@dew326 dew326 deleted the fix-heading-custom-attributes branch June 13, 2023 10:19
@DominikaK DominikaK removed the Doc needed The changes require some documentation label Jun 15, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants