I am creating a simple wysiwyg editor by using a react-contenteditable
.
Is it possible that if user has selected/highlighted some text inside the editor its focus must not get lost if clicked outside on any other input element?
Asked
Active
Viewed 220 times
0

shiva shukla
- 119
- 2
- 11
-
Does this answer your question? [Maintain focus on an input tag](https://stackoverflow.com/questions/15670277/maintain-focus-on-an-input-tag) – 0leg Jul 27 '20 at 09:38
-
Thanks for the response @0leg but it didn't worked. i want to keep the focus of the highlighted text inside the content-editable and also able to type on other inputs. – shiva shukla Jul 27 '20 at 10:09