You need to sign in to do that
Don't have an account?
Pasan Eeriyagama
How to enable wrap text in ui:outputRichText?
We need to enable wrap text in lightning rich text field.
Tried below markups including slds-scrollable_y, slds-hyphenate individually and together even in ui:outputRichText class attribute.
Markup:
Am I doing it wrong? Appreciate any suggestions on this.
Tried below markups including slds-scrollable_y, slds-hyphenate individually and together even in ui:outputRichText class attribute.
Markup:
<div aria-label="" class="slds-rich-text-area__content slds-grow slds-wrap slds-scrollable_y slds-hyphenate"> <ui:outputRichText value="{!v.richtextFld}"/> </div>
Am I doing it wrong? Appreciate any suggestions on this.
In order to get the wrap text content , use Lightning tag.
Below is a code for the same . Hope it helps you
Aura Component Code :
Aura App Code :
Aura Controller Code :
SCREENSHOT :
Regards,
Akshay
Thank you for the reply. But Lightning yet does not have output control, Therefore we had to use ui:outputRichText. I tried this approach, but it wasn't possible to make it readonly. Disabled attribute still not working. I doubt it's in beta yet. Otherwise this is the most appropriate way to do it.