Skip to content

swanagata/copas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

=== Copas === Contributors: abduns Tags: clipboard, copy, classic editor Requires at least: 5.4 Tested up to: 6.7.1 Stable tag: 1.0 Requires PHP: 7.0 License: GPL-3.0 License URI: https://www.gnu.org/licenses/gpl-3.0.html 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors