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 Feb 22, 2024
1 parent 00fc529 commit 847b1db
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 847b1db

Please sign in to comment.