For this Ive bind the following code:
The if clause gets run when the user clicks with the right mouse button in the Text "Hello World" (= Works fine). Now I want to insert a new element at the position of the click. For example when the user clicks after the o of Hello the new div should look so (h1 as example):
Ived searched a lot and find many solutions with x and y coordinates. But none for just get the text position.
Does anyone have a answer on how to archive this?
Thanks in advance.