[wp-meta] [Making WordPress.org] #6756: Add a copy to clipboard button to code blocks
Making WordPress.org
noreply at wordpress.org
Fri Feb 17 05:07:48 UTC 2023
#6756: Add a copy to clipboard button to code blocks
--------------------------------------+-------------------------
Reporter: johnbillion | Owner: tellyworth
Type: feature request | Status: reviewing
Priority: normal | Milestone:
Component: Make (Get Involved) / P2 | Resolution:
Keywords: |
--------------------------------------+-------------------------
Comment (by tellyworth):
There's more to it than just enabling the plugin on Make sites. The
Developer reference has some custom JS that adds copy and expand buttons:
https://github.com/WordPress/wporg-developer/blob/trunk/source/wp-
content/themes/wporg-developer-2023/js/function-reference.js#L30-L99
@ryelle what's your take on the best way to make that feature available
elsewhere? Do we need a second companion plugin for code-syntax-block that
would incorporate those buttons and other customizations for use across
the site?
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/6756#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list