Interface

ImageUploadPanelConfig (image)

@ckeditor/ckeditor5-image/src/imageupload

interface protected

The configuration of the image upload dropdown panel view. Used by the image upload feature in the @ckeditor/ckeditor5-image package.

ClassicEditor
	.create( editorElement, {
		image: {
			upload: {
				panel: ... // Panel settings go here.
			}
		}
	} )
	.then( ... )
	.catch( ... );

See all editor options.

Filtering

Properties

  • items : Array.<String>

    The list of ImageUpload integrations.

    This option accepts string tokens:

    • For predefined integrations, there are two special strings: insertImageViaUrl and openCKFinder. The former adds the Insert image via URL feature, while the latter adds the built-in CKFinder integration.

    • For custom integrations, each string should be a name of the already registered component. If you have a plugin PluginX that registers the pluginXButton component, then in that case the integration token should be pluginXButton.

      // Add `insertImageViaUrl`, `openCKFinder` and custom `pluginXButton` integrations.
      const imageUploadConfig = {
      	upload: {
      		panel: {
      			items: [
      				'insertImageViaUrl',
      				'openCKFinder',
      				'pluginXButton'
      			]
      		}
      	}
      };

    Defaults to [ 'insertImageViaUrl' ]