How to use Confluence Link Browser plugin in another plugin?

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.

1 answer

You will need to specify the other plugin as a dependency in your pom.xml (scope should be provided).



.vm file


log file

[INFO] [talledLocalContainer] 2013-12-02 16:42:02,664 WARN [http-1990-1] [atlass
ian.plugin.webresource.DefaultResourceDependencyResolver] resolveDependencies Ca
nnot find web resource module for: com.atlassian.confluence.editor:page-editor-js

For some reason, the resource is still not available.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

849 views 41 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you