Comments (11)
Thanks for heads up. Can you provide sample fiddle/jsbin to reproduce this? Meanwhile suggest locking dep on previous version.
from copy-to-clipboard.
I'm sorry, I wanted post this string into comment, just try put as text this:
<iframe src="htttp://google.com" width="960" height="1300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" style="overflow: hidden;"></iframe>
from copy-to-clipboard.
@shvaikalesh do you have any advice on resolving this issue?
from copy-to-clipboard.
.innerHTML
assignment sucks causes this issue.
However, it has good reasoning for being there (see #7).
One way of handling this issue is to escape HTML manually (like here)
The other way of solving this is to bring .textContent
back and play with white-space
rule on created <mark>
element.
from copy-to-clipboard.
@sudodoki is it possible to include escaping like @shvaikalesh suggests?
from copy-to-clipboard.
@Pave91 got no idea atm, will try to tackle this when I have free time on my hands.
from copy-to-clipboard.
Sorry.
from copy-to-clipboard.
It's fine, I think I can send escaped string myself. Thanks to @shvaikalesh for showing the way.
from copy-to-clipboard.
Should be fixed by #19 let me know, if latest master works for you and I'll publish version. @Pave91
from copy-to-clipboard.
Works fine for me, thanks. You can publish it.
from copy-to-clipboard.
Closing this then
from copy-to-clipboard.
Related Issues (20)
- 哥们,你的 options 的 format 必须传值才走复制的代码,format 传为 text/plain,你下个版本修复下? HOT 5
- Disable prompt on error HOT 4
- TypeError: reselectPrevious is not a function HOT 4
- IE11 format: 'text/html' results in empty clipboard HOT 1
- Option to support text/html and text/plain in parallel when one or the other is available. HOT 2
- execCommand is now obsolete HOT 2
- Safari when copy is made async HOT 1
- Copied text/html content not getting pasted in code editor, slack, etc. HOT 4
- reselectPrevious is not a function HOT 1
- Deprecated? HOT 1
- npm audit: 16 vulnerabilities HOT 3
- Screen readers should not narrate copied text HOT 3
- Platform parsing will soon break on Chrome
- Copy incorrectly if my text contains "\r\n" when using firefox HOT 3
- Copy to clipboard doesn't work in fullscreen mode HOT 1
- not es-module compliant HOT 2
- Seemed wrong preventDefault?
- Does it support copy image/png?
- CDN source dead
- Safari 17 Throws error NotFoundError: The object can not be found here.
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 copy-to-clipboard.