Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { CSSEditor } from "@hpcc-js/codemirror";
new CSSEditor()
.css(`\
body {
margin: 0;
padding: 15px;
}
#target {
position: relative;
width: 100%;
height: calc(100vh - 32px);
border: 1px solid #ed1c24;
}
`)
.target("target")
.render()
;