Open JayWongwz opened 3 years ago
自己二次封装下吧,也简单,他最近都没维护更新了。
I don't know what this issue is about, so not sure how to address this one. Care to translate? If format
not passed, we just have execCommand('copy') and default format being set, with format option making difference only if we are able to manipulate clipboard content
@sudodoki What he means is to say options.format does not provide a default value, so
copy(' test plain text'), // doesn't work copy('test plain text',{format: 'text/plain'}) // work fine
in your code , you only do copy when options.format is provided
sorry for my bad english
you can see the author's profile, he is from Ukraine With a war going on in Ukraine, it is understandable that there is no time for updates
他乌克兰人 , 打仗呢 , 多理解下
@aaronzyf thanks for translation. Yeah, I have enough time now to take care of the package at pre-war level (which is quite low, frankly speaking), but seems to be similar to what we have in https://github.com/sudodoki/copy-to-clipboard/pull/122