This is not a bug... I am trying to disable file attachments as I鈥檇 like to use the monitor only for text. Is this possible? Did not see such an option in the configuration.
Thank you.
If you don鈥檛 want to accept dropped or pasted files, call
preventDefault()on thetrix-file-acceptevent, which Trix dispatches just before thetrix-attachment-addevent.
https://github.com/basecamp/trix#storing-attached-files
Thank you so much!
For those wanting a quick cut and paste: here it is:
// prevents attachments:
document.addEventListener("trix-file-accept", function(event) {
event.preventDefault();
});
Most helpful comment
For those wanting a quick cut and paste: here it is: