Interface

ImageInsertConfig (image)

@ckeditor/ckeditor5-image/src/imageinsert

interface protected

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

ClassicEditor
	.create( editorElement, {
		image: {
			insert: {
				... // settings for "insertImage" view goes here
			}
		}
	} )
	.then( ... )
	.catch( ... );

See all editor options.

Filtering

Properties

  • integrations : Array.<String>

    The image insert panel view configuration contains a list of ImageInsert integrations.

    The option accepts string tokens.

    • for predefined integrations, we have 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 component registered in the component factory. If you have a plugin PluginX that registers pluginXButton component, then the integration token in that case should be pluginXButton.

      // Add `insertImageViaUrl`, `openCKFinder` and custom `pluginXButton` integrations.
      const imageInsertConfig = {
      	insert: {
      		integrations: [
      			'insertImageViaUrl',
      			'openCKFinder',
      			'pluginXButton'
      		]
      	}
      };

    Defaults to [ 'insertImageViaUrl' ]