Ionaru / Ionaru/easy-markdown-editor

value() randomly returns old value

Open
#616 1 comment 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**
value() randomly returns old value. Tried all sorts of solutions
const content = easyMDE.value()
or
const content = easyMDE.codemidrror.getValue()
or
easyMDE.codemirror.save()
const content = easyMDE.value()
It is just unreliable.

**To Reproduce**
Steps to reproduce the behavior:
Modify the text
click a button to trigger your function to read the value
sometimes you see the changes sometimes you don't

**Expected behavior**
You should always see the changes

**Screenshots**
N/A

**Version information**
- OS: Android
- Browser: WebView
- EasyMDE version: 2.20.0

**Additional context**
N/A

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in Android WebView with EasyMDE 2.20.0, using the reported value(), codemirror.getValue(), and codemirror.save() paths after editing text. Compare each result with the editor contents; done means a button-triggered read consistently returns the latest text.

Written by the indexing model from the issue text.

Assessment

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