You are on page 1of 1

I solved this too. The TddHTMLEditor.InternalOnActionExecute was incomplete: the full source is the following: procedure TddHTMLEditor.

InternalOnActionExecute(Sender: TObject); var ACmd : TddHTMLEditorCommand; Idx : Integer; ClrDlg : TColorDialog; begin Idx := FCommandList.IndexOfObject(Sender); if Idx >= 0 then begin ACmd := TddHTMLEditorCommand(Idx); case ACmd of hecBulletList : Self.BulletList; hecCopy : Self.Copy; hecPaste : Self.Paste; hecCut : Self.Cut; hecRedo : Self.Redo; hecUndo : Self.Undo; hecForegroundColor,hecBackGroundColor: begin ClrDlg := TColorDialog.Create(nil); try ClrDlg.Options := [cdFullOpen,cdAnyColor]; if ClrDlg.Execute then begin Self.DoExecuteCommand(HTMLEditorCommands[Acmd],False,ClrDlg.Color); // Self.SetForegroundColor(ClrDlg.Color); end; finally FreeAndNil(ClrDlg); end; end; hecSearch : Self.Search; hecIdentLeft : Self.IdentLeft; hecIdentRight : Self.IdentRight; hecInsertImage : Self.InsertImage; hecCreateLink : Self.CreateLink; hecInsertTable : Self.InsertTable; hecItalic : Self.Italic; hecBold : Self.Bold; hecNumberedList : Self.NumberedList; hecUnderLine : Self.UnderLine; hecAlignLeft : Self.AlignLeft; hecAlignCenter : Self.AlignCenter; hecAlignRight : Self.AlignRight; end; end; end;