You need to sign in to do that
Don't have an account?
Arnab KarSarkar-incontact
"Richtext editor library is not loaded" in lightning
I am building a lightning component and the ui:inputRichText in lightning doesnt load the RichText Library always. I am getting the error - " Richtext editor library is not loaded". However if I keep on refreshing the page the error goes away evnetually. Does anybody have any idea why is this happening.
<ui:inputRichText aura:id="arnabText" class="richTextClass" rows="4" label="Comment" value="A Demo Text"/>
<ui:inputRichText aura:id="arnabText" class="richTextClass" rows="4" label="Comment" value="A Demo Text"/>
<aura:component description="CreateTFSWorkItemComp" implements="forceCommunity:availableForAllPageTypes,flexipage:availableForAllPageTypes,force:appHostable" access="global" controller="WorkItemCreateController">
<ltng:require styles="/resource/slds213/assets/styles/salesforce-lightning-design-system-vf.css" />
<ltng:require styles="/resource/slds213/assets/styles/salesforce-lightning-design-system-ltng.min.css" />
<aura:handler name="init" value="{!this}" action="{!c.init}" />
<aura:attribute name="record" type="Object[]" description="The record being edited"/>
<aura:attribute name="fields" type="Object[]"/>
<aura:attribute name="form" type="Aura.Component[]"/>
<aura:attribute name="inputToField" type="Map"/>
<aura:attribute name="values" type="Object[]"/>
<aura:attribute name="changedFields" type="object[]"/>
<div class="slds sldsCustom">
<div class="slds-form--horizontal">
<div class="slds-form-element containerDiv">
<label class="slds-checkbox--toggle slds-grid">
<span class="slds-form-element__label slds-m-bottom--none">User Issue?</span>
<input name="checkbox" type="checkbox" aria-describedby="toggle-desc" />
<span id="toggle-desc" class="slds-checkbox--faux_container" aria-live="assertive">
<span class="slds-checkbox--faux"></span>
<span class="slds-checkbox--on">Enabled</span>
<span class="slds-checkbox--off">Disabled</span>
</span>
</label>
<ui:inputRichText aura:id="arnabText" class="richTextClass" rows="4" label="Comment" value="<b>Aura</b>, <span style='color:red'>input rich text demo</span>"/>
</div>
<fieldset class="slds-form-element containerDiv" style="padding-bottom:20px;">
<div class="slds-form-element__control" >
{!v.form}
</div>
</fieldset>
</div>
<Center>
<button class="slds-button slds-button--brand" onclick="{!c.doSubmit}">Save</button>
<button class="slds-button">Cancel</button>
</Center>
</div>
</aura:component>
try to display component in diffent browser.
I was trying in Chrome. It did load fine on Edge.
However, would you mind loading the page few times. This issue is very sporadic and I am not sure when it works and when doesnt.
Thanks again.
if my answer helps you mark it best answer so it make proper soltion for others :)
Thanks