clipbuffer

Interface for clipboard.

Because browsers doesn't allow direct comunication with clipboard, lib creates hidden textarea which always hold text for copy (ctr-c) operation. So you can't set text directly to clipboard but you can place it ready for ctrl-c operation.

Methods
destructor destroys the clipbuffer, cleaning the DOM
focus moves focus to the clipboard buffer
init initializes the clipboard buffer
set sets new value for clipboard buffer
Back to top