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

[Bug report]自定义工具栏使用不了 #317

Closed
YJ-L-2017 opened this issue Sep 8, 2022 · 1 comment
Closed

[Bug report]自定义工具栏使用不了 #317

YJ-L-2017 opened this issue Sep 8, 2022 · 1 comment
Labels
🐞bug Something isn't working

Comments

@YJ-L-2017
Copy link

按照文档中的配置,在examples/index.html示例的基础上修改,自定义工具栏配置之后不显示

image

点击添加的按钮会报错:
MenuBase.js:173 Uncaught TypeError: Cannot read properties of undefined (reading 'editor')
at CustomMenu.fire (MenuBase.js:173:38)
at Toolbar.onClick (Toolbar.js:140:12)
at HTMLSpanElement. (Toolbar.js:86:16)

@sunsonliu
Copy link
Collaborator

已修复哈,目前在dev分支。
自定义菜单的例子可以参考这里:https://github.com/Tencent/cherry-markdown/blob/dev/examples/scripts/index-demo.js

@sunsonliu sunsonliu added the 🐞bug Something isn't working label Sep 12, 2022
wty92911 pushed a commit to wty92911/cherry-markdown that referenced this issue May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants