From: Vincent Vanwaelscappel Date: Mon, 26 Jun 2023 15:54:55 +0000 (+0200) Subject: wait #6076 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f75fa29ab359ef59330d5a32f5f27c66e2d3e18d;p=fluidbook-toolbox.git wait #6076 @0.5 --- 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(); } }