reworked attachments-editor.html sample