diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2022-05-06 12:06:54 +0300 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2022-05-06 12:06:54 +0300 |
commit | 302de75134f159c6b44e1d97e149a8989f852ea1 (patch) | |
tree | 0624671486afa59594f738c3896b9ecb02770403 /src | |
parent | 3f0e5dd7d21e822656c0b94a26334558115d7ef1 (diff) |
Fix html editor being always selected
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/Composer.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Composer.vue b/src/components/Composer.vue index 2caa1e112..e1ee1d9dd 100644 --- a/src/components/Composer.vue +++ b/src/components/Composer.vue @@ -753,8 +753,8 @@ export default { } else { this.selectedAlias = this.aliases[0] } - // only overwrite editormode if no body provided - if (previous === NO_ALIAS_SET && !this.body) { + // Only overwrite editormode if body is empty + if (previous === NO_ALIAS_SET && (!this.body || this.body.value === '')) { this.editorMode = this.selectedAlias.editorMode } }, |