Opened 17 years ago
Closed 17 years ago
#2755 closed Task (fixed)
Move config from dialogs to config.js
| Reported by: | Artur Formella | Owned by: | Artur Formella |
|---|---|---|---|
| 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

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