Skip to content

Commit 9ee8c09

Browse files
committed
Limit onselection changed range when applying block elements.
1 parent 2e987a6 commit 9ee8c09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/formatting/BlockFormatter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ class BlockFormatter(editor: AztecText, val listStyle: ListStyle, val quoteStyle
398398
}
399399

400400
applyBlock(spanToApply, startOfBlock, endOfBlock)
401-
editor.onSelectionChanged(startOfLine, endOfLine)
401+
editor.onSelectionChanged(editor.selectionStart, editor.selectionEnd)
402402
}
403403
}
404404

0 commit comments

Comments
 (0)