Commit 1d425cbc authored by enured's avatar enured
Browse files

CodeMirror not highlighting in Brave and Opera fixed.

parent 1e717dc3
Pipeline #6987 passed with stage
in 1 minute and 58 seconds
......@@ -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%');
}
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment