Skip to content

Commit

Permalink
EZP-29731: Fixed missing RichText Custom Tag icon in UI config
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Longosz committed Oct 16, 2018
1 parent ca82656 commit fd698ac
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/lib/UI/Config/Mapper/FieldType/RichText/CustomTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,17 @@ public function mapConfig(array $enabledCustomTags)

$customTagConfiguration = $this->customTagsConfiguration[$tagName];

$config[$tagName] = [
'label' => "ezrichtext.custom_tags.{$tagName}.label",
'description' => "ezrichtext.custom_tags.{$tagName}.description",
];

if (!empty($customTagConfiguration['icon'])) {
$config[$tagName]['icon'] = $this->packages->getUrl(
$customTagConfiguration['icon']
);
}

$config[$tagName] = [
'label' => "ezrichtext.custom_tags.{$tagName}.label",
'description' => "ezrichtext.custom_tags.{$tagName}.description",
];
foreach ($customTagConfiguration['attributes'] as $attributeName => $properties) {
$typeMapper = $this->getAttributeTypeMapper(
$tagName,
Expand Down

0 comments on commit fd698ac

Please sign in to comment.