diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2022-07-14 15:46:31 +0300 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2022-09-06 15:44:53 +0300 |
commit | 4d48e9d363067e6a6ce7117dbb718576a81bdedd (patch) | |
tree | 1c4fa098fc29626f2c113b9e98e93b57c3dc79e5 /src/nodes | |
parent | 3fec1f052dbb8cbe33172e779ac853eeb934ee62 (diff) |
rename most image stuff to file/media/attachment
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'src/nodes')
-rw-r--r-- | src/nodes/Image.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nodes/Image.js b/src/nodes/Image.js index 14410189a..3660c04e7 100644 --- a/src/nodes/Image.js +++ b/src/nodes/Image.js @@ -53,7 +53,7 @@ const Image = TiptapImage.extend({ // only catch the drop if it contains files if (event.dataTransfer.files && event.dataTransfer.files.length > 0) { const coordinates = view.posAtCoords({ left: event.clientX, top: event.clientY }) - const customEvent = new CustomEvent('image-drop', { + const customEvent = new CustomEvent('file-drop', { bubbles: true, detail: { files: event.dataTransfer.files, |