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:
parent
0162df47b3
commit
a89cc44199
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue