LibCopyPaste 1.0 doc - Oppzippy/LibCopyPaste GitHub Wiki

LibCopyPaste

Library for enabling users to copy and paste blocks of text

Functions

Copy (title, text, options)

Open a frame containing text for the user to copy

Parameters

  • title: Title of the copy window.

  • text: Text to display in the window. This is what will be copied.

  • options: Table of options. Keys are: readOnly (boolean)

Paste (title, callback, options)

Open a frame for the user to paste text into

Parameters

  • title: Title of the paste window.

  • callback: Function that will be run when the paste window is closed. The function will be passed the pasted text as an argument.

  • options: Table of options. No options exist yet.