From: Anton Khorev Date: Thu, 8 Aug 2024 00:20:57 +0000 (+0300) Subject: Remove .richtext_content css class X-Git-Tag: live~312^2~7 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6ebf98255caf2f9380bdef0206cd90188c0f220a Remove .richtext_content css class --- 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 @@
-
+