vuepress-plugin-copyright

Mr.Hope ... 2020-5-7 Config
  • Plugin
  • Config
Less than 1 minute

Handling copy operations in your VuePress site

# Default configuration

When the user copies a message of more than 100 words from your site, a declaration message is added at the end of the message.

The author name is automatically generated from the author information or sitename that you configured in the theme.

The default configuration is:




 
 
 
 
 
 
 
 



module.exports = {
  plugins: [
    /** Copy operation processing */
    [
      "copyright",
      {
        authorName: options.author,
        minLength: 100,
        clipboardComponent: path.resolve(__dirname, "components/Clipboard.vue"),
      },
    ],
  ],
};
1
2
3
4
5
6
7
8
9
10
11
12
13

# Configuration Item

See Official Documentation (opens new window)

# Demonstration

Please copy this text and paste it to any location to see the effect. Please copy this text and paste it to any location to see the effect. Please copy this text and paste it to any location to see the effect. Please copy this text and paste it to any location to see the effect. Please copy this text and paste it to any location to see the effect. Please copy this text and paste it to any location to see the effect. Please copy this text and paste it to any location to see the effect. Please copy this text and paste it to any location to see the effect. Please copy this text and paste it to any location to see the effect. Please copy this text and paste it to any location to see the effect.

Last update: January 29, 2021 05:27
Contributors: Mr.Hope