How to insert a widget/button/img in a text and text box ?

and,click different part of the text,call different func