Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 606503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:15:40+00:00 2026-05-13T17:15:40+00:00

Does anyone of you know a cross browser working way to detect paste or

  • 0

Does anyone of you know a cross browser working way to detect paste or drag’n’drop inserts into an editable html document (with designMode or contentEditable enabled).

Detecting paste works as long as the user uses the Ctrl-V shortcut as it generated key events, but if you use the browsers Edit->Paste no events are generated it seems.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:15:41+00:00Added an answer on May 13, 2026 at 5:15 pm

    There’s a paste event that works for all pastes (including via context or edit menus) in an editable document, in Firefox starting version 3.0, WebKit for a few years (not sure of version number) and IE since 5.5. Adding the paste event handler to the body element works in all these browsers.

    I’m afraid I don’t have any insight on drag and drop events: on the editors I’ve worked on I’ve had good reason to explicitly disable drag and drop.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know a cross-browser, reliable solution for catching presses of the tab-key in
Does anyone know of any cross-browser user selection range libraries written in javascript? I
Does anyone know of a jquery css3 plugin that supports cross browser gradients. All
Does anyone know of any good resources for learning about cross-browser development in ASP.NET?
does anyone know how purevolume.com gets their rounded corners? its very interesting and cross
Does anyone know of a good cross platform VNC client library (the viewer end)?
Does anyone know of a way I can code-profile my Windows Sidebar Gadget? I've
Io is a nice cross-platform prototype-based object-oriented language. Does anyone know of any GUI
Does anyone know a good (preferably open source and cross platform) tool to allow
Does anyone know how to change icons in Silverlight outofbrowser application?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.