Loading
×Sorry to interrupt
CSS Error
Aura Component

Insert Image Button

  • Button to insert an inline image in lightning:inputRichText. This component requires API version 43.0 and later.

    Descriptor

    lightning:insertImageButton

    Targets

    Lightning Experience, Experience Builder Sites, Lightning Out / Visualforce, Standalone Lightning App

A lightning:insertImageButton component adds an image button to the toolbar of a rich text editor. The button is used to upload an image and insert it inline. The component can only be used as a child component within the lightning:inputRichText component.

Note: The image is visible to all org users by default. See Restricting Access to Uploaded Images in the lightning:inputRichText documentation.

Here's an example that adds the image button to the rich text editor's toolbar.

<aura:component> <lightning:inputRichText value="<b>HELLO</b>"> <lightning:insertImageButton/> </lightning:inputRichText> </aura:component> 
Documentation
Specification