Ionaru / Ionaru/easy-markdown-editor

Using mde.value(newValue) messes up the editor

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

Description

**Describe the bug**
After updated to the latest version, when ever I use `mde.value(someNewValue)` to change the existing value after initializing the editor, the text jumps down and the caret is in the wrong place and doesn't respond to mouse clicks.

** Version information **
- OS: MacOS
- Browser: Chrome 95
- EasyMDE version: 2.15.0

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in EasyMDE 2.15.0 by initializing the editor and calling mde.value(newValue) in Chrome on macOS. Trace the value update and caret or scroll behavior, then verify that the editor remains clickable and the caret stays in the expected position after the value changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
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.