remove javascript error log trying to load hljs from non config pages

This commit is contained in:
RaidMax 2021-11-02 18:02:04 -05:00
parent f7897763e3
commit f99fdac4b0
2 changed files with 8 additions and 3 deletions

View File

@ -50,9 +50,15 @@
{
<!-- I don't want to include the entire highlight js into the bundle for this 1 page -->
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/highlight.min.js"></script>
<script>
if (hljs !== undefined) {
hljs.highlightAll();
}
</script>
<environment include="Development">
<script type="text/javascript" src="~/js/configuration.js"></script>
</environment>
}
</div>

View File

@ -73,8 +73,7 @@
return false;
});
hljs.highlightAll();
$('.edit-file' ).on('keydown .editable', function(e){
if(e.keyCode === 9) {
document.execCommand ( 'styleWithCSS', true, null )