I don’t see why showing/hiding that modal or adding a link to the text should involve the backend. I would use a hook for the link adder.
You can look into using a self closing form tags for the outer form so that the editor form id not nested inside another.






















