diff --git a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-code.js b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-code.js index 34e621504e..9c18eaa0b5 100644 --- a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-code.js +++ b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-code.js @@ -22,6 +22,7 @@ export default Component.extend({ editCard() {}, saveCard() {}, selectCard() {}, + deselectCard() {}, deleteCard() {}, toolbar: computed('isEditing', function () { diff --git a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-hr.js b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-hr.js index bf155bdf51..6491f5f568 100644 --- a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-hr.js +++ b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-hr.js @@ -3,5 +3,9 @@ import layout from '../templates/components/koenig-card-hr'; export default Component.extend({ layout, - tagName: '' + tagName: '', + + // closure actions + selectCard() {}, + deselectCard() {} }); diff --git a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-html.js b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-html.js index 063c392677..41e13fa376 100644 --- a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-html.js +++ b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-html.js @@ -15,9 +15,10 @@ export default Component.extend({ headerOffset: 0, // closure actions + selectCard() {}, + deselectCard() {}, editCard() {}, saveCard() {}, - selectCard() {}, deleteCard() {}, toolbar: computed('isEditing', function () { diff --git a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-image.js b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-image.js index cc64bc3829..726fe346d3 100644 --- a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-image.js +++ b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-image.js @@ -24,6 +24,7 @@ export default Component.extend({ // closure actions selectCard() {}, + deselectCard() {}, editCard() {}, saveCard() {}, moveCursorToNextSection() {}, diff --git a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-markdown.js b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-markdown.js index 78fdf7ccc9..7f6de72c12 100644 --- a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-markdown.js +++ b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-markdown.js @@ -25,6 +25,7 @@ export default Component.extend({ editCard() {}, saveCard() {}, selectCard() {}, + deselectCard() {}, deleteCard() {}, renderedMarkdown: computed('payload.markdown', function () {