Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.
//
// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate
// layout file, like app/views/layouts/application.html.erb
console.log('Hello World from Webpacker')
require("trix")
require("@rails/actiontext")
require('awesomplete')
import Trix from 'trix'
Trix.config.attachments.preview.caption = { name: false, size: false }
created() {
Trix.config.toolbar.getDefaultHTML = () => '';
}
}