CM in div of SPA only works in iframe?

seems unless the html containing the CM is the root page, it does not work without being in an <iframe>

the editor div shows but is blank (no numbered lines, no ability to type into)

with the prevalence of SPAs these days this could be of issue


I don’t understand what you mean by ‘root page’ here. The library should work in shadow roots.

my bad, this was an issue of SPA div reload appendChild to interpret the embedded script in loaded div.
got it working