You need to sign in to do that
Don't have an account?
Pasan Eeriyagama
How to make lightning:inputRichText Readonly?
How do you make lightning:inputRichText readonly, there is a disabled attribute. It seems not working yet. Is there a workaround to show it as a readonly field on page (by wrapping with a div tags may be).
markup:
markup:
<lightning:inputRichText value="{!v.richTextfield}" disabled="true" disabledCategories="FORMAT_FONT,FORMAT_TEXT,FORMAT_BODY,ALIGN_TEXT,REMOVE_FORMATTING"/>
May I suggest you Please refer the below link for reference.
- https://salesforce.stackexchange.com/questions/156204/readonly-property-of-lightninginput-not-working
I hope it will be helpful.Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.
Thanks
Rahul Kumar
Since Lightning Tags are in beta version , might be one reason that its not working . Alternatively, I have done with some css .
Below is a code for the same. Hope it helps you.
Aura Component Code : Aura Controller Code : Aura App Code : Style Sheet Code :
Screenshot :
Regards,
Akshay