Update codemirror editor to properly use .text() instead of .html()