Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove RTE embedded image handling + clean up file upload configuration #16025

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

kjac
Copy link
Contributor

@kjac kjac commented Apr 10, 2024

Description

The embedded image handling for the RTE (introduced in #14546) was written for TinyMCE 4 and no longer needs to happen in V14. As it has not yet been ported over to V14, I have simply deleted the empty stub (FindAndPersistEmbeddedImages).

In a previous PR (#16021) I actually ported the functionality to V14. While implementing tests for that PR, I encountered a silly error in our file upload configuration; the FileExtensions should be a simple string collection, not a collection of FileExtensionConfigItem. In fact we no longer need FileExtensionConfigItem for V14.

As it turns out, the marker interface IFileExtensionsConfig is also a V13 specific thing, so that can be removed for V14 as well.

Since I had most of the test setup in place for the previous PR, I have reused that to create new tests for this PR. These tests in turn prove the necessity of the FileUploadConfiguration changes - albeit indirectly.

There are no real functional changes in this PR - only a slight clean-up 😉

Copy link
Contributor

@Migaroez Migaroez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice tests 💪

Looks good, builds, runs and tests clear 🚀

@Migaroez Migaroez merged commit 459cd79 into v14/dev Apr 11, 2024
17 checks passed
@Migaroez Migaroez deleted the v14/fix/remove-rte-embedded-image-handling branch April 11, 2024 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants