Ask for help on svg question

Click the text in the < text > tag in svg, so that it can edit the text in real time.
how to achieve this? the effect is shown in figure 2, under the help of God

.
Menu