3 ms·
I haven't worked on clipboard stuff in a web app yet, and am finding this thread confusing. If there are APIs for this, why are Trello resorting to a complex an
by gruseom 13y ago
I haven't worked on clipboard stuff in a web app yet, and am finding this thread confusing. If there are APIs for this, why are Trello resorting to a complex and probably rather brittle hack? What does the hack give them that the APIs don't?
- zetafunction 13y agoI'm not sure, but several guesses: 1) The clipboard APIs aren't well known. 2) You can't normally set HTML content in the clipboard with IE since it only supports 'Text' and 'URL' types (http://msdn.microsoft.com/en-us/library/ms536744(v=vs.85).aspx http://msdn.microsoft.com/en-us/library/ms536744(v=vs.85).as...). 3) The IE interface (via window.clipboardData) might trigger an infobar. I didn't really test this though.