* code for editor unit test.

This commit is contained in:
wangyidong
2023-03-07 15:02:29 +08:00
parent f42686f080
commit 8f92237880
19 changed files with 741 additions and 15 deletions
+2
View File
@@ -114,6 +114,8 @@ class editor extends control
$fileName = basename($filePath);
if(strpos($fileName, '.') !== false) $extension = substr($fileName, strpos($fileName, '.') + 1);
if(strtolower($action) == 'newjs') $extension = 'js';
if(strtolower($action) == 'newcss') $extension = 'css';
}
$this->view->fileContent = $fileContent;
$this->view->filePath = $filePath;