uiwjs / uiwjs/react-md-editor

Intercept hyperlinks on click

Open
#514 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.9k
Forks
201
Avg merge
12m
Merged PRs (30d)
1

Description

Similar to issue #445 in which the question was to open in a new tab, I'd like to intercept the link click entirely. Our app redirects to a native control for the anchors. Is there any exposed function or way to basically preventDefault and get an event to trigger when a hyperlink is clicked so the listener can propagate it in a different way?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with issue #445 and trace how hyperlink clicks are handled in the React markdown editor. Determine the intended callback or event behavior for preventing navigation and propagating the click to a native control; done means the interception API and its expected behavior are clearly specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.