Commit 2b29501c authored by Enis Nuredini's avatar Enis Nuredini
Browse files

Merge branch 'codemirror_brave_opera_fix' into 'develop'

CodeMirror not highlighting in Brave and Opera fixed.

See merge request !424
parents e8934a6d 1d425cbc
Pipeline #6988 passed with stage
in 1 minute and 59 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