private void InitializePropertiesChunkCommands() { _imageLinkTargetDropDownCommand = new Command(CommandId.FormatImageSelectLink); _commandManager.Add(_imageLinkTargetDropDownCommand); _imageLinkToSourceCommand = new Command(CommandId.ImageLinkToSource, LinkTargetType.IMAGE); _commandManager.Add(_imageLinkToSourceCommand); _imageLinkToUrlCommand = new Command(CommandId.ImageLinkToUrl, LinkTargetType.URL); _commandManager.Add(_imageLinkToUrlCommand); _imageLinkToNoneCommand = new Command(CommandId.ImageLinkToNone, LinkTargetType.NONE); _commandManager.Add(_imageLinkToNoneCommand); _imageLinkTargetDropdown = new ImageLinkTargetDropdown(_imageLinkTargetDropDownCommand, new[] { _imageLinkToSourceCommand, _imageLinkToUrlCommand, _imageLinkToNoneCommand }, imageTargetSelectGalleryCommand_Execute); _imageLinkTargetDropdown.SelectTag(LinkTargetType.IMAGE); _imageLinkOptionsCommand = new CustomTooltipWhenDisabledCommand(CommandId.FormatImageLinkOptions, Res.Get(StringId.ImgSBLinkOptionsDisabledTooltip)); _commandManager.Add(_imageLinkOptionsCommand, imageLinkOptionsCommand_Execute); _imageAltTextCommand = new Command(CommandId.FormatImageAltText); _imageAltTextCommand.Tag = _imageEditingContext.DecoratorsManager.GetImageDecorator(HtmlAltTextDecorator.Id); _imageAltTextCommand.Execute += new EventHandler(imageDecoratorCommand_Execute); _commandManager.Add(_imageAltTextCommand); _commandManager.Add(new GroupCommand(CommandId.FormatImagePropertiesGroup, _imageLinkOptionsCommand)); }