ToolbarPasteButton Class
A default toolbar button that allows the data from the clipboard to be pasted in the design view area.
Namespace: DevExpress.Web.ASPxHtmlEditor
Assembly: DevExpress.Web.ASPxHtmlEditor.v24.2.dll
Declaration
Remarks
The ASPxHtmlEditor allows end-users to work with the clipboard. The clipboard provides the capability to perform cut, copy and paste operations using toolbar buttons, the context menu, or shortcuts.
The ASPxHtmlEditor provides the Cut (ToolbarCutButton), Copy (ToolbarCopyButton), and Paste (ToolbarPasteButton) toolbar buttons.
You can add the Paste button to toolbars by using either the ASPxHtmlEditor designer at design time, or programmatically.
protected void Page_Load(object sender, EventArgs e) {
HtmlEditorToolbar stToolbar1 = HtmlEditorToolbar.CreateStandardToolbar1();
ToolbarPasteButton pasteButton = new ToolbarPasteButton();
stToolbar1.Items.Add(pasteButton);
ASPxHtmlEditor1.Toolbars.Add(stToolbar1);
}
Note
Some browsers (e.g., Firefox, Chrome) do not allow scripts to work with the clipboard for security reasons. As a result, the Cut, Copy and Paste toolbox items are disabled for these browsers.