[ENH] PluginCode and Tracker YAML export: Enhance copy code button
This MR should fix the issue related to hidden copy code button and try to extend the possibility of copying content when ClipboardJS throws an error.
Related task: https://avan.tech/item75887