Fixed setting lhs/rhs using CodeMirror's setValue.