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 Nov 19, 2024
1 parent fc7a370 commit d7b7f29
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 @@ -25,6 +25,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 d7b7f29

Please sign in to comment.