dramatically increase performance by wrapping the codemirror changes in ...

...a single operation

Signed-off-by: Chris Granger <ibdknox@gmail.com>