From b8070e48d7c4c58e53858e68449be801821e467d Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 19 Jul 2024 00:09:06 -0400 Subject: [PATCH] membershipworks: Simplify WordPress post generator clipboard JS Firefox supports the newer Clipboard API now, and WordPress actually seems to behave better with just `text/plain`. `text/html` was causing annoying behaviour by wrapping the raw html with `html` and `body` tags, which confused WordPress. --- .../membershipworks/upcoming_events.dj.html | 36 +++++-------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/membershipworks/templates/membershipworks/upcoming_events.dj.html b/membershipworks/templates/membershipworks/upcoming_events.dj.html index 8716707..7524215 100644 --- a/membershipworks/templates/membershipworks/upcoming_events.dj.html +++ b/membershipworks/templates/membershipworks/upcoming_events.dj.html @@ -139,34 +139,14 @@ {% block script %}