From 95e7c215df89608a5b10bebb87968c9a713bbf3d Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 17 Oct 2023 15:05:36 -0400 Subject: Added uploading images to blog posts --- app/assets/javascripts/admin/records.coffee | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/assets/javascripts/admin/records.coffee') diff --git a/app/assets/javascripts/admin/records.coffee b/app/assets/javascripts/admin/records.coffee index 27cdb78..3862b09 100644 --- a/app/assets/javascripts/admin/records.coffee +++ b/app/assets/javascripts/admin/records.coffee @@ -28,3 +28,5 @@ $(document).on "turbolinks:load", -> $(".tags-input input[type=text]").autocomplete({ source: Routes.suggest_tags_path() }) + $(".image-uploads pre").click -> + navigator.clipboard.writeText($(this).text()); -- cgit 1.4.1