dovy / vuepress-plugin-clipboard-copy

VuePress plugin for copying code blocks.
MIT License
3 stars 5 forks source link

Copy button not enabled vuepress@1.0.0-alpha.47 #1

Open devopsprosiva opened 5 years ago

devopsprosiva commented 5 years ago

@dovy I'm trying to use your plugin with vuepress@1.0.0-alpha.47. However I don't see the copy button enabled. Any suggestion?

Here's my .vuepress/config.js.

module.exports = { title: 'Hello VuePress', description: 'Just playing around', plugins: ['@dovyp/vuepress-plugin-clipboard-copy'], }

sylvainpolletvillard commented 5 years ago

Better late than never. Try this instead:

plugins: [
    ['@dovyp/vuepress-plugin-clipboard-copy', true]
]
sdsa-cci commented 2 years ago

@sylvainpolletvillard I've installed this plugin just like it's mentioned above and added a codeblock in my index.md file like below:

{
 "district_id": 1,
 "user_email": "s7s8s8s8s8s@mailinator.com",
 "address": "XYZ"
}

But, I'm still not able to see any copy button on the code block. What am I missing?