WP Manifestindependent plugin directory
manifest / editor / copas

Copas

This plugin adds a customizable "Copy to Clipboard" button using the Classic Editor.

by Abdun Syakuur · github.com/swanagata/copas

★ 0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/swanagata/copas/archive/refs/heads/main.zip

Github: https://github.com/swanagata/copas

A WordPress plugin that adds a customizable "Copy to Clipboard" button integrated with the Classic Editor.

Description

Copas is a WordPress plugin that adds a customizable "Copy to Clipboard" button, integrated with the Classic Editor. This plugin uses the clipboard.js library to enable users to easily copy specified content to their clipboard with a single click.

Features

  • Customizable copy button for the Classic Editor.
  • Easily specify content to copy using shortcodes.
  • Customize button text, success message, and CSS classes.

Installation

  1. Upload Plugin files

    Upload the copas folder to the /wp-content/plugins/ directory.

  2. Activate the Plugin

    Activate the plugin through the 'Plugins' menu in WordPress.

Usage

To use the Copas plugin, insert the following shortcode into your post or page:

[copas content="Text to copy" buttontext="Copy" successmessage="Copied!" classtext="my-button-class"]

Shortcode Parameters

  • content: (string) Content to be copied to the clipboard. Default is an empty string.
  • buttontext: (string) Text displayed on the button. Default is "Copy".
  • successmessage: (string) Message displayed after successful copy. Default is "Copied!".
  • classtext: (string) CSS class applied to the button. Default is "button".

Frequently Asked Questions

How do I use the shortcode?

Insert the shortcode [copas content="Text to copy" buttontext="Copy" successmessage="Copied!" classtext="my-button-class"] into your post or page.

Screenshots

  1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Screenshots are stored in the /assets directory.
  2. This is the second screen shot

Changelog

1.0

  • Initial release with basic copy-to-clipboard functionality.

Upgrade Notice

1.0

Initial release.