function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mk450Mk450 

Lightning rich text field - Image tooltip

Hi,
we have client requirement as below:
  1. We have some rich text area fields on one custom object.
  2. We have used below part of code to show the rich text area field with image button on lighting components as well as on community in future.
    <lightning:inputRichText variant="bottom-toolbar" value="{!v.activitiySelected.DiamensionBy_DescRichText__c}" >
                               <lightning:insertImageButton/>
                   </lightning:inputRichText>
  1. We stucked at below requirement:
        When user upload image in any of the rich text area field and when user type the name of image in text and if it matches with the uploaded image file name then it should be converted in hyperlink and onhover of the image name it will show uploaded image in tooltip.
 (Please find the below screenshot for reference)
User-added image

Please suggest any possible ways to achieve this.
​​​​​​​