Editor commands are the commands for text manipulation when editing in a text field, text area or WYSIWYG editor. Also, these commands include more common commands like Cut, Copy, Paste, SelectAll, Undo, Redo, which can be executed for the frame in the loaded web page.

DotNetBrowser 1.8.1 brings support for a number of such editor commands. 

The following sample demonstrates how to perform Google Search via the editor commands only.

using DotNetBrowser;
using DotNetBrowser.Events;
using DotNetBrowser.WPF;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace ExecuteCommandSample
    /// <summary>
    /// This sample demonstrates how to execute Browser commands such as Cut, Copy,
    /// Paste, Undo, SelectAll, InsertText etc.
    /// </summary>
    class Program
        public class WindowMain : Window
            private WPFBrowserView browserView;

            public WindowMain()
                BrowserContext browserContext = BrowserContext.DefaultContext;

                Browser browser = BrowserFactory.Create(browserContext);

                browser.FinishLoadingFrameEvent += delegate(object sender, FinishLoadingEventArgs e)
                    if (e.IsMainFrame)
                        // Inserts "TeamDev DotNetBrowser" text into Google Search field.
                        browser.ExecuteCommand(EditorCommand.INSERT_TEXT, "TeamDev DotNetBrowser");
                        // Inserts a new line into Google Search field to simulate Enter.


                browserView = new WPFBrowserView(browser);
                Content = browserView;

                Width = 1024;
                Height = 768;
                this.Loaded += WindowMain_Loaded;

            void WindowMain_Loaded(object sender, RoutedEventArgs e)

            public static void Main()
                Application app = new Application();

                WindowMain wnd = new WindowMain();

                var browser = wnd.browserView.Browser;