How to use the @ckeditor/ckeditor5-upload/tests/_utils/mocks.UploadAdapterMock function in @ckeditor/ckeditor5-upload

To help you get started, we’ve selected a few @ckeditor/ckeditor5-upload examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ckeditor / ckeditor5-image / tests / imageupload / imageuploadui.js View on Github external
fileRepository.createUploadAdapter = loader => {
				return new UploadAdapterMock( loader );
			};
		}
github ckeditor / ckeditor5-image / tests / imageupload / imageuploadediting.js View on Github external
fileRepository.createUploadAdapter = newLoader => {
				loader = newLoader;
				const adapterMock = new UploadAdapterMock( loader );

				adapterMocks.push( adapterMock );

				return adapterMock;
			};
		}
github ckeditor / ckeditor5-image / tests / imageupload / imageuploadprogress.js View on Github external
fileRepository.createUploadAdapter = newLoader => {
					loader = newLoader;
					adapterMock = new UploadAdapterMock( loader );

					return adapterMock;
				};
			} );
github ckeditor / ckeditor5-image / tests / manual / imageupload.js View on Github external
editor.plugins.get( 'FileRepository' ).createUploadAdapter = loader => {
			const adapterMock = new UploadAdapterMock( loader );
			createProgressButton( loader, adapterMock );

			return adapterMock;
		};
	} )
github ckeditor / ckeditor5-image / tests / imageupload / imageuploadcommand.js View on Github external
fileRepository.createUploadAdapter = loader => {
				return new UploadAdapterMock( loader );
			};
		}