Search code examples
rlearnr

Can I remove the "copy to clipboard" button in a learnr tutorial?


In the learnr tutorial, the exercise block allows you to view the solution and then click "copy to clipboard". For some reason, when the user selects "copy to clipboard" and then pastes it in the exercise block, an error is introduced. I want to just remove the "copy to clipboard" button option, so the user can manually copy it. Is that possible?

screenshot


Solution

  • No, at this time it’s not possible to disable the Copy to Clipboard button in learnr.

    You could use CSS to hide the button, however, with a rule like this:

    .btn-tutorial-copy-solution {
      display: none;
    }