public SpellCheckingContextMenuDefinition(string word, SpellingManager manager) { _currentWord = word; _spellingManager = manager; Entries.AddRange(GetSpellingSuggestions()); Entries.Add(CommandId.IgnoreOnce, true, false); Entries.Add(CommandId.IgnoreAll, false, false); Entries.Add(CommandId.AddToDictionary, false, false); Entries.Add(CommandId.OpenSpellingForm, false, false); }
public BlogPostHtmlEditorControl(IMainFrameWindow mainFrameWindow, IStatusBar statusBar, MshtmlOptions options, IBlogPostImageEditingContext imageEditingContext, IBlogPostSidebarContext sidebarContext, IContentSourceSidebarContext sourceContext, SmartContentResizedListener resizedListener, IBlogPostSpellCheckingContext spellingContext, IImageReferenceFixer referenceFixer, IInternetSecurityManager internetSecurityManager, CommandManager commandManager, TemplateStrategy strategy, IEditingMode editingModeContext) : base(mainFrameWindow, statusBar, options, spellingContext.SpellingChecker, internetSecurityManager, commandManager) { _strategy = strategy; _imageEditingContext = imageEditingContext; _sidebarContext = sidebarContext; _sourceContext = sourceContext; _resizedListener = resizedListener; _spellingContext = spellingContext; _spellingManager = new SpellingManager(CommandManager); _keyBoardHandler = new PostEditorKeyboardHandler(this, imageEditingContext, editingModeContext); _referenceFixer = referenceFixer; InitializeTableEditingManager(); InitializeElementBehaviors(); SelectionChanged += BlogPostHtmlEditorControl_SelectionChanged; KeyPress += new HtmlEventHandler(BlogPostHtmlEditorControl_KeyPress); }