Ionaru / Ionaru/easy-markdown-editor

Toggle button in toolbar

Open
#600 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

I see it's possible to set an action function for custom toolbar icons, but how to I make it toggle on and off?

It seems the `getState()` function is in charge of what's active and what's not. Is there a way to hook into that? I have a toggle button that turns on and off custom code and I need the button to be in an active state when enabled.

Thank you

Contributor guide

Open the contributing guide

Research direction

The issue names no file or test. Start by reviewing the custom toolbar action and getState() documentation or implementation, then determine whether the supported toggle behavior is documented; done means the active-state hook and a usage example are clear to users.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 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.