Great! Thanks for following my suggestion.
I saw you put the wpcm.editors.push(editor) in the initialize and not in the wpcm.codemirrorInit. Unfortunately if you use blocks in WP it doesn’t call that function so I had yo write in the
wpcm.codemirrorInit
after
wpcm.autoLoadTheme(editor, setting.theme);
the line
wpcm.editors.push(editor);
But maybe there’s another way to.