diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 400f3833..a8389af2 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -149,6 +149,9 @@ @include($config_file); } +define('ACE_FONTSIZE', $ace_fontsize ?? 12); +define('ACE_THEME', $ace_theme ?? 'textmate'); + // External CDN resources that can be used in the HTML (replace for GDPR compliance) $external = array( 'css-bootstrap' => '', @@ -5164,7 +5167,7 @@ function confirmDailog(e, id = 0, title = "Action", content = "", action = null) path: "ace/mode/", inline: true }); - //editor.setTheme("ace/theme/twilight"); // Dark Theme + editor.setTheme("ace/theme/"); // Dark Theme editor.setShowPrintMargin(false); // Hide the vertical ruler function ace_commend(cmd) { editor.commands.exec(cmd, editor); @@ -5424,7 +5427,7 @@ function renderThemeMode() { $themeEl.val(editor.getTheme()); $(function() { //set default font size in drop down - $fontSizeEl.val(12).change(); + $fontSizeEl.val().change(); }); }