codex-team/editor.js

Stop highlighting of block when dropping on file input

Open

#2980 opened on Jan 23, 2026

View on GitHub
 (11 comments) (0 reactions) (0 assignees)TypeScript (26,602 stars) (1,985 forks)batch import
good first issue

Description

Describe a bug. I've created a drop zone to upload files. After the file is uploaded the block is highlighted blue. (In screenshot below). How do I stop this from happening ?

Expected behavior: Uploaded photo shouldn't have the blue highlighted box around it because I don't want the block to be selected.

Screenshots:

Device, Browser, OS: Chrome

Editor.js version: Latest version

Plugins you use with their versions:

Contributor guide