[FIXED JENKINS-23151, JENKINS-23026] Save CodeMirror editor when it loses focus

* Save CM editor when it loses focus to ensure that test is saved back to textarea
* Turn on again CM editor for shell scripts