Embed icon not getting updated in WYSIWYG toolbar
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3443296. -->
Reported by: [phernand42](https://www.drupal.org/user/1149344)
Related to !18
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>I am trying to use a different icon for paragraph entity embed in my WYSIWYG toolbar. When I go to update icon for paragraph entity embed in admin/config/content/embed I can upload my new SVG icon and see it in the preview area but when I go to my node edit screen and try and view the updated icon in WYSIWYG I see the default icon instead. After reviewing the module code I did notice the paragraph icon seems to be hard coded instead of it being dynamic and pulling from the embed form page. I'm also using CKeditor 5 for my WYSIWYG and on Drupal 10.1.</p>
<p><a href="https://git.drupalcode.org/project/paragraphs_entity_embed/-/blob/3.0.x/js/ckeditor5_plugins/embeddedParagraph/src/paragraphsembedui.js?ref_type=heads#L8">https://git.drupalcode.org/project/paragraphs_entity_embed/-/blob/3.0.x/js/ckeditor5_plugins/embeddedParagraph/src/paragraphsembedui.js?ref_type=heads#L8</a></p>
<p><a href="https://git.drupalcode.org/project/paragraphs_entity_embed/-/blame/3.0.x/js/ckeditor5_plugins/embeddedParagraph/src/paragraphsembedui.js?ref_type=heads#L63">https://git.drupalcode.org/project/paragraphs_entity_embed/-/blame/3.0.x/js/ckeditor5_plugins/embeddedParagraph/src/paragraphsembedui.js?ref_type=heads#L63</a></p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>1. Navigate to admin/config/content/embed<br>
2. Edit embed button for paragraph entity embed<br>
3. Upload new SVG icon and save<br>
4. Navigate to node edit screen or wherever you have paragraph entity embed enabled and see if icon is updated in WYSIWYG toolbar. </p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Embed icon should get updated if new one is uploaded. </p>
issue