Ver código fonte

Make CKFinder display nicely in the docs.

Maciej Gołaszewski 7 anos atrás
pai
commit
d9aa13a1f9

+ 10 - 0
packages/ckeditor5-ckfinder/docs/_snippets/features/build-ckfinder-source.html

@@ -1 +1,11 @@
 <script src="https://cksource.com/weuy2g4ryt278ywiue/ckfinder.js"></script>
+
+<style>
+	#ckf-modal {
+		z-index: 10101 !important;
+	}
+
+	.ckf-file-preview-root {
+		z-index: 10110 !important;
+	}
+</style>

+ 3 - 1
packages/ckeditor5-ckfinder/docs/_snippets/features/ckfinder-options.js

@@ -22,7 +22,9 @@ ClassicEditor
 				resourceType: 'Images'
 			},
 			// eslint-disable-next-line max-len
-			uploadUrl: 'https://cksource.com/weuy2g4ryt278ywiue/core/connector/php/connector.php?command=QuickUpload&type=Images&responseType=json'
+			uploadUrl: 'https://cksource.com/weuy2g4ryt278ywiue/core/connector/php/connector.php?command=QuickUpload&type=Images&responseType=json',
+			width: 800,
+			height: 600
 		}
 	} )
 	.then( editor => {

+ 3 - 1
packages/ckeditor5-ckfinder/docs/_snippets/features/ckfinder.js

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