diff --git a/api/js/etemplate/et2_widget_htmlarea.js b/api/js/etemplate/et2_widget_htmlarea.js
index f7d867e159..7b271e5b66 100644
--- a/api/js/etemplate/et2_widget_htmlarea.js
+++ b/api/js/etemplate/et2_widget_htmlarea.js
@@ -93,6 +93,7 @@ var et2_htmlarea = /** @class */ (function (_super) {
resize: false,
height: this.options.height,
width: this.options.width,
+ end_container_on_empty_block: true,
mobile: {
theme: 'silver'
},
diff --git a/api/js/etemplate/et2_widget_htmlarea.ts b/api/js/etemplate/et2_widget_htmlarea.ts
index 77a466ef6b..ccede69fa1 100644
--- a/api/js/etemplate/et2_widget_htmlarea.ts
+++ b/api/js/etemplate/et2_widget_htmlarea.ts
@@ -224,6 +224,7 @@ export class et2_htmlarea extends et2_editableWidget implements et2_IResizeable
resize: false,
height: this.options.height,
width: this.options.width,
+ end_container_on_empty_block: true,
mobile: {
theme: 'silver'
},