Przeglądaj źródła

Docs: Fixed code sample.

Piotrek Koszuliński 7 lat temu
rodzic
commit
e6d32a6290

+ 7 - 2
packages/ckeditor5-easy-image/docs/features/easy-image.md

@@ -121,8 +121,13 @@ import EasyImage from '@ckeditor/ckeditor5-easy-image/src/easyimage';
 ClassicEditor
 	.create( document.querySelector( '#editor' ), {
 		plugins: [ EasyImage, ... ],
-		toolbar: [ 'imageUpload' ... ], // Depending on your preference.
-		cloudServices: // feature configuration
+		toolbar: [ 'imageUpload', ... ],
+
+		// Configure the endpoint. See the "Configuration" section above.
+		cloudServices: {
+			tokenUrl: 'https://example.com/cs-token-endpoint',
+			uploadUrl: 'https://your-organization-id.cke-cs.com/easyimage/upload/'
+		}
 	} )
 	.then( ... )
 	.catch( ... );