diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2022-05-06 15:25:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 15:25:53 +0300 |
commit | 01c5a971d1375bf8384fd983d528978ebb514f81 (patch) | |
tree | ca8d5c3e7670786dc2b61a2150fbc0f6e22ae7d5 /src | |
parent | c3d3ef60663dfd1f0fc98fa5e544dc85095ce489 (diff) | |
parent | 302de75134f159c6b44e1d97e149a8989f852ea1 (diff) |
Merge pull request #6375 from nextcloud/fix/6264/forced-html-editor
Fix html editor being always selected
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 c962df8a7..0bfa00c75 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 } }, |