The Copy Text to Clipboard module provides a tiny JavaScript and CSS files that can add a "copy" button to the end of any text that can be copied to the clipboard when clicked. The module has no dependencies, no configuration; simply install and use. Add a class "cp-to-clip" to the HTML tag that encloses the text to be copied. The module does the rest.
e.g. <div class="cp-to-clip"> Text .... </div>
The Clipboard.js module is a more advanced module which includes the copy to clipboard capabilities provided by the clipboard.js jQuery library.
This module includes a purely JavaScript function, independent of jQuery. The simplicity of this module lies in the fact that it has no dependencies other than drupal core, and no additional configuration. This makes it an easy to install and use out of the box.
Comments
Comment #2
puffoon commentedComment #3
vishal.kadamThank you for applying!
Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.
The important notes are the following.
phpcs --standard=Drupal,DrupalPracticeon the project, which alone fixes most of what reviewers would report.To the reviewers
Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.
The important notes are the following.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.
Comment #4
vishal.kadamComment #5
puffoon commentedphpcs is run and all issues are fixed.
The release is at
https://www.drupal.org/project/cp2clip/releases/1.0.1-rc1
composer require 'drupal/cp2clip:^1.0@RC'
Comment #6
rushikesh raval commentedI have reviewed code. But I think there is not enough php code to review.
Senior reviewer may review code with this point.
Comment #7
avpadernoSince there is a module with the same purpose, the project page should give a more detailed description of the differences between the modules.
Also, the module used for this application does not contain enough PHP to understand your skills in writing secure code that correctly uses the Drupal API and follows the Drupal coding standards. Actually, not even the JavaScript code correctly uses the Drupal JavaScript API.
Is there another project hosted on drupal.org that we can instead review?
Comment #8
avpadernoAs a side note, checking the project files should have been done right after posting the first comment on this issue. puffoon should not have waited 15 days to be said the project does not contain enough PHP code.
The person posting the welcome comment should also check that and how many people committed code in the project used for an application.
Comment #9
vishal.kadamI am changing priority as per Issue priorities.
Comment #10
vishal.kadamThis thread has been idle, in the Needs work state with no activity for several months. Therefore, I am assuming that you are no longer pursuing this application, and I marked it as Closed (won't fix).
If this is incorrect, and you are still pursuing this application, then please feel free to re-open it and set the issue status to Needs work or Needs review, depending on the current status of your code.
Comment #11
avpadernoLet's keep this application open.
Comment #12
avpadernoThis thread has been idle, in the Needs work state with no activity for more than eight months; the application has been created more than 11 months ago. Therefore, I marked it as Closed (won't fix).
If this is incorrect, and you are still pursuing this application, please feel free to re-open it and set the issue status to Needs work or Needs review, depending on the current status of your code.