mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Koenig - Fix divider card text expansion
no issue - re-org of the text-expansions code meant that the smart hyphens expansion was being picked up before the divider card expansion and blocking it
This commit is contained in:
parent
fe13a46273
commit
82dbf972a9
@ -377,9 +377,6 @@ function registerInlineMarkdownTextExpansions(editor) {
|
||||
}
|
||||
|
||||
export default function (editor, koenig) {
|
||||
/* inline markdown -------------------------------------------------------*/
|
||||
registerInlineMarkdownTextExpansions(editor);
|
||||
|
||||
/* block level markdown ------------------------------------------------- */
|
||||
|
||||
editor.unregisterTextInputHandler('heading');
|
||||
@ -491,6 +488,12 @@ export default function (editor, koenig) {
|
||||
koenig.send('replaceWithCardSection', 'code', section.toRange());
|
||||
}
|
||||
});
|
||||
|
||||
/* inline markdown -------------------------------------------------------*/
|
||||
|
||||
// must come after block expansions so that the smart hyphens expansion
|
||||
// doesn't break the divider card expansion
|
||||
registerInlineMarkdownTextExpansions(editor);
|
||||
}
|
||||
|
||||
// TODO: reduce duplication
|
||||
|
Loading…
Reference in New Issue
Block a user