+ Start a Discussion
yogaraj kvyogaraj kv 

Lightning component super badge Challenge 7

I am facing issue on challenge 7, The AddBoatReview component doesn't define the description using lightning:inputRichText. The rich text component should be bound to the BoatReview__c.comments field, and suppress font selection.

 My code -
<div class="slds-form-element">
                <label class="slds-form-element__label" for="description">Description</label>
                <div class="slds-form-element__control">
                    <lightning:inputRichText aura:id="description" title="description" disabledCategories="['FORMAT_FONT']" value="{!v.boatReview.Comments__c}"/>
Any suggestion?
Best Answer chosen by yogaraj kv
yogaraj kvyogaraj kv
I have found out the issue, The disabledCategories attribute is a comma separated list value, The challenge was completed after, I changed the InputRichText syntax to below,
<lightning:inputRichText aura:id="description" title="description" disabledCategories="FORMAT_FONT" value="{!v.boatReview.Comment__c}"/>