Sha256: 6c0b72d7816df7955de697d5383d9641f6e2a1523f75314174ceec3cbaeeee6c

Contents?: true

Size: 258 Bytes

Versions: 147

Compression:

Stored size: 258 Bytes

Contents

import { AttachmentUpload } from "./attachment_upload"

addEventListener("trix-attachment-add", event => {
  const { attachment, target } = event

  if (attachment.file) {
    const upload = new AttachmentUpload(attachment, target)
    upload.start()
  }
})

Version data entries

147 entries across 142 versions & 11 rubygems

Version Path
actiontext-8.0.0 app/javascript/actiontext/index.js
actiontext-7.2.2 app/javascript/actiontext/index.js
actiontext-7.1.5 app/javascript/actiontext/index.js
actiontext-8.0.0.rc2 app/javascript/actiontext/index.js
actiontext-7.2.1.2 app/javascript/actiontext/index.js
actiontext-7.1.4.2 app/javascript/actiontext/index.js
actiontext-7.0.8.6 app/javascript/actiontext/index.js
actiontext-6.1.7.10 app/javascript/actiontext/index.js
actiontext-8.0.0.rc1 app/javascript/actiontext/index.js
actiontext-6.1.7.9 app/javascript/actiontext/index.js
actiontext-7.2.1.1 app/javascript/actiontext/index.js
actiontext-7.1.4.1 app/javascript/actiontext/index.js
actiontext-7.0.8.5 app/javascript/actiontext/index.js
actiontext-8.0.0.beta1 app/javascript/actiontext/index.js
omg-actiontext-8.0.0.alpha9 app/javascript/actiontext/index.js
omg-actiontext-8.0.0.alpha8 app/javascript/actiontext/index.js
omg-actiontext-8.0.0.alpha7 app/javascript/actiontext/index.js
omg-actiontext-8.0.0.alpha4 app/javascript/actiontext/index.js
omg-actiontext-8.0.0.alpha3 app/javascript/actiontext/index.js
actiontext-7.1.4 app/javascript/actiontext/index.js