arronhunt / highlightjs-copy

📋❇️ A simple, accessible highlightjs plugin to add a copy button to your code blocks.

Home Page:https://highlightjs-copy.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't work

litosh-web opened this issue · comments

When click on icon, nothing has changed. Why? No errors in console

@sites21 Can you provide your code or even better a live example?

  • What browser are you using?
  • What OS are you using?
  • What version of highlightjs?

@sites21 Can you provide your code or even better a live example?

  • What browser are you using?
  • What OS are you using?
  • What version of highlightjs?

After my test, I found that the reason is as follows: navigator.clipboard is invalid in the http state

commented

@sites21 Can you provide your code or even better a live example?

  • What browser are you using?
  • What OS are you using?
  • What version of highlightjs?

I`m use Gulp for it. And this is periodically doesnt'work. Also tried with cdn. The same thing

  1. Chrome
  2. Windows
  3. Latest

Now it works. But I don't know why. Sorry for latest answer

Closing this ticket, please re-open if you’re still having issues with later releases.