So I managed to get dynamically generated versions of jquery tinymce to work in wordpress and work with the bundled wplink js plugin - albeit pretty badly hacked together.
Was wondering if anyone has figured out or can deduce from my hack a more elegant way to load the exact scripts I need to get
wp link working. I checked this thread but cannot seem to get the bundled
wp link plugin to load properly. If I leave out the two 'hacky' lines, I get the error
wplink.js?ver=4.1:142 Uncaught TypeError: Cannot read property 'select' of undefined
This is the start of my more elegant solution. This initialises the editor, its css and a couple lines of hacking to get 'wp link' working;
I have an idea I will need to load the 'wp dialogs' plugin before 'wp link', as 'wp link' seems to rely on this (as my colleague helped me hack in).
The analogy of 'don't fix what ain't broken' comes to mind, but considering there seems to be next to no information on this stuff I was hoping this could help people in future.