Copy the content in the summary

[ad_1]

Hello @edwardtsai

Thank you very much for using our plugin. Please, follow the steps below:

Insert an “HTML Content” field in the form and enter the following piece of code as its content:

<script>
function copyElementToClipboard(element) {
  window.getSelection().removeAllRanges();
  let range = document.createRange();
  range.selectNode(typeof element === 'string' ? document.getElementById(element) : element);
  window.getSelection().addRange(range);
  document.execCommand('copy');
  window.getSelection().removeAllRanges();
}
</script>

And finally, enter the following code as the onclick event of the button field:

copyElementToClipboard(jQuery('.cff-summary-field')[0]);

Best regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer