You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried below code: onActivate={e=>initialiseValue(e,this.props.value)} //props.value has def text
function initialiseValue(e,val){
if(val!=""&&val!=undefined){
e.target.setContent(e.target.getContent()+val);
}
}
The problem here is, everytime I click on tinyMCE editor field, it is putting the value over and over. I want the value to be added at first time while loading and not anymore after that. Tried onLoadContent, but it didn't fire setContent() method. Please help.
The text was updated successfully, but these errors were encountered:
Tried below code:
onActivate={e=>initialiseValue(e,this.props.value)} //props.value has def text
The problem here is, everytime I click on tinyMCE editor field, it is putting the value over and over. I want the value to be added at first time while loading and not anymore after that. Tried onLoadContent, but it didn't fire setContent() method. Please help.
The text was updated successfully, but these errors were encountered: