Open cemag44300 opened 1 year ago
Hi @cemag44300. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
@magento give me 2.4-develop instance - upcoming 2.4.5-p1 release
Hi @cemag44300. Thank you for your request. I'm working on Magento instance for you.
Hi @cemag44300, here is your Magento Instance: https://88b358b2e02e00f5db390974b55da3fe.instances-prod.magento-community.engineering Admin access: https://88b358b2e02e00f5db390974b55da3fe.instances-prod.magento-community.engineering/admin_b4f7 Login: 0206e735 Password: 73df128385bd
Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hello @cemag44300,
Thank you for report and collaboration!
We tried to reproduce the issue on 2.4-develop. The issue is reproducible, please refer the below screencast.
https://github.com/magento/magento2/assets/60198231/9635f5a1-7791-48bc-8005-63ded52a63ac
As we can see in the screencast, We are not getting the custom "style formats" in TinyMCE editor.
Hence confirming the issue.
Below is the module. PbVendor.zip
Thanks.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-9200 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-November. Thank you for verifying the issue.
Issue Available: @engcom-November, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
@magento I'm working on this
@aasim110 Have you any feedback to patch this issue ?
@cemag44300
For fix that issue: you have to use array instead associative array with keys.
for example:
<item name="style_formats" xsi:type="array">
<item name="0" xsi:type="array">
<item name="title" xsi:type="string">Heading 1</item>
<item name="block" xsi:type="string">h1</item>
</item>
<item name="1" xsi:type="array">
<item name="title" xsi:type="string">Heading 2</item>
<item name="block" xsi:type="string">h2</item>
</item>
<item name="2" xsi:type="array">
<item name="title" xsi:type="string">Heading 3</item>
<item name="block" xsi:type="string">h3</item>
</item>
</item>
or convert associative array with keys to simple array. Look into lib/tiny_mce_5/web/tinymce.d.ts:1499.
@m1kash thank you so much for this, perfect timing :)
Summary
Preconditions and environment
Steps to reproduce
Expected result Custom style format is present in the formats list
Additional information Works on Magento before 2.4.5-p1.
Actual result
Release note No response
Issue closed This issue was closed but @engcom-Bravo don't override style_formats
Capture https://i.imgur.com/dFPP5vo.png
Examples
app/code/Custom/PageBuilder/registration.php
app/code/Custom/PageBuilder/etc/module.xml
app/code/Custom/PageBuilder/etc/adminhtml/di.xml
app/code/Custom/PageBuilder/Plugin/Wysiwyg/ConfigPlugin.php
Proposed solution
No response
Release note
No response
Triage and priority