The following code is not working even after the required JS files are loaded. There is no error thrown. I'm doing this because the codemirror codepane does not directly load the code when there are tabs present in a page. Any fix?
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
console.log("Tab Shown");
$('.CodeMirror').each(function (i, el) {
el.CodeMirror.refresh();
});
});