Js_clipboard.Asynchronousval copy_text :
Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t ->
unit Core.Or_error.t Ui_effect.tcopy_text text stores text on the clipboard, overwriting any previous contents.
val read_text :
Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Core.Or_error.t Ui_effect.tread_text returns the text in the user's clipboard. An error is returned if the user doesn't give permission to read their clipboard.
val copy_blob :
Js_of_ocaml.File.blob Js_of_ocaml.Js.t list ->
unit Core.Or_error.t Ui_effect.tcopy_blob blobs stores all blobs on the clipboard, overwriting any previous contents.
MIME type of the new clipboard item will be taken from each blob and will be used by paste target to determine which blob to use. For example, you might use text/plain and text/html to support progressive enhancement when pasting into rich text editors or various image/foo blobs to support a wide arrange of photo applications.