Skip to content

Commit

Permalink
Make attachment wrappers draggable, but img elements not draggable
Browse files Browse the repository at this point in the history
  • Loading branch information
mattslack committed May 18, 2023
1 parent 84ed0e1 commit adf78e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/trix/views/attachment_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default class AttachmentView extends ObjectView {
className: this.getClassName(),
data: this.getData(),
editable: false,
draggable: true,
})

const href = this.getHref()
Expand Down
1 change: 1 addition & 0 deletions src/trix/views/previewable_attachment_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default class PreviewableAttachmentView extends AttachmentView {
data: {
trixMutable: true,
},
draggable: false,
})

this.refresh(this.image)
Expand Down

0 comments on commit adf78e1

Please sign in to comment.