Function widget is now based on CodeMirror