add insertLinkDialog and insertImageDialog