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
When you use the clipboard event everything works just fine. It's when you paste using cmd+v or ctrl+v that it doesn't work. However, if I set the forcePlainText is set to false it will work. But then it does paste all the styling and tags with it. I couldn't use any of the other configs to remove the tags and stylings either to get around this issue.
Steps to reproduce
Set the forcePlainText to true
Paste using keyboard commands (cmd + v)
Subscript to the editablePaste event
Nothing is pasted to the input area but the event is fired. Basically the event passed down to the function is different from the event passed down when you paste using the clipboard.
Expected behavior: [What you expected to happen]
Pasting text with cmd+v should work using the default values (forcePlainTextset totrueandcleanPastedHTMLtotrue`). It also should remove all the stylings, tags and other attributes and paste it as a plain text by default.
Actual behavior: [What actually happened]
cmd+v doesn't work.
Versions
medium-editor: 5.23.3
browser: Chrome, Safari
OS: MacOS
The text was updated successfully, but these errors were encountered:
Description
When you use the clipboard event everything works just fine. It's when you paste using cmd+v or ctrl+v that it doesn't work. However, if I set the forcePlainText is set to
false
it will work. But then it does paste all the styling and tags with it. I couldn't use any of the other configs to remove the tags and stylings either to get around this issue.Steps to reproduce
forcePlainText
totrue
editablePaste
eventevent
passed down to the function is different from theevent
passed down when you paste using the clipboard.Expected behavior: [What you expected to happen]
Pasting text with cmd+v should work using the default values (forcePlainText
set to
trueand
cleanPastedHTMLto
true`). It also should remove all the stylings, tags and other attributes and paste it as a plain text by default.Actual behavior: [What actually happened]
cmd+v doesn't work.
Versions
The text was updated successfully, but these errors were encountered: