Table of Contents
- Getting Started
- EO.Pdf
- EO.Web
- EO.WebBrowser
- EO.Wpf
- Common Topics
- Reference
- .NET API Reference
- JavaScript API Reference
- EO.Web
- EO.Web
- Objects
- AJAXPostedFile Object
- AJAXUploader Object
- Calendar Object
- Callback Object
- ColorPicker Object
- ComboBox Object
- Control Object
- Dialog Object
- Downloader Object
- EditableLabel Object
- Editor Object
- EventInfo Object
- FileExplorer Object
- FileExplorerHolder Object
- Floater Object
- Grid Object
- GridCell Object
- GridColumn Object
- GridItem Object
- ImageZoom Object
- ListBox Object
- ListBoxItem Object
- MaskedEdit Object
- MaskedEditSegment Object
- MenuItem Object
- MultiPage Object
- NavigationItem Object
- NavigationItemGroup Object
- Navigator Object
- NavigatorEventInfo Object
- ProgressBar Object
- RangeSlider Object
- Rating Object
- ScriptEvent Object
- Slide Object
- Slider Object
- SliderBase Object
- SpellChecker Object
- Splitter Object
- SplitterPane Object
- ToolBar Object
- ToolBarItem Object
- ToolTip Object
- TreeNode Object
- TreeView Object
- Global Functions
- Event Handlers
- EO.WebEngine
- EO.Web
execCommand Method |
Executes a pre-defined command.
Syntax
JavaScript
Editor.execCommand(command, args)
Parameters
- command
- The command name.
- args
- Additional argument for the command. The following arguments are supported:
Command Arguments Paste Three additional arguments can be provided: - The first argument specifies the paste filter to be used. Or null to use the default filter;
- The second argument specifies additional format information. This argument is ignored by the editor but is passed through to your ClientSideOnPaste handler;
- The third argument specifies the Paste dialog title, this title is only used on non-IE browsers since IE does not use the paste dialog.
JavaScriptEditor1.execCommand("Paste", "TextWithLineBreak", "style1", "Paste Text");
InsertHTML One additional argument is used to pass the HTML text you wish to insert. For example, JavaScriptEditor1.execCommand("InsertHTML", "Some text to insert!");
See Also