Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options.preview.hljs.linenumber 设置为 true 时复制按钮消失 #1601

Closed
qingtang1003 opened this issue Apr 3, 2024 · 1 comment
Closed
Assignees
Milestone

Comments

@qingtang1003
Copy link

编辑模式

默认编辑模式

描述问题

如题,是不是因为这样参数设置 hljs: {lineNumber: true, style: 'ant-design'} 会导致默认的renderMenu失效掉?
那renderMenu该怎么设置文档里面也没有说明清楚
顺便问一下hljs.style能不能传入自定义的主题

版本信息

  • 版本: "vditor": "^3.10.2"
  • 操作系统:macos
  • 浏览器:chrome

其他信息

@Vanessa219 Vanessa219 changed the title 对options.preview.hljs的linenumber设置时,会导致复制按钮消失掉 options.preview.hljs.linenumber 设置为 true 时复制按钮消失 Apr 9, 2024
@Vanessa219 Vanessa219 self-assigned this Apr 9, 2024
@Vanessa219 Vanessa219 added this to the 3.9 milestone Apr 9, 2024
@Vanessa219
Copy link
Owner

renderMenu(code: HTMLElement, copy: HTMLElement) 使用参数添加自定义的元素和事件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants