mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Fixed error when pressing enter
inside a caption
refs e419e4e99f
- added an optional options param to `addParagraphAfterCard` but was missing a default value meaning the destructuring errored when the param wasn't provided
This commit is contained in:
parent
1dac565dbc
commit
024b27c8dd
@ -680,7 +680,7 @@ export default Component.extend({
|
||||
}
|
||||
},
|
||||
|
||||
addParagraphAfterCard(card, {scrollIntoView = false}) {
|
||||
addParagraphAfterCard(card, {scrollIntoView = false} = {}) {
|
||||
let editor = this.editor;
|
||||
let section = this.getSectionFromCard(card);
|
||||
let collection = section.parent.sections;
|
||||
|
Loading…
Reference in New Issue
Block a user