The Internal clipboard is a replacement for the native clipboard api.
This should be used for several reasons:
Guarantees that the intra-application clipboard actions will work even if system clipboard is unavailable.
This can be because the browser doesn't support it (e.g. Firefox)
The user has restricted native clipboard access
Polyfill for onclipboardchange event.
Implements ReferenceableClipboard. These are items that add a paste callback to the clipboard to allow for items
to only be copied when the paste operation is performed.
InternalClipboard will attempt to sync with the native clipboard unless sync is false.
If a mimetype is text/html/image then value will be copied to the clipboard.
Remarks
TODO - If native copy/paste events are fired wrap them.
TODO - Once private web mimeTypes are widely supported we can use them rather than embedding into html
TODO - Allow for service worker to copy across tabs and sessions.
The Internal clipboard is a replacement for the native clipboard api. This should be used for several reasons:
Guarantees that the intra-application clipboard actions will work even if system clipboard is unavailable.
Polyfill for onclipboardchange event.
Implements ReferenceableClipboard. These are items that add a paste callback to the clipboard to allow for items to only be copied when the paste operation is performed.
InternalClipboard will attempt to sync with the native clipboard unless sync is false.
Remarks
See
Interface
InternalClipboard