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
I would like to empty the text inside my slate editor after a user is done and completed with their entry. I thought I could just create a ref to the editor object but it seems ref is not supported? I am using TypeScript which further complicates things. Any ideas?
I am using React and I tried giving the Slate object a ref but it says ref does not exist on it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to empty the text inside my slate editor after a user is done and completed with their entry. I thought I could just create a ref to the editor object but it seems ref is not supported? I am using TypeScript which further complicates things. Any ideas?
I am using React and I tried giving the Slate object a ref but it says ref does not exist on it?
Beta Was this translation helpful? Give feedback.
All reactions