Comments (13)
https://codepen.io/anon/pen/wEEBor
https://codesandbox.io/s/64xo8n4163
Can't reproduce with latest [email protected]
from vue-clipboard2.
Use item.textContent
instead, or you will get HTML entity encoded string.
from vue-clipboard2.
Please give me a minimal reproduction
from vue-clipboard2.
try something like
let txt = 'abc => test'
// now try to copy it
this.$copyText(txt)
paste the data and check the output.
from vue-clipboard2.
found more info & docs
and the reason
vue-clipboard2/dist/vue-clipboard.js
Line 32 in 5a55328
from vue-clipboard2.
@Inndy any update ?
from vue-clipboard2.
I'm busy these days, it would take some efforts to fix this due to it must add a new DOM to current document body. It may cause some problem (like triggering unwanted event callback or something else). I will try to fix $copyText
later.
from vue-clipboard2.
all good, does it require any extra config or usage is the same ?
from vue-clipboard2.
As you can see, latest release was made at Jul, and I did not change any code. Just use it as the same.
BTW, I had added eslint to this project, so perhaps we can have less silly bug like #36.
from vue-clipboard2.
oh am sorry, totally forgot its the already released version,
am using with this.$copyText()
maybe the usage is different than the normal ?
from vue-clipboard2.
I think you should check your code if Laravel already did the HTML entity encode.
from vue-clipboard2.
actually laravel has nothing to do with it, i simply use this.$copyText(item.innerHTML)
from vue-clipboard2.
awesome, many many thanx for the quick help 🏆
from vue-clipboard2.
Related Issues (20)
- 有一些字符会被转义 HOT 1
- 有一些字符会被转义
- How i use clipboard intro render function
- Focus must stay on the link/button HOT 1
- get error Cannot read property 'nodeName' of null
- 希望可以将web中的表格复制至excel中!?
- 以下示例中会出现copy失败,特别是在ios或者安卓手机端。 HOT 2
- large data cannot copy
- 销毁 clipboard 前是否应该取消订阅?
- 安卓11好像不兼容啊
- Number Support
- v-clipboard's copy function fails while using cypress
- using vue-clipboard2 on Vue 3 + Typescript HOT 1
- clipboard2 hasAttribute is not a function HOT 1
- what should be the type of event in copy method
- in ie11,Call this$ CopyText will prompt that the property object does not support 'remove'
- How to disable enter key? HOT 2
- Events not being prevented
- not work on vuetify dialog HOT 8
- copy the rendered element problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-clipboard2.