diff --git a/addon/components/content-kit-editor/component.js b/addon/components/content-kit-editor/component.js index 1c1c333..261a3df 100644 --- a/addon/components/content-kit-editor/component.js +++ b/addon/components/content-kit-editor/component.js @@ -225,7 +225,8 @@ export default Component.extend({ if (editMode) { editor.editCard(card); } - postEditor.insertSectionBefore(editor.post.sections, card, section); + let nextSection = section && section.next; + postEditor.insertSectionBefore(editor.post.sections, card, nextSection); if (section && section.isBlank) { postEditor.removeSection(section); }