Widget Connector extension not working.

sm shamim August 15, 2012

I want to extend the Widget Connector so that when a url of our video site is inserted in Confluence, it should be recognized and embedded.

I have followed this tutorial https://studio.plugins.atlassian.com/wiki/display/WC/Extending+the+Widget+Connector

But for some reason, the Confluence editor is not recognizing our url. And my WidgetRender implementation never get called.

It recognizes the youtube urls.

Is there anything I am missing? Any alternative documentation on Widget Connector?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Mirko Skramusky
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2013

If anyone interested now: As an alternative you can use the autoconvert feature of the editor. It's javscript-based and relaces any links by text or a macro.

https://developer.atlassian.com/display/CONFDEV/Extending+Autoconvert

This example replace "anydomain.com" links by the "any-macro" macro:

(function() {
    AJS.bind("init.rte", function() {
        var pasteHandler = function(uri, node, done) {
            if (uri.host = "anydomain.com") {
                    var macro = {
                        name : 'any-macro',
                        params : {
                            id : paramExtractedFromUrl
                        }
                    };
                    tinymce.plugins.Autoconvert.convertMacroToDom(macro, done, done);
                }
            }
        };
        tinymce.plugins.Autoconvert.autoConvert.addHandler(pasteHandler);
    });
})();

TAGS
AUG Leaders

Atlassian Community Events