Is it possible to create a button that is the child of an text?
This would not be a valid approach to nest HTML elements in that way. If you take a look at what jQuery plugins do, they usually wrap your element with divs and other stuff. IMHO, you can solve the problem by following a similar approach.