Modern CEWP 1.0.0.7 released
- This topic has 0 replies, 1 voice, and was last updated 4 days, 2 hours ago by .
Viewing 0 reply threads
Viewing 0 reply threads
- You must be logged in to reply to this topic.
Home › Forums › Modern CEWP › Modern CEWP 1.0.0.7 released
Tagged: Modern CEWP
A new version of the Modern CEWP is now available. It fixes a few issues with how scripts and styles are loaded, and adds warnings for code that SharePoint’s Content Security Policy (CSP) blocks.
Download: https://github.com/SPJS/ModernCEWP/releases/tag/v1.0.0.7
Upload modern-cewp.sppkg to your App Catalog to replace the previous version. From this version on, you can see which version you’re running in the web part when the page is in edit mode.
<link rel="stylesheet">) in linked HTML files are now loaded, and relative paths to scripts and stylesheets are resolved against the HTML file.<script> blocks are no longer run as JavaScript. They are kept in the page so your code can read them.<button onclick="doSomething()"> or javascript: links. SharePoint blocks these, so attach the handler from a script instead:
document.getElementById("myButton").addEventListener("click", doSomething);
$ (only if $ is not already defined).Let me know here in the forum if you run into any problems.
Alexander