Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !12013

Integrate ZeroClipboard to easily copy code snippets

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/soundarapandian/copy-to-clipboard into master Dec 26, 2013
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 7

Created by: soundarapandian

What I am trying to solve?

Usually people will copy the code snippets from Bootstrap documentation and edit according to their need. For bigger section of snippets on selecting the code, page scrolls and unwanted texts are selected which makes copying process little bit complex. To overcome the difficulty and to easily copy the code snippets I have integrated the https://github.com/zeroclipboard/zeroclipboard.

Completed

  • Copy to clipboard functionality
  • Tooltip based notification for successful copy, flash problem

For demonstration purpose I have added the copy to clipboard in few places of the documentation. Also I have attached the few screenshots for the core team review.

Browser Support Even though the library depends on the Flash it gives better browser support. Please refer https://github.com/zeroclipboard/zeroclipboard#support for browser support.

Screenshots

copy-to-clipboard-highlight

copy-to-clipboard-bs-example-and-highlight

copy-to-clipboard-mobile

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/soundarapandian/copy-to-clipboard