app/assets/javascripts/spina/admin/controllers/media_picker_controller.js in spina-2.0.0.alpha vs app/assets/javascripts/spina/admin/controllers/media_picker_controller.js in spina-2.0.0.beta
- old
+ new
@@ -74,10 +74,10 @@
this.element.modal.close()
}
insert_trix(event) {
let customEvent = new CustomEvent("image-insert", {bubbles: true, cancelable: true, detail: {
- url: this.trixImage.dataset.fullImageUrl,
+ url: this.trixImage.dataset.imageUrl,
alt: this.altTarget.value,
link_to_url: this.linkToUrlTarget.value
}})
this.trixEditor.dispatchEvent(customEvent)
\ No newline at end of file