refactor codemirror directive to setup it in public section
adjust the codemirror style for admin section