소스 검색

[svn r21988] FS#2867 - The online editor: Adding the previous idea about EditorAreaCSS which was in myconfig.js. It does not look well, so it is commented for now.

Ivan Tcholakov 15 년 전
부모
커밋
5add263d09
1개의 변경된 파일11개의 추가작업 그리고 4개의 파일을 삭제
  1. 11 4
      main/inc/lib/fckeditor/fckeditor.php

+ 11 - 4
main/inc/lib/fckeditor/fckeditor.php

@@ -403,7 +403,7 @@ class FCKeditor
 	private function & get_default_configuration() {
 		return array_merge(
 			self::get_javascript_custom_configuration_file(),
-			self::get_css_configuration_paths(),
+			self::get_css_configuration(),
 			self::get_editor_language(),
 			$this->get_repository_configuration(),
 			self::get_media_configuration(),
@@ -421,12 +421,19 @@ class FCKeditor
 	}
 
 	/**
-	 * This method returns CSS-related configuration data (paths to style files).
+	 * This method returns CSS-related configuration data that has been determined by the system.
 	 * @return array
 	 */
-	private function & get_css_configuration_paths() {
-		// CSS should come from the system.
+	private function & get_css_configuration() {
 		$config['EditorAreaCSS'] = api_get_path(REL_PATH).'main/css/'.api_get_setting('stylesheets').'/default.css';
+		/*
+		if (file_exists(api_get_path(SYS_PATH).'main/css/'.api_get_setting('stylesheets').'/course.css')) {
+			$config['EditorAreaCSS'] = api_get_path(REL_PATH).'main/css/'.api_get_setting('stylesheets').'/course.css';
+		} else {
+			$config['EditorAreaCSS'] = api_get_path(REL_PATH).'main/css/public_admin/course.css';
+		}
+		*/
+
 		$config['ToolbarComboPreviewCSS'] = $config['EditorAreaCSS'];
 		return $config;
 	}