I'm looking for a lightning component that I can use that has the image upload capability. Similar to the Chatter WYSWG:
Note: I've used the lightning:inputRichText (Beta) and that doesn't have the image upload button..
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
There isn't one now, but it looks like one is coming in Summer 18. I just checked in my pre-release org and in v43.0 there is a new component called
lightning:insertImageButton that can be used inside
<aura:component> <lightning:inputRichText value="<b>HELLO</b>"> <lightning:insertImageButton/> </lightning:inputRichText> </aura:component>
I found with the addition of
<lightning:insertImageButton/> that you get a strange-to-the-user error if you add a file larger than 1MB. The error is
This page has an error. You might just need to refresh it. First, would you give us some details? (We're reporting this as error ID:xxxx)
Inside the "Technical Stuff" you can see the following.
The dialog offers to send in a report to SF so I asked them to pass this error onto us developers so we can handle it in a more graceful way for the user.
Should be clear: Summer 18 developer edition.