vue-clipboard2
vue-clipboard2 copied to clipboard
Can you copy the actual elements of the dom,Copy it and paste it into the editor
Like it https://clipboardjs.com/
new ClipboardJS('.btn', {
target: function(trigger) {
return trigger.nextElementSibling;
}
});

Attachments have an implementation
You can copy and paste images from the editor back into the editor
try
It's invalid, it'll remove the image
this.$copyText(this.$refs.xxx.textContent)
Directly copy the dom, and the result is [object HTMLDivElement]
Try to use window.util.format( this.$refs.xxx.textContent ); instead. Use console.log( this.$refs.xxx.textContent ) to see the contents and check if that's what you wanted