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 :)
I tried to add the custom style_formats as described here https://github.com/commerce-docs/pagebuilder-examples/tree/master/Text/Extension, but custom style_formats are not added. Any help would be appreciated di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\PageBuilder\Model\Wysiwyg\DefaultConfigProvider">
<arguments>
<argument name="additionalSettings" xsi:type="array">
<!-- How to add or remove TinyMCE toolbar buttons to your custom Text editor.
Note the 'code' plugin added to the toolbar here. This provides access
to the HTML code used in the editor. To remove toolbar buttons, simply
delete one or more of the text entries shown here.-->
<item name="toolbar" xsi:type="string">
undo redo | code | styleselect | forecolor backcolor | bold italic underline |
alignleft aligncenter alignright | numlist bullist |
link image table charmap
</item>
<!-- How to add additional styles from your theme to the TinyMCE Formats selector -->
<item name="style_formats" xsi:type="array">
<item name="10" xsi:type="array">
<item name="title" xsi:type="string">Highlight</item>
<item name="inline" xsi:type="string">span</item>
<item name="classes" xsi:type="string">text-highlight</item>
</item>
</item>
<item name="style_formats_merge" xsi:type="boolean">true</item>
</argument>
</arguments>
</type>
</config>
Hello,
Any news on this ?
Even the style added by the CORE pagebuilder module is not displayed. I should have an "Important" option in the menu
Magento 2.4.7-P2
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