0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed backspace not combining sections if first section is a special markup

refs https://github.com/TryGhost/Ghost/issues/10717#issuecomment-487557026
- avoid triggering special markup delete behaviour when cursor is at the beginning of a section
This commit is contained in:
Kevin Ansfield 2019-04-29 14:25:59 +02:00
parent 0162df47b3
commit a89cc44199

View file

@ -178,7 +178,7 @@ export const DEFAULT_KEY_COMMANDS = [{
// if the markup about to be deleted is a special format (code, strike)
// then undo the text expansion to allow it to be extended
if (isCollapsed && marker) {
if (isCollapsed && marker && offset !== 0) {
let specialMarkupTagNames = Object.keys(SPECIAL_MARKUPS);
let hasReversed = false;
specialMarkupTagNames.forEach((tagName) => {