From f85618edface2143dd7a8fde21df06f7b25316af Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 16 Mar 2023 13:43:15 +0100 Subject: [PATCH] wait #5811 @0.25 --- app/Models/ToolSVGSprite.php | 1 + .../link_editor_icons.blade.php | 71 +------------------ 2 files changed, 2 insertions(+), 70 deletions(-) diff --git a/app/Models/ToolSVGSprite.php b/app/Models/ToolSVGSprite.php index fa22a7f2e..ed0787f78 100644 --- a/app/Models/ToolSVGSprite.php +++ b/app/Models/ToolSVGSprite.php @@ -57,6 +57,7 @@ class ToolSVGSprite extends ToolboxModel if ($this->convertColorsToCurrentColor) { $svg = preg_replace('/#[0-9a-fA-F]{6}/', 'currentColor', $svg); $svg = preg_replace('/rgba?\([^)]+\)/', 'currentColor', $svg); + $svg = str_replace(['transparent', 'black'], ['currentColor', 'currentColor'], $svg); } $res .= '' . $svg . ''; } diff --git a/resources/views/fluidbook_publication/link_editor_icons.blade.php b/resources/views/fluidbook_publication/link_editor_icons.blade.php index 2c0ed3a2f..5154aedf9 100644 --- a/resources/views/fluidbook_publication/link_editor_icons.blade.php +++ b/resources/views/fluidbook_publication/link_editor_icons.blade.php @@ -1,74 +1,5 @@ {{-- __('!! Editeur de liens') --}} - + @push('linkeditor_scripts')