This should be a pretty quick post. I wanted to explore how to Copy/Cut/Paste on a webpage. I figured how to do Copy and Cut pretty easily but Paste was a different story.
See the Pen
Copy/Cut/Paste text to clipboard demo by Joe Steinbring (@steinbring)
on CodePen.
So, why isn’t paste working in the pen? It looks like as of Chrome 39, you can only do it after declaring the clipboard permissions in the manifest file. Am I going to do that for this demo? Of course not. 🙂
Have a better way to do this … or a easy solution for fixing paste? Please drop a comment, below.
[Cover photo by Scott Sanker on Unsplash]