[Developer Preview] Bug fixes (#16108)

* Renamed languages.json to monaco_languages.json

* Update excludes.txt

* Fixed encoding issue

* Reverted accidently removed file

* push

* push

* push

* Fixing path to monaco_languages.json

* Removing unused file

* Fixing NullReferenceException bug

* Minor fixes

Co-authored-by: Stefan Markovic <stefan@janeasystems.com>
This commit is contained in:
Aaron Junker
2022-02-21 16:10:55 +01:00
committed by GitHub
parent 6b2cde7eb0
commit 4cc74602c1
10 changed files with 43 additions and 28 deletions

View File

@@ -14,7 +14,11 @@
var wrap = ([[PT_WRAP]] == 1) ? true : false;
var base64code = "[[PT_CODE]]";
var code = [atob(base64code)].join('\n');
// Code taken from https://stackoverflow.com/a/30106551/14774889
var code = decodeURIComponent(atob(base64code).split('').map(function(c) {
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
}).join(''));
</script>
<!-- Set browser to Edge-->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
@@ -41,8 +45,8 @@
}
</style>
</head>
<!-- This oncontextmenu disables the browser context menu -->
<body oncontextmenu="return false;">
<body>
<!-- Container for the editor -->
<div id="container"></div>
<!-- Script -->