You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem or use case? Please describe.
The old API document.execCommand might be deprecated in the future.
A component or utils which can read/write/clear the clipboard easily by using the new API and old API would be nice.
And the pseudocode might be here(just one small suggestion):
// If new clipboard api is not supported, then downgrade to the old api.
if (new Clipboard API is supported) {
copyByNewAPI().then(function () {
successCallback();
}, function () {
copyByOldAPI();
});
} else {
copyByOldAPI();
}
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
And what application do you work on? Infor SunSystems
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem or use case? Please describe.
The old API
document.execCommand
might be deprecated in the future.A component or utils which can read/write/clear the clipboard easily by using the new API and old API would be nice.
Describe the solution you'd like
As we know, there are some description and implements here.
https://w3c.github.io/clipboard-apis/
https://web.dev/articles/async-clipboard
https://developer.mozilla.org/en-US/docs/Web/API/Clipboard
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Interact_with_the_clipboard
https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand
And the pseudocode might be here(just one small suggestion):
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
And what application do you work on? Infor SunSystems
The text was updated successfully, but these errors were encountered: