I have a plugin in which I need to show the Link Browser. The plugin renders a custom html content defined in Velocity template and JavaScript. I've tried loading the Link Browser's resources from Velocity template using the #requireResource macro but without any results.
When inspecting the DOM tree in FF, there's a Confluence object defined but no Confluence.Editor.LinkBrowser. Successful import would mean there is a Confluence.Editor.LinkBrowser
I could generalize the question by asking how to import resources from plugin A to plugin B.
P.S. I am not using any kind of page decorator that would otherwise include AJS or other Confluence resources.