0.1.0 • Published 3 years ago
@uvdream/bytemd-plugin-code-copy v0.1.0
bytemd markdown 编辑器代码拷贝插件
示例
import CodeCopy from '@uvdream/bytemd-plugin-code-copy';
defaultOptions: [
CodeCopy(),
...
],
参数
export interface CopyCodeOptions {
// 拷贝按钮文字
copyText?: string;
// 拷贝按钮Icon
copyIcon?: string;
// 主题
theme?: string;
// 拷贝成功事件
copySuccess?: (text: string) => {};
// 拷贝失败事件
copyError?: () => {};
// 拷贝附带版权说明
copyright?: string;
}