area: corecomplexity: easygood first issueimpact: medium
Metriche repository
- Star
- (23.454 star)
- Metriche merge PR
- (Merge medio 4g 13h) (46 PR mergiate in 30 g)
Descrizione
Affected Packages
core
Version(s)
2.11.5
Bug Description
Calling commands.cut with targetPosition 0 will cause a range exception
Browser Used
Firefox
Code Example URL
No response
Expected Behavior
Cut content should be moved to start of the document
Additional Context (Optional)
Can be fixed by using Math.max(0, newPos - 1) in the command definition
Dependency Updates
- Yes, I've updated all my dependencies.