Fixes for multiple codemirror editors