Koenig - Fixed _emphasis_ and link text expansions not cancelling

refs https://github.com/TryGhost/Ghost/issues/9505
- the `_` emphasis and link text expansions were toggling the wrong markup on completion
This commit is contained in:
Kevin Ansfield 2018-04-18 10:17:13 +01:00
parent dbfca4fc82
commit 945e8316a7

View File

@ -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');
});
}
}
@ -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');
});
}
}