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
ChicloudChicloud 

lightning:inputRichText.focus.. it is possible?

Pretty simple.. after the component is rendered set focus to the first field which is the RTE.. A common user request..
<lightning:inputRichText value="{!v.svcNote.Body}" aura:id="inputRT"/>

doneRendering : function(cmp, event, helper) {
{ try { cmp.find("inputRT").focus(); 
} catch (e) {
 console.error('grrrrrr cant even focus on an rte='+e); 
}
yields in the console...
lightning:inputRichText$controller$focus [Cannot read property 'focus' of null]

Can do this is js or jquery in 2 seconds but trying to figure out the locker service friend way..

Thanks!