I am trying to add stackoverflow text editor into my html file via script tag using documentation guide from https://stackoverflow.design/product/components/editor/#import-via-script-tag but I am getting error:
Error: Uncaught TypeError: Cannot set properties of undefined (setting 'parentContainer') at Ic.setupPluginContainer (app.bundle.js:87:17414)
Code:
<div id="editor-container"></div>
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.5.1/highlight.min.js"></script>
<!-- Include the bundle -->
<script src="./node_modules/@stackoverflow/stacks-editor/dist/app.bundle.js"></script>
<!-- Initialize the editor -->
<script>
new window.stacksEditor.StacksEditor(
document.querySelector("#editor-container"),
"*Your* **markdown** here",
{}
);