'On safari browser, paste content programmably will show system paste menu sometimes
When you want paste something in a contenteditable element by using javascript, there are two ways.
- Using the deprecated method
document.execCommand('paste') - Or using the new Clipboard API
navigator.clipboard.read()
On safari browser, paste content programmably will show system paste menu sometimes, not always. The above two methods's behavior are same.
Is there anyway to disable this?
My safari browser: v15.0.
Test page ==> https://codepen.io/netsi1964/pen/QbLLGW?editors=0010
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

