From 6ebf98255caf2f9380bdef0206cd90188c0f220a Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 8 Aug 2024 03:20:57 +0300 Subject: [PATCH] Remove .richtext_content css class --- app/assets/javascripts/richtext.js | 2 +- app/views/shared/_richtext_field.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/richtext.js b/app/assets/javascripts/richtext.js index 7da465d29..5d0f956b3 100644 --- a/app/assets/javascripts/richtext.js +++ b/app/assets/javascripts/richtext.js @@ -4,7 +4,7 @@ $(document).ready(function () { * 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(); }); diff --git a/app/views/shared/_richtext_field.html.erb b/app/views/shared/_richtext_field.html.erb index 9934ef63b..b8b48f6c7 100644 --- a/app/views/shared/_richtext_field.html.erb +++ b/app/views/shared/_richtext_field.html.erb @@ -1,5 +1,5 @@
-
+