Hello everyone,
I need to insert html code at the current caret position - is this possible, and if so, could someone suggest how to do it? I've seen a similar solution in angular, but I can't convert it to this in react.
(https://stackblitz.com/edit/angular-fway1h-7ydfj2?file=app%2Fapp.component.ts)
Additionally:
Is it possible to calculate the exact position of the caret with respect to the entire browser window?