You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently having the following issue:
When trying to paste using cmd + v on the contenteditable, the editablePaste event triggered does not contain the original event information. Instead, the editable element is returned three times:
From what I understand, this is manually triggered because the paste event happens inside of the pastebin.
Originally changed here: #1099
and fixed, partially, here: #1124
I understand the reason behind it, but I don't know why returning the same object three times is necessary, specially without sending the original event !
My use case is I want to allow pasting files, which I need to do after the past extension does its thing and triggers the editablePaste event. But without the original event information, it's impossible. Unless I'm missing something !
I appreciate the support and I can offer to create a PR if that helps :)
Steps to reproduce
Paste using keyboard commands (cmd + v)
Subscribe to editablePaste event trigger
Expected behavior:
Receive the original paste event as a parameter
Actual behavior:
A "fake" event object containing two times the same object is returned
Versions
medium-editor: 5.23.3
browser: Chrome v89
OS: Mac OS 10.15
The text was updated successfully, but these errors were encountered:
Description
Hi! Thanks a lot for the add-on, it's awesome :)
I'm currently having the following issue:
When trying to paste using cmd + v on the
contenteditable
, theeditablePaste
event triggered does not contain the original event information. Instead, the editable element is returned three times:medium-editor/src/js/extensions/paste.js
Line 252 in d113a74
From what I understand, this is manually triggered because the paste event happens inside of the pastebin.
Originally changed here:
#1099
and fixed, partially, here:
#1124
I understand the reason behind it, but I don't know why returning the same object three times is necessary, specially without sending the original
event
!My use case is I want to allow pasting files, which I need to do after the past extension does its thing and triggers the
editablePaste
event. But without the original event information, it's impossible. Unless I'm missing something !I appreciate the support and I can offer to create a PR if that helps :)
Steps to reproduce
editablePaste
event triggerExpected behavior:
Receive the original paste
event
as a parameterActual behavior:
A "fake" event object containing two times the same object is returned
Versions
The text was updated successfully, but these errors were encountered: