I don’t know how your domplate template look like

Otherwise, I tried the following:

1)  Create button in HTML panel (firebugOverlay.xul)
<toolbarbutton label="Test"
    class="toolbar-text-button fbInternational"
    oncommand="Firebug.HTMLModule.onTest(event, Firebug.currentContext)"/>


2) Handle the click (htmlModule.js)
    onTest: function(event, context)
    {
        var doc = context.window.document;
        var content = doc.getElementById("content");

        content.style.paddingTop = "50px";
        content.style.border = "1px solid red";
    }

3) Check out the page (there needs to be an element with id=”content”),
the CSS changes are visible.

Honza


-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/firebug.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/firebug/00a243dd-14d2-4b72-9945-3cafd6398404%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to