diff --git a/module/editor/control.php b/module/editor/control.php index d67e302959..b8d01dce4b 100644 --- a/module/editor/control.php +++ b/module/editor/control.php @@ -38,7 +38,7 @@ class editor extends control { $moduleFiles = $this->editor->getModuleFiles($moduleDir); $this->view->module = $moduleDir; - $this->view->tree = $this->editor->printTree($moduleFiles); + $this->view->tree = $this->editor->printTree($moduleFiles); $this->display(); } @@ -54,7 +54,8 @@ class editor extends control public function edit($filePath = '', $action = '', $isExtends = '') { $this->view->safeFilePath = $filePath; - $fileContent = ''; + $fileContent = ''; + $extension = 'php'; if($filePath) { $filePath = helper::safe64Decode($filePath); @@ -98,10 +99,14 @@ class editor extends control { $fileContent = "view->fileContent = $fileContent; - $this->view->filePath = $filePath; - $this->view->action = $action; + $this->view->fileContent = $fileContent; + $this->view->filePath = $filePath; + $this->view->fileExtension = $extension; + $this->view->action = $action; $this->display(); } diff --git a/module/editor/css/edit.css b/module/editor/css/edit.css index 93e062ed52..a4b9b13cee 100644 --- a/module/editor/css/edit.css +++ b/module/editor/css/edit.css @@ -1,2 +1,5 @@ body{padding-bottom:0px;background-color:#fff;} #showContentEditor, #fileContentEditor {border:1px solid #ddd;} +.main-content {padding:0px;} +.checkbox-primary {display:inline-block; padding-left:12px;} +.checkbox-primary label {padding-left:12px;} diff --git a/module/editor/view/edit.html.php b/module/editor/view/edit.html.php index ae61933d82..b53615b56b 100644 --- a/module/editor/view/edit.html.php +++ b/module/editor/view/edit.html.php @@ -26,7 +26,6 @@ js::import($jsRoot . 'monaco-editor/min/vs/loader.js');
+