You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
Bug: cm.setValue("") over inclusive mark results in broken editor #5974
Activity
Make sure the cantEdit flag is reset when setValue is called
thomasjm commentedon Aug 18, 2019
Thanks!
thomasjm commentedon Aug 18, 2019
@marijnh I just tested with
replaceRangeinstead ofsetValueand found the issue still exists in that case. Here's an updated pen:https://codepen.io/thomasjm/pen/QWLEmoY?editors=0010
Should I open a new issue for this one?
marijnh commentedon Aug 19, 2019
Good point. Attached patch moves the fix to a more appropriate place.
Properly detect changes that should reset cantEdit flag
thomasjm commentedon Aug 22, 2019
Looks good, thanks again!
Properly detect changes that should reset cantEdit flag
Make sure the cantEdit flag is reset when setValue is called
Properly detect changes that should reset cantEdit flag
Update from master (#1)
Make sure the cantEdit flag is reset when setValue is called