CodeIgniter Forums
Library to copy to clipboard? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Library to copy to clipboard? (/showthread.php?tid=32579)



Library to copy to clipboard? - El Forum - 07-27-2010

[eluser]Unknown[/eluser]
I am using tinymce (wysiwyg editor) and the "copy" does not work in Chrome. All I need is to load an html string in a controller, possibly by a library? Is this possible? It should be?


Library to copy to clipboard? - El Forum - 07-27-2010

[eluser]WanWizard[/eluser]
Copying something to clipboard is a client-side action, so CI won't be able to help you there.

For Chrome, the javascript command is
Code:
document.execCommand('Copy');