Added updateAttachments to mdedit