From 88e319f89f9d235120e659ae7cee4524195b9171 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Tue, 30 Apr 2019 17:53:19 +0200 Subject: [PATCH] Fixed invisible caret in captions for cards with no style specified --- .../lib/koenig-editor/addon/components/koenig-card.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ghost/admin/lib/koenig-editor/addon/components/koenig-card.js b/ghost/admin/lib/koenig-editor/addon/components/koenig-card.js index b540090d03..a3d71d4bd7 100644 --- a/ghost/admin/lib/koenig-editor/addon/components/koenig-card.js +++ b/ghost/admin/lib/koenig-editor/addon/components/koenig-card.js @@ -81,12 +81,9 @@ export default Component.extend({ let isEditing = this.isEditing; let hasEditMode = this.hasEditMode; - if (this.style !== this._lastSstyle) { - // TODO: replace with Spirit classes - let baseStyles = 'cursor: default; caret-color: auto;'; - this.set('_style', htmlSafe(`${baseStyles} ${this.style}`)); - } - this._lastStyle = this.style; + // TODO: replace with Spirit classes + let baseStyles = 'cursor: default; caret-color: auto;'; + this.set('_style', htmlSafe(`${baseStyles} ${this.style}`)); if (isSelected !== this._lastIsSelected) { if (isSelected) {