vue-clipboard2 icon indicating copy to clipboard operation
vue-clipboard2 copied to clipboard

Can you copy the actual elements of the dom,Copy it and paste it into the editor

Open yoonasy opened this issue 6 years ago • 2 comments

Like it https://clipboardjs.com/

new ClipboardJS('.btn', {
    target: function(trigger) {
        return trigger.nextElementSibling;
    }
});

image

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)

yoonasy avatar Feb 20 '19 08:02 yoonasy

Directly copy the dom, and the result is [object HTMLDivElement]

yoonasy avatar Feb 20 '19 08:02 yoonasy

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

akmalhazim avatar Jan 22 '20 14:01 akmalhazim