• Alex Ivanovs

    (@smartereveryday)


    Hi Andi / everyone else,

    I was wondering if you could help me out adding a “Copied” event to the Copy button whenever a user clicks on it.

    I tried using onClick (JavaScript) but it doesn’t seem to work, or maybe I am missing something.

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Andi Dittrich

    (@andi-dittrich)

    onClick should work but the event handler has to be added **after** EnlighterJS.init has been called. therefore add the initialization code to an document.onLoad event and may add a 1s timeout.

Viewing 1 replies (of 1 total)
  • The topic ‘“Copied to clipboard”’ is closed to new replies.