diff --git a/CHANGELOG b/CHANGELOG
index f7a8675d8..88adfe61c 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,8 @@
CHANGELOG Roundcube Webmail
===========================
+- Elastic: Fix bug where it was possible to switch editor mode when 'htmleditor' was in 'dont_override' (#7143)
+
RELEASE 1.4.2
-------------
- Add support for PHPUnit 6 and 7 (#6870)
diff --git a/skins/elastic/styles/widgets/editor.less b/skins/elastic/styles/widgets/editor.less
index d2f536b86..5e602c13f 100644
--- a/skins/elastic/styles/widgets/editor.less
+++ b/skins/elastic/styles/widgets/editor.less
@@ -27,6 +27,11 @@
.mce-panel {
border-color: @color-input-border;
}
+
+ &.focused {
+ border-color: @color-input-border-focus !important;
+ box-shadow: 0 0 0 .2rem @color-input-border-focus-shadow !important;
+ }
}
.mce-top-part::before,
@@ -904,11 +909,6 @@ html.touch .mce-grid td {
#composebody_ifr {
min-height: 30em;
}
-
- & > .mce-tinymce.focused {
- border-color: @color-input-border-focus;
- box-shadow: 0 0 0 .2rem @color-input-border-focus-shadow !important;
- }
}
diff --git a/skins/elastic/templates/compose.html b/skins/elastic/templates/compose.html
index 34f0f9983..2accc102c 100644
--- a/skins/elastic/templates/compose.html
+++ b/skins/elastic/templates/compose.html
@@ -60,14 +60,6 @@