Skip to content

Code snippets are not copiable #253

@szabosteve

Description

@szabosteve

Describe the bug

Even if there is a copy option in the rendered code snippet block, the content wouldn't be copied to the clipboard after clicking the option.

Expected behavior

After clicking copy in the top right corner of the code snippet block, the content should be copied to the clipboard.

Steps to reproduce

  1. Find a code block in the built docs, for example, on the /search-your-data.html page of the ES guide.
  2. Click copy in the top right corner of the code snippet block.
  3. Open a text editor.
  4. Cmd+v or crlt+v in the editor.
  5. Compare the content in the code block and the content in the text editor.

Tooling

  • docs-builder
  • migration tooling
  • I'm not sure

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions