From 6f665e7e4b8ea61ce76df9ed2b7216d80b0dc926 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Thu, 25 Mar 2021 12:55:42 -0400 Subject: [PATCH] Fix light / dark mode toggle in WYSIWYG editor --- templates/wysiwyg.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/wysiwyg.tmpl b/templates/wysiwyg.tmpl index 235c590..a1600bc 100644 --- a/templates/wysiwyg.tmpl +++ b/templates/wysiwyg.tmpl @@ -82,7 +82,7 @@ btns[i].src = btns[i].src.replace('_dark@2x.png', '@2x.png'); } } else { - TextnewTheme = 'light'; + newTheme = 'light'; document.body.className = document.body.className.replace(/(?:^|\s)dark(?!\S)/g, newTheme); for (var i=0; i