diff --git a/lib/koenig-editor/addon/options/key-commands.js b/lib/koenig-editor/addon/options/key-commands.js index de878f1e6b..5bf615f256 100644 --- a/lib/koenig-editor/addon/options/key-commands.js +++ b/lib/koenig-editor/addon/options/key-commands.js @@ -33,6 +33,12 @@ export const DEFAULT_KEY_COMMANDS = [{ return; } + // if a card is selected, move the cursor to the end of the card so that + // Enter consistently adds a new paragraph after the card + if (isCollapsed && section.isCardSection) { + koenig.moveCaretToTailOfSection(section, true); + } + return false; } }, {