Ionaru / Ionaru/easy-markdown-editor
Shortcut for Custom Toolbar Action
- Dominant language
- JavaScript
- Stars
- 3.1k
- Forks
- 363
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Is there a way to call a custom toolbar action with a shortcut? For example, if I add this custom action to the toolbar:
```js
{
name: "custom",
action: (editor) => {
// Custom action code
},
className: "fa fa-star",
text: "Starred",
title: "Custom Button"
}
},
```
How can I add a new shortcut within the array of shortcuts to call this custom action?
Thanks
Contributor guide
Research direction
The issue names custom toolbar actions and the shortcuts configuration, but no repository files or tests. Start by locating the code that handles toolbar actions and shortcuts, then determine how a shortcut could invoke the supplied custom action; done means the supported behavior is documented or implemented and verified with the relevant existing tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100