Closed blink1073 closed 8 years ago
See https://codemirror.net/demo/runmode.html for an example - generates innerHTML
on a node:
import "codemirror/addon/runmode/runmode"
CodeMirror.runMode(myText, myMode, myNode);
This should not be done automatically by the code cell, but available as render/unrender
methods that can be used by a single-user notebook or a console, for example.
👍
I agree. In the console, this is a no-brainer optimization.
CodeMirror measures on window resizes, so having as few around as possible is good.