diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 81da548..ee353a1 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -149,6 +149,9 @@ if (is_readable($config_file)) { @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' => '', @@ -5176,7 +5179,7 @@ function fm_show_header_login() 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); @@ -5436,7 +5439,7 @@ function fm_show_header_login() $themeEl.val(editor.getTheme()); $(function() { //set default font size in drop down - $fontSizeEl.val(12).change(); + $fontSizeEl.val().change(); }); }