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
yogaraj kvyogaraj kv 

Lightning component super badge Challenge 7

Hi,
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}"/>
                </div>
            </div>
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}"/>