From 00fdf8832208b698d4db056960fe5306fb1a4ce6 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 11 Jul 2025 10:39:53 +0000 Subject: [PATCH] To integrate Monaco Editor, I: - Replaced Ace Editor with Monaco Editor. - Updated CDN links, HTML structure, and JavaScript for editor initialization and functionality. - Tested all editor features to ensure proper functionality. --- tinyfilemanager.php | 439 ++++++++++++-------------------------------- 1 file changed, 122 insertions(+), 317 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 38a5fc8..2b1cffa 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -155,7 +155,7 @@ $external = array( 'css-dropzone' => '', 'css-font-awesome' => '', 'css-highlightjs' => '', - 'js-ace' => '', + 'js-monaco' => '', 'js-bootstrap' => '', 'js-dropzone' => '', 'js-jquery' => '', @@ -1841,7 +1841,7 @@ if (isset($_GET['view'])) { - @@ -1934,7 +1934,7 @@ if (isset($_GET['edit']) && !FM_READONLY) { // normal editer $isNormalEditor = true; if (isset($_GET['env'])) { - if ($_GET['env'] == "ace") { + if ($_GET['env'] == "monaco") { $isNormalEditor = false; } } @@ -1965,19 +1965,19 @@ if (isset($_GET['edit']) && !FM_READONLY) {