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
Arnab KarSarkar-incontactArnab 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"/>
 
Arnab KarSarkar-incontactArnab KarSarkar-incontact

<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="&lt;b&gt;Aura&lt;/b&gt;, &lt;span style='color:red'&gt;input rich text demo&lt;/span&gt;"/>


        </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>
sfdcMonkey.comsfdcMonkey.com
its work fine in my org
User-added image
try to display component in diffent browser. 
Arnab KarSarkar-incontactArnab KarSarkar-incontact
haah!! may be.. thanks for your response. 

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. 
sfdcMonkey.comsfdcMonkey.com
I think some browser dose not load script for it anyway 
if my answer helps you mark it best answer so it make proper soltion for others :)
Thanks