Ionaru / Ionaru/easy-markdown-editor

Shortcut for Custom Toolbar Action

Open
#547 0 comments 0 reactions 0 assignees View on GitHub
Question
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.