jodit / jodit/jodit-react

Jodit removing br tag when switching to HTML mode and then back

Open
#150 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
406
Forks
131
Avg merge
2h 32m
Merged PRs (30d)
2

Description

Example
<span>Test<br/></span><span>Test</span>

When BR is before closing tag then BR is removed.

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

Reproduce the issue in the jodit-react wrapper using the supplied HTML, switching to HTML mode and back to confirm that the br before the closing span disappears. Trace the wrapper's mode-switching and HTML conversion entry points, then add a regression test showing that the br is preserved and verify the existing test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.