},
          contentChanged: function () {
            const editor = this
            document.getElementById('preview').innerText = editor.codeBeautifier.run(editor.html.get())
          }
        }
      })
    })()
  </script>
</body>

</html>