From f75fa29ab359ef59330d5a32f5f27c66e2d3e18d Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 26 Jun 2023 17:54:55 +0200 Subject: [PATCH] wait #6076 @0.5 --- app/Fields/FluidbookLinkEditor/Layer.php | 1 + app/SubForms/Link/Image.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Fields/FluidbookLinkEditor/Layer.php b/app/Fields/FluidbookLinkEditor/Layer.php index 1b142a686..cb1051af4 100644 --- a/app/Fields/FluidbookLinkEditor/Layer.php +++ b/app/Fields/FluidbookLinkEditor/Layer.php @@ -15,6 +15,7 @@ class Layer extends SelectFromArray return [ 'both' => __('Texte et image'), 'text' => __('Texte'), + 'onlytext' => __('Texte seul'), 'image' => __('Image'), ]; } diff --git a/app/SubForms/Link/Image.php b/app/SubForms/Link/Image.php index 6345ea5f9..197b17b62 100644 --- a/app/SubForms/Link/Image.php +++ b/app/SubForms/Link/Image.php @@ -13,7 +13,7 @@ class Image extends Animated public function addDestinationField() { - $this->addField('to', FilesOrURL::class, __('Image'), $this->getFilesOrURLEntry() + ['accept' => self::$_acceptImage]); + $this->addField('to', FilesOrURL::class, __('Image'), $this->getFilesOrURLEntry() + ['accept' => self::$_acceptImageAndZip]); parent::addDestinationField(); } } -- 2.39.5