void htmlEditor_ReadyStateCompleteInternal(IHtmlEditor editor) { // add commands editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.RemoveHighLight)); editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StartBackground)); editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StopBackground)); editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StartWordByWord)); editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StopWordByWord)); editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StartBlock)); editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StopBlock)); editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.ClearBuffer)); }
void htmlEditor_Loaded(object sender, GuruComponents.Netrix.Events.LoadEventArgs e) { IHtmlEditor editor = (IHtmlEditor)sender; // add commands editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.RemoveHighLight)); editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StartBackground)); editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StopBackground)); editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StartWordByWord)); editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StopWordByWord)); editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StartBlock)); editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StopBlock)); editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.ClearBuffer)); }