Fire events when CodeMirror Editor is open and closed.

Needed to switch static links back and forth.
Remove CodeMirror tabbed editor.