Replies: 1 comment 2 replies
-
|
subMenuConfig does not support onClick configuration. var customMenuC = Cherry.createMenuHook('帮助中心', {
iconName: 'question',
subMenuConfig: [
{ noIcon: true, name: '快捷键', onclick: (event)=>{return cherry.insert('快捷键看这里:https://codemirror.net/5/demo/sublime.html');} },
{ noIcon: true, name: '联系我们', onclick: (event)=>{return cherry.insert('我们在这里:https://github.com/Tencent/cherry-markdown');} },
{ noIcon: true, name: '更新日志', onclick: (event)=>{return cherry.insert('我们在这里:https://github.com/Tencent/cherry-markdown/releases');} },
]
}); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
am strugglig to get nested custom menus to work , it works fine if i put the snippet in the onClick but not working if i out the same inside
subMenuConfig: []Beta Was this translation helpful? Give feedback.
All reactions