| layout | post |
|---|---|
| title | Paste Without Formatting in Vue Spreadsheet component | Syncfusion |
| description | Learn here about Paste only values without formatting during copy and paste in Syncfusion Vue Spreadsheet component of Syncfusion Essential JS 2 and more. |
| control | Spreadsheet |
| platform | document-processing |
| documentation | ug |
In the Syncfusion Vue Spreadsheet, you can make the paste action insert only the raw values into the cells, without bringing any formatting or styles from the copied content. This can be done by using the actionBegin event, where the Spreadsheet provides the details of the action being performed. When the action is a clipboard operation, you can set the paste type to Values, ensuring that only plain values are pasted into the sheet.
The following example shows how to paste values without formatting.
{% tabs %}
{% highlight html tabtitle="Composition API (/src/App.vue)" %}
{% include code-snippet/spreadsheet/vue/paste-values-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (/src/App.vue)" %}
{% include code-snippet/spreadsheet/vue/paste-values-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
{% previewsample "/document-processing/code-snippet/spreadsheet/vue/paste-values-cs1" %}