[TYPO3-RTE] UserElements - more than one button

Andrei Larionescu andrei.larionescu at gmail.com
Thu Feb 15 16:23:06 CET 2007


Hello,
I'm having trouble adding more than one button to the RTE using UserElements
plugin from rtehtmlarea.
my code looks like this:
UserElements = function(editor) {
    this.editor = editor;
    var cfg = editor.config;
    var self = this;
    var actionHandlerFunctRef = UserElements.actionHandler(this);
    var actionHandlerFunctRef1 = UserElements.actionHandler1(this);
    cfg.registerButton("UserElements",
        "Insert left tag",
        editor.imgURL("ed_user.gif", "UserElements"),
        false,
        actionHandlerFunctRef
    );
    cfg.registerButton("UserElements1",
        "Insert right tag",
        editor.imgURL("ed_user.gif", "UserElements1"),
        false,
        actionHandlerFunctRef1
    );
};
does any of you has any ideea why this is not working ?

Thanks,
Andrei


More information about the TYPO3-project-rte mailing list