Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-06-15 13:49:40

paulb
Xinha Community Member
Registered: 2005-04-27
Posts: 12

How to reposition a button?

Hi there, I'm wondering if it is possible to reposition a button.  My problem is that the FindReplace plugin inserts its button like so:

cfg.addToolbarElement(["FR-findreplace"], ["formatblock","fontsize","fontname"], +1);

But I would rather have it after the "paste" button (those other buttons dont exist in my instance).  I dont want to change this plugin because I will have to fix it every time I upgrade.

Does anyone know of a way I can reposition this button?

Offline

#2 2005-06-28 16:50:23

foyleman
New member
Registered: 2005-04-26
Posts: 5

Re: How to reposition a button?

I couldn't get it to move either. I attempted to manually place it in my_config.js as such:

    xinha_config.toolbar =
    [
        ["separator"],
        ["formatblock","fontname","fontsize"],
        ["separator"],
        ["FR-findreplace"],
        ["textindicator"],
        ["linebreak"],
        ["bold","italic","underline","strikethrough","subscript","superscript"],
        ["separator"],
        ["justifyleft","justifycenter","justifyright","justifyfull"],
        ["separator"],
        ["forecolor","hilitecolor"],
        ["separator"],
        ["killword","removeformat"],
        ["linebreak"],
        ["insertorderedlist","insertunorderedlist","outdent","indent"],
        ["separator"],
        ["inserthorizontalrule","createlink","insertimage"],
        ["separator"],
        ["undo","redo"],
//        (HTMLArea.is_gecko ? [] : ["cut","copy","paste"]),
        ["separator"],
        ["metadescr","htmlmode"],
        ["separator"],
        ["inserttable","toggleborders","lefttoright", "righttoleft", "separator"]
    ];

But all that did was duplicate the button so it showed up in the front and in the position I placed it. Usually this method works, but not in the case of this plugin.

Offline

#3 2005-06-28 20:27:36

willeffects
Xinha Authority
Registered: 2005-03-19
Posts: 130

Re: How to reposition a button?

Offline

Board footer

Powered by FluxBB