fix: Cannot delete first character in heading (#10706)

This commit is contained in:
Tom Moor
2025-11-24 01:50:18 +01:00
committed by GitHub
parent 1be502105c
commit e767ec34db
+2 -2
View File
@@ -221,8 +221,8 @@ export default class Heading extends Node {
container.appendChild(fold);
decorations.push(
Decoration.widget(pos + node.nodeSize - 1, container, {
side: 1,
Decoration.widget(pos + 1, container, {
side: -1,
ignoreSelection: true,
relaxedSide: true,
key: pos.toString(),