Răsfoiți Sursa

Fix CKFinder configuration options in the docs.

Maciej Gołaszewski 7 ani în urmă
părinte
comite
14dec72788

+ 4 - 5
packages/ckeditor5-ckfinder/docs/_snippets/features/ckfinder-options.js

@@ -17,14 +17,13 @@ ClassicEditor
 			viewportTopOffset: 100
 		},
 		ckfinder: {
-			openerMethod: 'popup',
+			// eslint-disable-next-line max-len
+			uploadUrl: 'https://cksource.com/weuy2g4ryt278ywiue/core/connector/php/connector.php?command=QuickUpload&type=Images&responseType=json',
 			options: {
+				height: 600,
+				width: 800,
 				resourceType: 'Images'
 			},
-			// eslint-disable-next-line max-len
-			uploadUrl: 'https://cksource.com/weuy2g4ryt278ywiue/core/connector/php/connector.php?command=QuickUpload&type=Images&responseType=json',
-			width: 800,
-			height: 600
 		}
 	} )
 	.then( editor => {

+ 4 - 2
packages/ckeditor5-ckfinder/docs/_snippets/features/ckfinder.js

@@ -19,8 +19,10 @@ ClassicEditor
 		ckfinder: {
 			// eslint-disable-next-line max-len
 			uploadUrl: 'https://cksource.com/weuy2g4ryt278ywiue/core/connector/php/connector.php?command=QuickUpload&type=Files&responseType=json',
-			width: 800,
-			height: 600
+			options: {
+				height: 600,
+				width: 800
+			}
 		}
 	} )
 	.then( editor => {