Ticket #1712 (closed Bug: invalid)

Opened 11 months ago

Last modified 8 weeks ago

AddItem - Execute with plugin

Reported by: datalink Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

Think it's a bug, but I'm not sure.

I wrote a plugin for a additional specialcombo. I fill the selectbox with this._Combo.AddItem( StyleDefinition, OptionName ), all works fine, but to display the Option ...prototype.Execute = function( OptionName, StyleDefinition ) is needed.

You can test it with this code: http://www.fckeditor.net/forums/viewtopic.php?f=6&t=7983

Attachments

1712.patch (0.8 kB) - added by arczi 8 weeks ago.

Change History

Changed 8 weeks ago by arczi

  • status changed from new to closed
  • resolution set to invalid

It is not a bug.

function FCKToolbarSpecialCombo_OnSelect( itemId, item )
{
	FCK.ToolbarSet.CurrentInstance.Commands.GetCommand( this.CommandName ).Execute( itemId, item ) ;
}

If you want change it you should overwrite OnSelect:

this._Combo.OnSelect = FCKToolbarSpecialCombo_OnSelect ;

I attached the patch to your plugin. Now SetLabel works.

StyleComboObj._Combo.SetLabel( style.Label ) ;

Changed 8 weeks ago by arczi

Note: See TracTickets for help on using tickets.