mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
Revert "Handle the case where the pasted data is not an image" (#7668)
Revert "Handle the case where the pasted data is not an image (#7628)"
This reverts commit d33da65dae
.
This commit is contained in:
parent
d33da65dae
commit
b18aa48141
@ -31,7 +31,7 @@
|
||||
@drop.capture="cancelEditMode"
|
||||
@drop.prevent="dropOnEntry"
|
||||
@click="selectAndEmitEntry($event, entry)"
|
||||
@paste="addImageOrTextFromPaste"
|
||||
@paste="addImageFromPaste"
|
||||
>
|
||||
<div class="c-ne__time-and-content">
|
||||
<div class="c-ne__time-and-creator-and-delete">
|
||||
@ -384,7 +384,7 @@ export default {
|
||||
|
||||
this.manageEmbedLayout();
|
||||
},
|
||||
async addImageOrTextFromPaste(event) {
|
||||
async addImageFromPaste(event) {
|
||||
const clipboardItems = Array.from(
|
||||
(event.clipboardData || event.originalEvent.clipboardData).items
|
||||
);
|
||||
@ -409,9 +409,7 @@ export default {
|
||||
})
|
||||
);
|
||||
this.manageEmbedLayout();
|
||||
// the pasted clipboard data also include text (or text only and no images).
|
||||
// So we will also update the text here
|
||||
this.updateEntryValue(event);
|
||||
this.timestampAndUpdate();
|
||||
},
|
||||
convertMarkDownToHtml(text = '') {
|
||||
let markDownHtml = this.marked.parse(text, {
|
||||
|
Loading…
Reference in New Issue
Block a user