Customizing the link.xml and image.xml templates in the TinyMCE pattern

I have customized the TinyMCE pattern according to this exercise. This works. Now I want to customize the templates link.xml and image.xml, but I can't find how to include these files with RequireJS. I know I have to use the text! directive, but what path do I have to use? I have tried several absolute and relative pathes. The result is that the path isn't found, either during compilation, or in run-time. I guess I have to a baseUrl and/or a path with requirejs.config, but how do I do that? I can't add it to my pattern.js, because then it won't be used during compilation.

Plone Foundation Code of Conduct