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

  • Home
  • SEARCH
  • 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 9164675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:44:22+00:00 2026-06-17T14:44:22+00:00

I am working on editor where I would like to provide a button by

  • 0

I am working on editor where I would like to provide a button by clicking which I want to paste an image which is already copied to the clip board. I couldn’t do this as the browsers doesn’t allow to access clipboard due to security reasons.

I checked out Google Drive to find how it is done by Google. In chrome, they are asking to install Google Drive webapp from Chrome webstore which is requesting clipboardRead and clipboardWrite permissions and once the app is installed. Everything works like charm in Google Drive. The documentation says use document.execCommand(‘paste’). But I couldn’t find any samples implementing this and couldn’t implement the same in my application. Can someone here provide me a sample on how to make this work when images are in the clipboard.

  • 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-06-17T14:44:23+00:00Added an answer on June 17, 2026 at 2:44 pm

    We need to add permissions(clipboardRead and clipboardWrite) in the manifest file of your application and then if you want to paste a text/image from clipboard, we need to give focus to a dummy textbox/image element in html and then run document.execCommand(‘paste’) and now this element has access to the clipboard copied item and get the text or image to use it.

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

Sidebar

Related Questions

I would like to create the autocompletion(intellisense) feature in an editor I'm working on.
I am working on graph editor using WPF and I would like to know
I'm working on a rich text editor and I would like to study some
I'm working on a little experimental editor where I would like to visualize the
I'm working on an editor for novel authors . After seeing programs like DarkRoom
I'm working on a rich text editor like web application, basically a XML editor
I'm working on a simple GUI code editor in Python, and I want to
I'm working on an editor page for a project in ASP.NET MVC. I would
Hey guys. Working on Mac OSX 10.6, My problem is that I would like
I'm working for an iPhone project. I would like to use an UI Automation

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.