Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

58
Views
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

enter image description here

7 months ago ยท Juan Pablo Isaza
Answer question
Find remote jobs