Alexander Ebert [Wed, 9 Aug 2023 16:26:10 +0000 (18:26 +0200)]
Insert newlines and whitespace after certain block elements
See https://www.woltlab.com/community/thread/301031-w%C3%B6rter-werden-falsch-gez%C3%A4hlt/
Alexander Ebert [Wed, 9 Aug 2023 15:39:42 +0000 (17:39 +0200)]
Upgrade to `perfect-scrollbar` v1.5.5
See https://www.woltlab.com/community/thread/300462-komisches-scroll-verhalten-mit-stift/
Alexander Ebert [Wed, 9 Aug 2023 14:25:55 +0000 (16:25 +0200)]
Update the CKEditor 5 dependencies
Alexander Ebert [Wed, 9 Aug 2023 13:55:15 +0000 (15:55 +0200)]
Add missing module headers
Alexander Ebert [Wed, 9 Aug 2023 13:27:46 +0000 (15:27 +0200)]
Convert model attributes to strings for comparison
The editor API does not guarantee the attribute types to be preserved, numbers can be converted into strings and returned as such.
See https://www.woltlab.com/community/thread/300956-deleted-attachments-do-not-disappear-from-the-editor/
Alexander Ebert [Wed, 9 Aug 2023 12:16:18 +0000 (14:16 +0200)]
Use the new CKEditor5 BBCode event API
Alexander Ebert [Wed, 9 Aug 2023 12:00:52 +0000 (14:00 +0200)]
Add a proper `bbcode` event to `listenToCkeditor()`
Alexander Ebert [Wed, 9 Aug 2023 11:34:38 +0000 (13:34 +0200)]
Eagerly inject the CKEditor stylesheet in the template
Alexander Ebert [Wed, 9 Aug 2023 10:10:39 +0000 (12:10 +0200)]
Fix the margins of aligned table headers
See https://www.woltlab.com/community/thread/301021-centre-aligning-the-first-row-inserts-unnecessary-spaces-in-the-editor/
Alexander Ebert [Tue, 8 Aug 2023 17:56:10 +0000 (19:56 +0200)]
Force buttons to be of equal width
See https://www.woltlab.com/community/thread/301022-buttons-with-different-sizes-in-the-mobile-resolution/
Alexander Ebert [Tue, 8 Aug 2023 16:59:14 +0000 (18:59 +0200)]
Force toolbar panels to be rendered above the content
See https://www.woltlab.com/community/thread/301009-editor-logo-stets-im-vordergrund-mobil/
Alexander Ebert [Tue, 8 Aug 2023 16:55:05 +0000 (18:55 +0200)]
Reduce the `z-index` of the page overlay container
The previous value causes it to be in front of all other items at all times which is unintended.
Alexander Ebert [Tue, 8 Aug 2023 14:17:16 +0000 (16:17 +0200)]
Unload the `WoltlabCode` plugin when `Code` is disabled
Alexander Ebert [Tue, 8 Aug 2023 13:57:51 +0000 (15:57 +0200)]
Fix the vertical alignment of inline code
Alexander Ebert [Tue, 8 Aug 2023 10:11:25 +0000 (12:11 +0200)]
Move the CKEditor overlays into the page overlay container
See https://www.woltlab.com/community/thread/300815-ckeditor-link-menu-non-functional-in-ckeditor-instances-in-a-dialog/
See ckeditor/ckeditor#14747
Alexander Ebert [Mon, 7 Aug 2023 19:12:43 +0000 (21:12 +0200)]
Avoid setting `:hover` states for touch devices
Alexander Ebert [Mon, 7 Aug 2023 19:09:31 +0000 (21:09 +0200)]
Fix the visuals of the unsafe HTML block
See #5606
Alexander Ebert [Sat, 5 Aug 2023 10:04:38 +0000 (12:04 +0200)]
Fix the color of the CKEditor logo
Alexander Ebert [Sat, 5 Aug 2023 09:59:17 +0000 (11:59 +0200)]
Sync the `unfurlUrl` template
Alexander Ebert [Sat, 5 Aug 2023 09:58:06 +0000 (11:58 +0200)]
Unwrap link previews nested in paragraphs
See https://www.woltlab.com/community/thread/301006-leading-rich-embeds-yield-empty-paragraphs/
Marcel Werk [Fri, 4 Aug 2023 15:45:58 +0000 (17:45 +0200)]
Merge branch 'master' of https://github.com/WoltLab/WCF
Marcel Werk [Fri, 4 Aug 2023 15:45:51 +0000 (17:45 +0200)]
Add missing comment
see https://github.com/WoltLab/WCF/pull/5604
Alexander Ebert [Fri, 4 Aug 2023 15:42:49 +0000 (17:42 +0200)]
Wait for the injected stylesheet to load
Marcel Werk [Fri, 4 Aug 2023 15:02:48 +0000 (17:02 +0200)]
Merge pull request #5604 from WoltLab/animated-webp-processing2
Fix issues in the processing of animated WebP images
Marcel Werk [Fri, 4 Aug 2023 14:28:22 +0000 (16:28 +0200)]
Fix phpdoc
Marcel Werk [Fri, 4 Aug 2023 14:28:15 +0000 (16:28 +0200)]
Fix issues in the processing of animated WebP images
see https://www.woltlab.com/community/thread/297233-fehler-bei-animierten-webp-grafiken/
Alexander Ebert [Fri, 4 Aug 2023 14:21:37 +0000 (16:21 +0200)]
Release 6.0.0 Alpha 8
WoltLab [Fri, 4 Aug 2023 14:15:01 +0000 (14:15 +0000)]
Updating minified JavaScript files
Alexander Ebert [Fri, 4 Aug 2023 14:11:56 +0000 (16:11 +0200)]
Sync the color values for the dark mode
Alexander Ebert [Fri, 4 Aug 2023 14:07:13 +0000 (16:07 +0200)]
Extract the CKEditor 5 styles into a static stylesheet
WoltLab [Fri, 4 Aug 2023 13:42:24 +0000 (13:42 +0000)]
Updating minified JavaScript files
Alexander Ebert [Fri, 4 Aug 2023 13:30:33 +0000 (15:30 +0200)]
Upgrade to CKEditor v39.0.0
Alexander Ebert [Fri, 4 Aug 2023 11:24:53 +0000 (13:24 +0200)]
Add a `min-height` for the empty breadcrumbs element
This was unintentionally removed with the overhaul but causes the element to visually collapse when there are no breadcrumbs to display.
Fixes #5576
Alexander Ebert [Fri, 4 Aug 2023 10:31:09 +0000 (12:31 +0200)]
Force the solid variant of the `user` icon in the user panel
See https://www.woltlab.com/community/thread/300995-profile-icon/
Alexander Ebert [Fri, 4 Aug 2023 10:23:43 +0000 (12:23 +0200)]
Normalize HTML before inserting it into CKEditor
Fixes https://www.woltlab.com/community/thread/300657-quoting-pre-6-0-posts-does-not-normalize-the-old-paragraph-behavior/
Alexander Ebert [Fri, 4 Aug 2023 09:39:17 +0000 (11:39 +0200)]
Use a condensed layout for message buttons
See https://www.woltlab.com/community/thread/300993-my-ui-ux-design-suggestions/
Tim Düsterhus [Thu, 3 Aug 2023 17:22:10 +0000 (19:22 +0200)]
Update composer dependencies
Alexander Ebert [Thu, 3 Aug 2023 16:59:47 +0000 (18:59 +0200)]
Fix the suppressed hover states on mobile
See https://www.woltlab.com/community/thread/300930-button-farbe-in-der-editor-toolbar-fehlt-im-hellen-farbschema/
Alexander Ebert [Thu, 3 Aug 2023 16:59:00 +0000 (18:59 +0200)]
Fix the visuals of dialog to restore the draft on screen-xs
Tim Düsterhus [Thu, 3 Aug 2023 13:02:44 +0000 (15:02 +0200)]
Merge pull request #5603 from WoltLab/system-check-memory
Use `FileUtil::getMemoryLimit()` in SystemCheckPage
Tim Düsterhus [Thu, 3 Aug 2023 13:02:23 +0000 (15:02 +0200)]
Merge pull request #5602 from WoltLab/ini-parse-quantity
Make use of `ini_parse_quantity()` in FileUtil::getMemoryLimit()
Tim Düsterhus [Thu, 3 Aug 2023 12:22:55 +0000 (14:22 +0200)]
Use `FileUtil::getMemoryLimit()` in SystemCheckPage
Tim Düsterhus [Thu, 3 Aug 2023 12:17:54 +0000 (14:17 +0200)]
Merge pull request #5601 from WoltLab/checkMemoryLimit-float
Accept `float`s in FileUtil::checkMemoryLimit()
Tim Düsterhus [Thu, 3 Aug 2023 12:15:26 +0000 (14:15 +0200)]
Make use of `ini_parse_quantity()` in FileUtil::getMemoryLimit()
If `ini_parse_quantity()` is available (PHP 8.2+) it will certainly be more
accurate and simpler than our home-grown calculator.
Tim Düsterhus [Thu, 3 Aug 2023 12:03:02 +0000 (14:03 +0200)]
Accept `float`s in FileUtil::checkMemoryLimit()
While a decimal amount of bytes is not something that exists, it's a common
pattern to approximate the required memory usage of an image operation with the
factor `2.1`, possibly resulting in decimal places. PHP 8.1 emits a warning if
an implicit cast from non-integer float to int happens.
As the input is only used within an inequality expression and not further
processed it is safe to accept arbitrary floats and preferable to slapping
explicit casts onto everything.
Tim Düsterhus [Wed, 2 Aug 2023 15:20:31 +0000 (17:20 +0200)]
Merge branch '5.5'
Tim Düsterhus [Wed, 2 Aug 2023 15:19:34 +0000 (17:19 +0200)]
Add `permissions` to GitHub Action Workflows
Marcel Werk [Wed, 2 Aug 2023 15:15:47 +0000 (17:15 +0200)]
Remove obsolete workaround for safari
See
ecd2007f820c44673a9d6d51443032aaef91b78a
See https://www.woltlab.com/community/thread/300882-back-button-in-search-result-pagination-not-working-reliably/
Marcel Werk [Wed, 2 Aug 2023 13:24:05 +0000 (15:24 +0200)]
Merge branch 'master' of https://github.com/WoltLab/WCF
Marcel Werk [Wed, 2 Aug 2023 13:23:58 +0000 (15:23 +0200)]
Fix typo
Marcel Werk [Wed, 2 Aug 2023 13:20:25 +0000 (15:20 +0200)]
Merge pull request #5600 from WoltLab/message-form-multilingualism
Don't show language chooser if only one option is available
Marcel Werk [Wed, 2 Aug 2023 13:17:53 +0000 (15:17 +0200)]
Don't show language chooser if only one option is available
Tim Düsterhus [Wed, 2 Aug 2023 13:16:20 +0000 (15:16 +0200)]
Merge remote-tracking branch 'origin/master'
Tim Düsterhus [Wed, 2 Aug 2023 13:16:02 +0000 (15:16 +0200)]
Update esbuild
Tim Düsterhus [Wed, 2 Aug 2023 13:15:33 +0000 (15:15 +0200)]
Merge branch '5.5'
Tim Düsterhus [Wed, 2 Aug 2023 13:14:31 +0000 (15:14 +0200)]
Update some `@types` npm dependencies
Marcel Werk [Wed, 2 Aug 2023 13:12:44 +0000 (15:12 +0200)]
Fix incorrect rendering of the content interaction buttons
In the mobile view the buttons were displayed squashed.
Tim Düsterhus [Wed, 2 Aug 2023 13:03:46 +0000 (15:03 +0200)]
Merge branch '5.5'
Tim Düsterhus [Wed, 2 Aug 2023 13:00:30 +0000 (15:00 +0200)]
Stop abusing enums in Image/ExifUtil.ts
Tim Düsterhus [Wed, 2 Aug 2023 12:58:40 +0000 (14:58 +0200)]
Satisfy ESLint after merge
Tim Düsterhus [Wed, 2 Aug 2023 12:48:32 +0000 (14:48 +0200)]
Merge branch '5.5'
Tim Düsterhus [Wed, 2 Aug 2023 12:47:33 +0000 (14:47 +0200)]
Satisfy ESLint
Tim Düsterhus [Wed, 2 Aug 2023 12:34:56 +0000 (14:34 +0200)]
Merge branch '5.5'
Tim Düsterhus [Wed, 2 Aug 2023 12:33:27 +0000 (14:33 +0200)]
Upgrade typescript-eslint
Alexander Ebert [Wed, 2 Aug 2023 10:22:20 +0000 (12:22 +0200)]
Merge pull request #5598 from WoltLab/ckeditor5-image-resize-v2
Enable the image resizing in CKEditor again
Tim Düsterhus [Wed, 2 Aug 2023 09:55:02 +0000 (11:55 +0200)]
Merge pull request #5599 from WoltLab/ckeditor-types-bbcode
Augment the EditorConfig with `woltlabBbcode` in Ckeditor/Types
Tim Düsterhus [Wed, 2 Aug 2023 09:19:24 +0000 (11:19 +0200)]
Augment the EditorConfig with `woltlabBbcode` in Ckeditor/Types
Alexander Ebert [Tue, 1 Aug 2023 16:12:46 +0000 (18:12 +0200)]
Add a hover state for embedded content and rich embeds
See https://www.woltlab.com/community/thread/300932-rich-embed-cards-do-not-have-a-hover-effect/
Alexander Ebert [Tue, 1 Aug 2023 16:02:33 +0000 (18:02 +0200)]
Update the CKEditor 5 bundle
Alexander Ebert [Tue, 1 Aug 2023 15:46:07 +0000 (17:46 +0200)]
Enable the legacy width attribute of `[attach]`
Tim Düsterhus [Tue, 1 Aug 2023 13:43:11 +0000 (15:43 +0200)]
Update composer dependencies
Alexander Ebert [Tue, 1 Aug 2023 13:33:08 +0000 (15:33 +0200)]
Enable image resizing again
Tim Düsterhus [Tue, 1 Aug 2023 12:38:07 +0000 (14:38 +0200)]
Merge pull request #5597 from WoltLab/foreign-key-name-suffix
Require a `_fk` suffix for explicit FOREIGN KEY names
Tim Düsterhus [Tue, 1 Aug 2023 12:11:17 +0000 (14:11 +0200)]
Require a `_fk` suffix for explicit FOREIGN KEY names
This is required to correctly uninstall these FOREIGN KEYs.
Alexander Ebert [Tue, 1 Aug 2023 11:26:16 +0000 (13:26 +0200)]
Fix the handling of strikethrough applied to inline code
See https://www.woltlab.com/community/thread/300926-code-not-strikethroughed-in-the-new-editor/
Tim Düsterhus [Mon, 31 Jul 2023 13:13:22 +0000 (15:13 +0200)]
Update composer dependencies
Tim Düsterhus [Mon, 31 Jul 2023 08:27:30 +0000 (10:27 +0200)]
Merge remote-tracking branch 'origin/master'
Alexander Ebert [Sat, 29 Jul 2023 10:17:40 +0000 (12:17 +0200)]
Fix the hover state of buttons in the image viewer
See https://www.woltlab.com/community/thread/300776-bilder-lightbox-buttons-schwer-erkennbar-und-fehlendes-hover/
Alexander Ebert [Sat, 29 Jul 2023 09:54:04 +0000 (11:54 +0200)]
Fix the behavior of mentions in the editor
See https://www.woltlab.com/community/thread/300780-problem-when-trying-to-edit-the-first-letter-of-a-mention/
Tim Düsterhus [Fri, 28 Jul 2023 14:02:07 +0000 (16:02 +0200)]
Merge branch '5.5'
Alexander Ebert [Fri, 28 Jul 2023 14:00:03 +0000 (16:00 +0200)]
Ignore concurrent edit requests for the same element
See https://www.woltlab.com/community/thread/300685-der-editor-ist-bereits-aktiv-bei-langsamer-internetverbindung/
Tim Düsterhus [Fri, 28 Jul 2023 13:59:45 +0000 (15:59 +0200)]
Update tslib
Alexander Ebert [Fri, 28 Jul 2023 13:35:46 +0000 (15:35 +0200)]
Reset the cache of a popover
Alexander Ebert [Fri, 28 Jul 2023 13:14:37 +0000 (15:14 +0200)]
Add a dark color variant for diff sections
See https://www.woltlab.com/community/thread/300639-light-colored-headline-in-version-history-of-articles-in-dark-mode/
Tim Düsterhus [Fri, 28 Jul 2023 13:01:05 +0000 (15:01 +0200)]
Add missing `static` to FileUtil::extensionAllowsPhpExecution() definition
see #5593
Tim Düsterhus [Fri, 28 Jul 2023 12:59:09 +0000 (14:59 +0200)]
Merge branch '5.5'
Alexander Ebert [Fri, 28 Jul 2023 12:49:38 +0000 (14:49 +0200)]
Fix the jump to the option being searched for
Fixes #5580
Tim Düsterhus [Fri, 28 Jul 2023 12:34:45 +0000 (14:34 +0200)]
Merge pull request #5593 from WoltLab/fileutil-extensionAllowsPhpExecution
Add FileUtil::extensionAllowsPhpExecution()
Tim Düsterhus [Fri, 28 Jul 2023 11:57:50 +0000 (13:57 +0200)]
Perform a case-insensitive match in FileUtil::extensionAllowsPhpExecution()
Alexander Ebert [Fri, 28 Jul 2023 11:40:37 +0000 (13:40 +0200)]
Prevent smileys being translated by the browser
See https://www.woltlab.com/community/thread/300836-problem-with-the-editor-and-chrome-s-translation-function/
Alexander Ebert [Fri, 28 Jul 2023 11:40:02 +0000 (13:40 +0200)]
Use `\sprintf()` to generate the HTML of smileys
Alexander Ebert [Fri, 28 Jul 2023 10:29:23 +0000 (12:29 +0200)]
Add a margin around code blocks in the editor
See https://www.woltlab.com/community/thread/300833-missing-gap-between-code-blocks-in-the-editor/
Alexander Ebert [Thu, 27 Jul 2023 17:21:28 +0000 (19:21 +0200)]
Fix the alignment of `<fa-icon>` in `.box*`
See https://www.woltlab.com/community/thread/300726-file-icons-in-featured-plugins-box-are-misaligned/
Alexander Ebert [Thu, 27 Jul 2023 17:07:22 +0000 (19:07 +0200)]
Fix the alignment of the flag icons in message lists
See https://www.woltlab.com/community/thread/300640-flag-in-thread-list-is-sitting-lower-than-other-icons/
Alexander Ebert [Thu, 27 Jul 2023 16:19:27 +0000 (18:19 +0200)]
Improve the visuals of spoilers
See https://www.woltlab.com/community/thread/300758-spoiler-toggle-button-much-harder-to-see/
Marcel Werk [Thu, 27 Jul 2023 14:05:23 +0000 (16:05 +0200)]
Merge pull request #5595 from WoltLab/subscribe-button-description
Fix descriptions for subscribe buttons
Tim Düsterhus [Thu, 27 Jul 2023 13:55:58 +0000 (15:55 +0200)]
Merge pull request #5596 from WoltLab/trim-full-invisible
Expand `StringUtil::trim()` to clear out strings that consist of invisbile characters only
Marcel Werk [Thu, 27 Jul 2023 13:55:28 +0000 (15:55 +0200)]
Apply suggestions from code review
Co-authored-by: Alexander Ebert <ebert@woltlab.com>
Tim Düsterhus [Thu, 27 Jul 2023 13:10:49 +0000 (15:10 +0200)]
Expand `StringUtil::trim()` to clear out strings that consist of invisbile characters only
see https://www.woltlab.com/community/thread/300772-unsichtbare-unicode-zeichen-als-titel-verbieten/
Marcel Werk [Thu, 27 Jul 2023 12:05:16 +0000 (14:05 +0200)]
Fix descriptions for subscribe buttons
These are generic language variables that are used in various places. Not all use cases support mentions, quotes, or reactions, so the previous descriptions were misleading.