Announcement

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

#1 2008-01-12 12:45:21

thomas2411
New member
Registered: 2008-01-11
Posts: 3

Create own button in menu

Hello

1. I've tried to add my own button to menu and it doesn't work. Button doesn't appear in menu. My code is

   xinha_config.registerButton({
      id       : "fl-embed",      // the ID of your button
      tooltip  : "Embed object",    // the tooltip
      image    : [_editor_url+"images/fl_embed.gif"],  // image to be displayed in the toolbar
      textMode : false,            // disabled in text mode
      action   : function(editor) { // called when the button is clicked
                   editor.surroundHTML('', '');
                 },
     });

Maybe it is a problem with putting it in a right toolbar?

2. My idea is to change (I have no idea how - maybe you know) CreateLink Module and add it as my own. It will show a popup window where there is one input box. User will paste there 'embed object code'  from youtube so that it will add this code as html.

3. When I create this new module, how should I add it to action parameter in registerButton?

Please help
Tom

Offline

Board footer

Powered by FluxBB