-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle the case where the pasted data is not an image #7628
Conversation
@@ -384,7 +384,7 @@ export default { | |||
|
|||
this.manageEmbedLayout(); | |||
}, | |||
async addImageFromPaste(event) { | |||
async addImageOrTextFromPaste(event) { | |||
const clipboardItems = Array.from( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check for empty clippboard item?
@shefalijoshi e2e test please |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7628 +/- ##
==========================================
- Coverage 56.33% 55.93% -0.41%
==========================================
Files 672 672
Lines 27124 27124
Branches 2632 2632
==========================================
- Hits 15281 15171 -110
- Misses 11515 11624 +109
- Partials 328 329 +1
... and 21 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Closes VIPEROMCT-474
Describe your changes:
When pasting text (or text and image together), the
paste
event handler was adding the image to the entry and saving the entry. The textareablur
event handler never got a chance to get triggered, so the entry's text update would get ignored.Now, when there is any pasting in the text area, we're ensuring that both images and text are updated appropriately.
All Submissions:
Author Checklist
type:
label? Note: this is not necessarily the same as the original issue.Reviewer Checklist