Document editor takes advantage of system clipboard and allows you to copy or move a portion of the document into it in HTML format, so that it can be pasted in any application that supports clipboard.
Copy a portion of document to system clipboard using built-in context menu of document editor. You can also do it programmatically using the following sample code.
Cut a portion of document to system clipboard using built-in context menu of document editor. You can also do it programmatically using the following sample code.
Due to limitations, you can paste contents from system clipboard as plain text in document editor only using the ‘CTRL + V’ keyboard shortcut.
Document editor expose API to enable local paste within the control. On enabling this, the following is performed:
<ejs-documenteditor ref="documenteditor" :enableLocalPaste='true' :enableEditor='true' :isReadOnly=false style="width: 100%;height: 100%;"></ejs-documenteditor>
By default, enableLocalPaste is false. When local paste is enabled for a document editor instance, you can paste contents programmatically if the internal clipboard has stored data during last copy operation. Refer to the following sample code.
Document Editor provides support to paste the system clipboard data with formatting. To enable clipboard paste with formatting options, set the
enableLocalPaste property in Document Editor to false and use this .NET Standard library
Syncfusion.EJ2.WordEditor.AspNet.Core by the web API service implementation. This library helps you to paste the system clipboard data with formatting.
You can paste your system clipboard data in the following ways:
This paste option appears as follows.