Go to your Modern SharePoint site.
Click 'Edit' on the page.
Click the '+' sign to add a web part.
Choose 'Embed'.
1<!-- Load Materialize CSS -->
2<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" rel="stylesheet" />
3
4<style>
5.video-container iframe {
6 width: 100%;
7 height: 315px;
8 border: none;
9}
10</style>
11
12<div class="container">
13 <h5 class="center-align">Embedded Tetron in Materialize</h5>
14
15 <!-- Tetron Embed -->
16 <div class="card">
17 <div class="card-content">
18 <span class="card-title">Tetron Editor</span>
19 <div class="video-container">
20 <iframe
21 src="http://staging.tetrons.com/editor/dist/editor-host.html"
22 title="Tetron Editor"
23 allowfullscreen
24 frameborder="0"
25 allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
26 referrerpolicy="strict-origin-when-cross-origin">
27 </iframe>
28 </div>
29 </div>
30 </div>
31</div>
Modern SharePoint blocks some scripts and inline JS.
You cannot use <script> tags in Modern SharePoint Embed web parts, so Materialize JS won't work unless in a Classic page or custom SPFx solution.
Only CSS and HTML are reliably supported in the Embed web part.
If your SharePoint is on HTTPS, ensure the Tetron URL also uses HTTPS to avoid mixed content issues.
1<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>