Skip to content
Snippets Groups Projects

CodeMirror not highlighting in Brave and Opera fixed.

Merged Enis Nuredini requested to merge codemirror_brave_opera_fix into develop
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -93,7 +93,7 @@ $(document).ready(function(){
$(formContent[0]).removeAttr("class");
$(formContent[0]).addClass("externWindow");
var idNameForWindow = $(formContent[0]).attr('id');
htmlContent = $("head").html() + $(formContent)[0].outerHTML;
htmlContent = '<!DOCTYPE html>'+$("head").html() + $(formContent)[0].outerHTML;
newWindow(idNameForWindow);
}
@@ -163,6 +163,7 @@ $(document).ready(function(){
// This added class is needed to not fire the script more than once
$(this).addClass("cm-done");
// For the extern window we use the whole place to show CodeMirror
$(externWindow).css('height', '100%');
$(this).next().css('height','100%');
}
);
Loading