In a nutshell, I'm trying to select all text after setting it to contentEditable = true and focusing, all using a ref. Ideally, I would do this using an onFocus event. I was unable to find any solutions online. Thanks in advance!
Did you try using select() like this-
<refField>.current.select()
You may want to add above line in useEffect and contentEditable as its dependency.