Page 1 of 1

Summernote & Summernote Air error with JS on page

Posted: Thu Sep 10, 2020 10:31 pm
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.