Skip to content

Conversation

@i-just
Copy link
Contributor

@i-just i-just commented Nov 26, 2025

Description

Adds the ability to upload images to the CKEditor field via drag and drop.

It adds defaultUploadLocationVolume and defaultUploadLocationSubpath settings to the CKEditor field (under Assets).
Under those settings, you can define which volume and which folder the assets will be uploaded to when dragged and dropped into the field.

If the field has a default transform specified, it’ll be applied too.

It works by creating Craft’s uploader (same as what we use for the Assets field or the Assets index page) that targets the entire CKEditor field area.

Only images can be dragged and dropped.

The uploader only works if you have “insert image” allowed in the CKEditor config used by the field.

Related CMS PR: craftcms/cms#18103

Related issues

#483

@i-just i-just changed the base branch from 4.x to 5.x December 1, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants