Ok, I've solved the problem by using a different approach - since accessing clipboard from iframe was not allowed.
If anyone ever has a similar problem - just save data as a file / load from file.
You can do this by a bit of JavaScript, which will call the typical "save as..." / "open..." window.
Feel free to reach me in case you need help ;)