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 -