I just accidentally created a clippy with no content, and I was confused when I tested this and the pasted output was the same as the previous clippy on the page. I assumed I had entered the same text in two places at first. Apparently, because there was no content, nothing was copied to the clipboard so the previous contents of the clipboard were still there. However I still got the "copied!" message when I clicked.
It might be nice to have some better feedback here, maybe (a) a really obvious error when you create a blank clippy like a red X to tell the dev that something is wrong (b) a message like "Oops, nothing to copy!" after clicking or (c) copy blank content to the clipboard so previous contents are overwritten
On my end I'm just adding better verification to my helper function, so that will fix this for me :-)
Btw I'm using clippy here: http://www.dexy.it/docs/tutorials/0-hello-world/ if you're curious (scroll down a bit). It's very helpful! I've built it in to one of my filters so the source code goes directly in.
I just accidentally created a clippy with no content, and I was confused when I tested this and the pasted output was the same as the previous clippy on the page. I assumed I had entered the same text in two places at first. Apparently, because there was no content, nothing was copied to the clipboard so the previous contents of the clipboard were still there. However I still got the "copied!" message when I clicked.
It might be nice to have some better feedback here, maybe (a) a really obvious error when you create a blank clippy like a red X to tell the dev that something is wrong (b) a message like "Oops, nothing to copy!" after clicking or (c) copy blank content to the clipboard so previous contents are overwritten
On my end I'm just adding better verification to my helper function, so that will fix this for me :-)
Btw I'm using clippy here: http://www.dexy.it/docs/tutorials/0-hello-world/ if you're curious (scroll down a bit). It's very helpful! I've built it in to one of my filters so the source code goes directly in.