diff --git a/app/assets/javascripts/admin/components/email-styles-editor.js.es6 b/app/assets/javascripts/admin/components/email-styles-editor.js.es6 index 75811ec41c1..c0b6c732e98 100644 --- a/app/assets/javascripts/admin/components/email-styles-editor.js.es6 +++ b/app/assets/javascripts/admin/components/email-styles-editor.js.es6 @@ -4,6 +4,11 @@ import computed from "ember-addons/ember-computed-decorators"; export default Component.extend({ editorId: Ember.computed.reads("fieldName"), + @computed("fieldName") + currentEditorMode(fieldName) { + return fieldName === "css" ? "scss" : fieldName; + }, + @computed("fieldName", "styles.html", "styles.css") resetDisabled(fieldName) { return ( diff --git a/app/assets/javascripts/admin/templates/components/email-styles-editor.hbs b/app/assets/javascripts/admin/templates/components/email-styles-editor.hbs index 883149644d2..e03feb7cb7b 100644 --- a/app/assets/javascripts/admin/templates/components/email-styles-editor.hbs +++ b/app/assets/javascripts/admin/templates/components/email-styles-editor.hbs @@ -9,7 +9,7 @@ -{{ace-editor content=editorContents mode=fieldName editorId=editorId}} +{{ace-editor content=editorContents mode=currentEditorMode editorId=editorId}}