Title: Copy code button not working
Last modified: January 30, 2026

---

# Copy code button not working

 *  [elmitash](https://wordpress.org/support/users/elmitash/)
 * (@elmitash)
 * [4 months ago](https://wordpress.org/support/topic/copy-code-button-not-working-2/)
 *     ```wp-block-code
       urvanov_syntax_highlighter.min.js?ver=2.9.0:1 Uncaught TypeError: Cannot read properties of undefined (reading 'value')    at J.copyPlain (urvanov_syntax_highlighter.min.js?ver=2.9.0:1:13895)    at HTMLDivElement.<anonymous> (urvanov_syntax_highlighter.min.js?ver=2.9.0:1:8549)    at HTMLDivElement.dispatch (jquery.min.js?ver=3.7.1:2:40035)    at v.handle (jquery.min.js?ver=3.7.1:2:38006)J.copyPlain @ urvanov_syntax_highlighter.min.js?ver=2.9.0:1(anonymous) @ urvanov_syntax_highlighter.min.js?ver=2.9.0:1dispatch @ jquery.min.js?ver=3.7.1:2v.handle @ jquery.min.js?ver=3.7.1:2
       ```
   
 * I realized the copy button isn’t working. When I press the copy button, the following
   error is displayed in the Chrome console.
   Crayon is version 2.9.0 and I’m using
   it with the classic editor.
 * You can check it on my site’s blog post.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcopy-code-button-not-working-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [urvanov](https://wordpress.org/support/users/urvanov/)
 * (@urvanov)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/copy-code-button-not-working-2/#post-18851668)
 * [@elmitash](https://wordpress.org/support/users/elmitash/) Copy button uses JavaScript
   Clipboard API. It can work only on websites with HTTPS. I have some thoughts 
   about alternative option for HTTP or localhost. But for now only HTTPS.
 *  Plugin Author [urvanov](https://wordpress.org/support/users/urvanov/)
 * (@urvanov)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/copy-code-button-not-working-2/#post-18851670)
 * Oh. Your website in link uses HTTPS. I think copy button should work for it. 
   But I don’t see any button on the toolbars in code blocks. I cannot test.
    -  This reply was modified 2 months, 2 weeks ago by [urvanov](https://wordpress.org/support/users/urvanov/).

Viewing 2 replies - 1 through 2 (of 2 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcopy-code-button-not-working-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://s.w.org/plugins/geopattern-icon/urvanov-syntax-highlighter.svg)
 * [Urvanov Syntax Highlighter](https://wordpress.org/plugins/urvanov-syntax-highlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/urvanov-syntax-highlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/urvanov-syntax-highlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/urvanov-syntax-highlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/urvanov-syntax-highlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/urvanov-syntax-highlighter/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [urvanov](https://wordpress.org/support/users/urvanov/)
 * Last activity: [2 months, 2 weeks ago](https://wordpress.org/support/topic/copy-code-button-not-working-2/#post-18851670)
 * Status: not resolved