Ionaru / Ionaru/easy-markdown-editor

Publicly expose _toggleLink/_replaceSelection

Open
#584 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.1k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

It's currently impossible to perform text-selection modifications from a custom button using the same logic as EasyMDE.

The only workaround right now is outright copy/pasting these functions to your own code.

Contributor guide

Open the contributing guide

Research direction

Start by locating the _toggleLink and _replaceSelection functions in the EasyMDE source and review how the editor invokes them for text selection changes. Make the same logic publicly accessible for custom buttons without requiring users to copy the functions, then verify the existing editor behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.