Skip to content

Add copy-example-to-clipboard button #6

@morrisonlevi

Description

@morrisonlevi

Copying to the clipboard can be done in modern browsers with JavaScript's document.execCommand('copy', ...) which will copy the current selection. I'm not sure the way to feature detect support.

Essentially when a user clicks the button we need to highlight the code snippet and then copy it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions