Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !7891

Closed
Created Sep 28, 2014 by Administrator@rootOwner
  • Report abuse
Report abuse

Fix pasting images into browser

  • Overview 13
  • Commits 1
  • Changes 1

Created by: m-a-r-c-o

This patch binds the handlePaste() function to the clipboardData paste event.

Currently firefox/safari do not fully support clipboardData. Therefore on those browsers the clipboard contents is pasted as plain/text and a message is displayed within the alert area.

This is a possible solution for #7392 (closed)

I only tested on: Firefox (linux) -> NOT working Chrome (linux) -> working Firefox (Mac) -> NOT working Safari (Mac) -> NOT working

Tomorrow I will test on Windows (Firefox, Chrome, IE 10)

For Firefox there is currently some work in progress to get it working too: https://bugzilla.mozilla.org/show_bug.cgi?id=891247

Before this will be merged I probably have to change something. Please review and comment. It would be great to get this merged because the pasting of images is a great feature.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/m-a-r-c-o/paste-raw-image-feature