Closed justin-ms closed 7 months ago
const styleTheme = EditorView.baseTheme({
"&.cm-editor.cm-focused": {
outline: "0 solid orange"
}
});
export default function App() {
return (
<div>
<CodeMirror
value="console.log('hello world!');"
height="200px"
extensions={[styleTheme, javascript({ jsx: true })]}
onChange={(value, viewUpdate) => {
console.log("value:", value);
}}
/>
</div>
);
}
Thank you @jaywcjlove!
See top of image attached. This dotted line appears at the top and bottom of my editor upon focus.