Summernote & Summernote Air error with JS on page

Post Reply
jbwonderadmin
Posts: 12
Joined: Sun Jul 12, 2020 4:59 pm

Summernote & Summernote Air error with JS on page

Post by jbwonderadmin »

I installed the Summernote editor and (while logged in as an editor) the page immediately blanked. I determined that it was due to a snippet of JS I included in my footer. Just a date check for a copyright notice:

Code: Select all

Copyright © 2017-<script>var year=new Date().getFullYear();if(year>2020)document.write(year);else document.write("2020");</script><noscript>2020</noscript> JBBdude</div>
I uninstalled Summernote manually by deleting the plugin directory, and the site returned. I tried the same with Summernote Air, but it had the same issue.

I used Summernote with WonderCMS 2.7.0 and the same JS snippet. I never had this issue then.

Post Reply