Răsfoiți Sursa

[svn r21917] FS#2867 - The FCKEditor, configuration: Modifications about 'ToolbarCanCollapse' and 'ToolbarStartExpanded' options.

Ivan Tcholakov 15 ani în urmă
părinte
comite
1699278f44

+ 0 - 15
main/inc/lib/fckeditor/fckeditor.php

@@ -375,21 +375,6 @@ class FCKeditor
 						}
 						}
 					}
 					}
 					break;
 					break;
-				case 'ToolbarCanCollapse':
-				case 'ToolbarStartExpanded':
-					if (!empty($toolbar_set) && $toolbar_set != 'Default') {
-						if (is_array($value)) {
-							foreach ($value as $toolbar_name => $toolbar_data) {
-								if ($toolbar_set == $toolbar_name) {		
-									if (!isset($this->Config[$key][$toolbar_name])) {
-										$this->Config[$key] = (boolean) $toolbar_data;
-									}
-									break;
-								}
-							}
-						}
-					}
-					break;
 				case 'ToolbarLocation':
 				case 'ToolbarLocation':
 					if (!empty($toolbar_set) && $toolbar_set != 'Default') {
 					if (!empty($toolbar_set) && $toolbar_set != 'Default') {
 						if (is_array($value)) {
 						if (is_array($value)) {

+ 14 - 4
main/inc/lib/fckeditor/toolbars/introduction.php

@@ -23,10 +23,20 @@ $config['ToolbarSets']['IntroductionMaximized'] = array(
 );
 );
 */
 */
 
 
+// Sets whether the toolbar can be collapsed/expanded or not.
+// Possible values: true , false
+//$config['ToolbarCanCollapse'] = true;
+
+// Sets how the editor's toolbar should start - expanded or collapsed.
+// Possible values: true , false
+//$config['ToolbarStartExpanded'] = true;
+
+// A setting for blocking copy/paste functions of the editor.
+// This setting activates on leaners only. For users with other statuses there is no blocking copy/paste.
+// Possible values: true , false
+//$config['BlockCopyPaste'] = false;
+
 // Here new width and height of the editor may be set.
 // Here new width and height of the editor may be set.
+// Possible values, examples: 300 , '250' , '100%' , ...
 //$config['Width'] = '100%';
 //$config['Width'] = '100%';
 //$config['Height'] = '300';
 //$config['Height'] = '300';
-
-// This setting activates on leaners only.
-// For users with other statuses there is no blocking copy/paste.
-//$config['BlockCopyPaste'] = false;