[Vuejs]-How do I prevent an attachment to be deleted after resetting the form fields including the trix-editor's contents?

0👍

in my case i use localstorage then put the value of image name.
then you can attach the file name with localstorage get item. if you want you can remove item after resetting fields .

 handleAttachmentChanges: (event) =>{
               let file = event.attachment.file.name;
               localStorage.setItem('file-rich', file);
              console.log(file);
              console.log(event);
              
            }

Leave a comment