I am currently inserting HTML elements into the Rails ActionText/Trix editor,
function insertAttachment (data, trix) { const editor = document.getElementById(&q