From f6af8c9a98ebec94ece2340f94bedeec9afe6f66 Mon Sep 17 00:00:00 2001 From: nudoragon Date: Mon, 18 May 2026 17:23:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=8A=9F=E8=83=BD=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/my-editor.js | 10 +++++----- templates/editor.html | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/static/js/my-editor.js b/static/js/my-editor.js index cd1439c..a435272 100644 --- a/static/js/my-editor.js +++ b/static/js/my-editor.js @@ -465,11 +465,11 @@ } data.slug = SLUG; - // 扁平化處理新檔案檔名 - if (data.file) { - const parts = data.file.split("/"); - data.file = parts[parts.length - 1]; - } + // 保留完整相對路徑,不再扁平化處理檔名,以支援子資料夾 + // if (data.file) { + // const parts = data.file.split("/"); + // data.file = parts[parts.length - 1]; + // } // 如果不是新增頁面(即一般的儲存頁面),且未帶有 HTML 內容,則動態獲取目前 HTML const isNewPage = !!data.startTemplateUrl; diff --git a/templates/editor.html b/templates/editor.html index de87321..f4a09b3 100644 --- a/templates/editor.html +++ b/templates/editor.html @@ -2249,7 +2249,6 @@ Unzip the latest ckeditor release zip from https://github.com/ckeditor/ckeditor4 -