* the associated preview pne so that it will be regenerated when
* the user next switches to it.
*/
- $(".richtext_content textarea").change(function () {
+ $(".richtext_container textarea").change(function () {
$(this).parents(".richtext_container").find(".richtext_preview").empty();
});
<div id="<%= id %>_container" class="row richtext_container">
- <div id="<%= id %>_content" class="col-sm-8 mb-3 mb-sm-0 richtext_content">
+ <div id="<%= id %>_content" class="col-sm-8 mb-3 mb-sm-0">
<ul class="nav nav-tabs mb-3" role="tablist">
<li class="nav-item">
<button type="button" class="nav-link active" data-bs-toggle="tab" data-bs-target="#<%= id %>_edit"><%= t(".edit") %></button>