Ticket #2755 (closed Task: fixed)

Opened 5 years ago

Last modified 5 years ago

Move config from dialogs to config.js

Reported by: arczi Owned by: arczi
Priority: Normal Milestone: CKEditor 3.0
Component: UI : Dialogs Version:
Keywords: Cc:

Description

Move config vars from dialogs to config.js. It can be also connected it with #2339, #2301 and #1970

Idea:

Index: config.js
===================================================================
--- config.js	(revision 2857)
+++ config.js	(working copy)
@@ -226,15 +226,53 @@
 	 */
 	magnetDistance : 20,
 
-	/**
-	 * Show Upload tab in the Image dialog.
-	 * @type Boolean
-	 * @default true
-	 * @example
-	 * config.imageUpload : true;
-	 */
-	imageUpload : true,
+	pluginConfig :
+	{
+		image :		//Image Dialog and Image button Dialog.
+		{
+			/**
+			 * Show Upload tab.
+			 * @type Boolean
+			 * @default true
+			 */
+			upload : true,
 
+			/**
+			 * Upload action attribute.
+			 * @type URL
+			 */
+			uploadAction : 'nowhere.php';
+
+			/**
+			 * Show Image preview in the Image Dialog.
+			 * @type Boolean
+			 * @default true
+			 */
+			showPreview : true,
+
+			removeLinkByEmptyURL : true
+
+			/**
+			 * Startup values
+			 * @type Text
+			 * @default ''
+			 */
+			defaultValues : 
+			{
+				border : '',
+				hSpace : '',
+				vSpace : '',
+				classes : '',
+				align : '',
+				style : '',
+			}
+		},
+		link :
+		{
+			removeLinkByEmptyURL : false
+		}
+	},
+
 	/**
 	 * List of smiley images displayed in the Smiley dialog.
 	 * @type Array

Change History

comment:1 Changed 5 years ago by arczi

  • Status changed from new to closed
  • Resolution set to fixed

Fixed with [2883], [2874], [2873] and [2895].

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy