diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml index e2566dcc3bf..72bdb22026e 100644 --- a/.github/workflows/javascript.yml +++ b/.github/workflows/javascript.yml @@ -68,3 +68,6 @@ jobs: - name: "Check '@ckeditor/ckeditor5-inspector'" run: | diff -wu wcfsetup/install/files/js/3rdParty/ckeditor/ckeditor5-inspector/inspector.js node_modules/@ckeditor/ckeditor5-inspector/build/inspector.js + - name: "Check '@fancyapps/ui'" + run: | + diff -wu wcfsetup/install/files/js/3rdParty/fancybox/fancybox.umd.js node_modules/@fancyapps/ui/dist/fancybox/fancybox.umd.js diff --git a/README.md b/README.md index f8725c9f6b3..941415be379 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ WoltLab Suite Core is a free CMS and web-framework, designed for awesome websites and communities. Cutting-edge technologies and strict object-oriented programming makes it the ideal choice for developers and communities, and is actively maintained and improved by WoltLab. -# About CKEditor 5 +## About CKEditor 5 CKEditor 5 is a WYISWYG editor created by CKSource Holding sp. z o.o, Copyright (c) 2003-2023. @@ -12,6 +12,15 @@ You may use this instance of CKEditor 5 with any plugin or app built on top of W If you would like to use CKEditor 5 yourself and are not building on top of WoltLab Suite Core then please visit https://ckeditor.com/pricing/ to learn more. +## About Fancybox + +Fancybox is a lightbox alternative created by Jānis Skarnelis. + +This repository includes a build artifact of Fancybox that is comerically licensed to WoltLab GmbH. +You may use this instance of Fancybox with any plugin or app built on top of WoltLab Suite Core only. + +If you would like to use Fancybox yourself and are not building on top of WoltLab Suite Core then please visit https://fancyapps.com/pricing/ to learn more. + ## License This library is free software; you can redistribute it and/or diff --git a/com.woltlab.wcf/acpTemplateDelete.xml b/com.woltlab.wcf/acpTemplateDelete.xml index 5552c719d55..f3bc3dd87c5 100644 --- a/com.woltlab.wcf/acpTemplateDelete.xml +++ b/com.woltlab.wcf/acpTemplateDelete.xml @@ -154,5 +154,6 @@ + diff --git a/com.woltlab.wcf/fileDelete.xml b/com.woltlab.wcf/fileDelete.xml index 22e224e2b33..154738101c9 100644 --- a/com.woltlab.wcf/fileDelete.xml +++ b/com.woltlab.wcf/fileDelete.xml @@ -1291,6 +1291,7 @@ js/WCF.Comment.min.js js/WCF.Core.min.js js/WCF.ImageViewer.min.js + js/WCF.ImageViewer.js js/WCF.Label.min.js js/WCF.Like.js js/WCF.Like.min.js diff --git a/com.woltlab.wcf/templateDelete.xml b/com.woltlab.wcf/templateDelete.xml index 054f501b384..b173661dd97 100644 --- a/com.woltlab.wcf/templateDelete.xml +++ b/com.woltlab.wcf/templateDelete.xml @@ -116,5 +116,6 @@ + diff --git a/com.woltlab.wcf/templates/attachments.tpl b/com.woltlab.wcf/templates/attachments.tpl index f52a2c5db2d..97082b01a74 100644 --- a/com.woltlab.wcf/templates/attachments.tpl +++ b/com.woltlab.wcf/templates/attachments.tpl @@ -7,8 +7,8 @@ {content} {foreach from=$attachmentList->getGroupedObjects($objectID) item=attachment} {if $attachment->showAsImage() && !$attachment->isEmbedded()} -
  • - canDownload()} class="jsImageViewer jsTooltip" title="{lang}wcf.attachment.image.title{/lang}"{/if}> +
  • + canDownload()} data-fancybox="message-{$attachmentList->getObjectTypeName()}-{$objectID}" data-caption="{$attachment->filename}" aria-title="{lang}wcf.attachment.image.title{/lang}"{/if}>
    {if $attachment->hasThumbnail()} @@ -44,7 +44,7 @@