Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Koenig - Fixed _emphasis_ and link text expansions not cancelling
Browse files Browse the repository at this point in the history
refs TryGhost/Ghost#9505
- the `_` emphasis and link text expansions were toggling the wrong markup on completion
  • Loading branch information
kevinansfield committed Apr 18, 2018
1 parent cd5541e commit 2f5f3ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/koenig-editor/addon/options/text-expansions.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default function (editor) {

// must be scheduled so that the toggle isn't reset automatically
run.schedule('actions', this, function () {
editor.toggleMarkup('code');
editor.toggleMarkup('em');
});
}
}
Expand Down Expand Up @@ -251,7 +251,7 @@ export default function (editor) {

// must be scheduled so that the toggle isn't reset automatically
run.schedule('actions', this, function () {
editor.toggleMarkup('code');
editor.toggleMarkup('a');
});
}
}
Expand Down

0 comments on commit 2f5f3ce

Please sign in to comment.