Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIv4 Explorer - Add "copy" button to quicly copy code to clipboard #22896

Merged
merged 1 commit into from
Mar 6, 2022

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Mar 6, 2022

Overview

Makes it easy to select and copy generated code.

This also makes the "Export" action easier to use, a "Copy" button automatically selects text, and the PHP formatted code begins with "return" and ends with a semicolon, which can be copied directly into a mgd.php file.

Before

No copy button. PHP result missing a semicolon at the end.

After

Button automatically highlights (selects) code and copies it to the clipboard.
image

@civibot
Copy link

civibot bot commented Mar 6, 2022

(Standard links)

@civibot civibot bot added the master label Mar 6, 2022
Makes it easy to select and copy generated code.

This makes the "Export" action easier to use, a "Copy" button automatically
selects text, and the PHP formatted code begins with "return" and ends with a semicolon.
@demeritcowboy demeritcowboy merged commit 549c624 into civicrm:master Mar 6, 2022
@colemanw colemanw deleted the api4ExplorerCopy branch November 8, 2022 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants