Skip to content

Commit d3a4131

Browse files
Integrated latest changes at 07-16-2024 7:30:53 AM
1 parent 2c93861 commit d3a4131

File tree

12 files changed

+495
-15
lines changed

12 files changed

+495
-15
lines changed

ej2-vue-toc.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,7 @@
905905
<li><a href="/ej2-vue/document-editor/view">View</a></li>
906906
<li>How To
907907
<ul>
908+
<li><a href="/ej2-vue/document-editor/how-to/add-save-button-in-toolbar">Add save button in toolbar</a></li>
908909
<li><a href="/ej2-vue/document-editor/how-to/override-the-keyboard-shortcuts">Override keyboard shortcuts</a></li>
909910
<li><a href="/ej2-vue/document-editor/how-to/customize-context-menu">Customize context menu</a></li>
910911
<li><a href="/ej2-vue/document-editor/how-to/customize-tool-bar">Customize toolbar</a></li>
@@ -920,6 +921,7 @@
920921
<li><a href="/ej2-vue/document-editor/how-to/resize-document-editor">Resize document editor</a></li>
921922
<li><a href="/ej2-vue/document-editor/how-to/export-document-as-pdf">Export the document as Pdf</a></li>
922923
<li><a href="/ej2-vue/document-editor/how-to/customize-font-family-drop-down">Customize the font family drop down</a></li>
924+
<li><a href="/ej2-vue/document-editor/how-to/auto-save-document">Auto save the document in Server</a></li>
923925
<li><a href="/ej2-vue/document-editor/how-to/auto-save-document-in-document-editor">Auto save the document in AWS S3</a></li>
924926
<li><a href="/ej2-vue/document-editor/how-to/retrieve-the-bookmark-content-as-text">Retrieve the Bookmark and Whole document content</a></li>
925927
<li><a href="/ej2-vue/document-editor/how-to/get-current-word">Select and Get the Current Word and Paragraph</a></li>
@@ -938,6 +940,11 @@
938940
<li><a href="/ej2-vue/document-editor/how-to/customize-color-picker">Customize color picker</a></li>
939941
</ul>
940942
</li>
943+
<li>FAQ
944+
<ul>
945+
<li><a href="/ej2-vue/document-editor/faq/unsupported-file-format">Unsupported Warning Message When Opening a Document</a></li>
946+
</ul>
947+
</li>
941948
<li><a href="https://ej2.syncfusion.com/vue/documentation/api/document-editor/">API Reference</a></li>
942949
</ul>
943950
</li>
@@ -2403,6 +2410,7 @@
24032410
<li><a href="/ej2-vue/spreadsheet/vue-3-getting-started">Getting Started with Vue 3</a></li>
24042411
<li><a href="/ej2-vue/spreadsheet/data-binding">Data Binding</a></li>
24052412
<li><a href="/ej2-vue/spreadsheet/open-save">Open and Save</a></li>
2413+
<li><a href="/ej2-vue/spreadsheet/docker-deployment">Docker Deployment</a></li>
24062414
<li><a href="/ej2-vue/spreadsheet/worksheet">Worksheet</a></li>
24072415
<li><a href="/ej2-vue/spreadsheet/cell-range">Cell Range</a></li>
24082416
<li><a href="/ej2-vue/spreadsheet/editing">Editing</a></li>
@@ -2944,7 +2952,7 @@
29442952
</ul>
29452953
</li> <li>Release Notes
29462954
<ul>
2947-
<li>2024 Volume 2 - 26.*<ul><li>Weekly Release<ul><li><a href="/ej2-vue/release-notes/26.1.41">26.1.41</a></li><li><a href="/ej2-vue/release-notes/26.1.40">26.1.40</a></li><li><a href="/ej2-vue/release-notes/26.1.39">26.1.39</a></li><li><a href="/ej2-vue/release-notes/26.1.38">26.1.38</a></li></ul></li><li><a href="/ej2-vue/release-notes/26.1.35">26.1.35 Main Release</a></li></ul></li><li>2024 Volume 1 - 25.*<ul><li>Weekly Release<ul><li><a href="/ej2-vue/release-notes/25.2.7">25.2.7</a></li><li><a href="/ej2-vue/release-notes/25.2.6">25.2.6</a></li><li><a href="/ej2-vue/release-notes/25.2.5">25.2.5</a></li><li><a href="/ej2-vue/release-notes/25.2.4">25.2.4</a></li><li><a href="/ej2-vue/release-notes/25.1.42">25.1.42</a></li><li><a href="/ej2-vue/release-notes/25.1.41">25.1.41</a></li><li><a href="/ej2-vue/release-notes/25.1.40">25.1.40</a></li><li><a href="/ej2-vue/release-notes/25.1.39">25.1.39</a></li><li><a href="/ej2-vue/release-notes/25.1.38">25.1.38</a></li><li><a href="/ej2-vue/release-notes/25.1.37">25.1.37</a></li></ul></li><li><a href="/ej2-vue/release-notes/25.2.3">25.2.3 Service Pack Release</a></li><li><a href="/ej2-vue/release-notes/25.1.35">25.1.35 Main Release</a></li></ul></li>
2955+
<li>2024 Volume 2 - 26.*<ul><li>Weekly Release<ul><li><a href="/ej2-vue/release-notes/26.1.42">26.1.42</a></li><li><a href="/ej2-vue/release-notes/26.1.41">26.1.41</a></li><li><a href="/ej2-vue/release-notes/26.1.40">26.1.40</a></li><li><a href="/ej2-vue/release-notes/26.1.39">26.1.39</a></li><li><a href="/ej2-vue/release-notes/26.1.38">26.1.38</a></li></ul></li><li><a href="/ej2-vue/release-notes/26.1.35">26.1.35 Main Release</a></li></ul></li><li>2024 Volume 1 - 25.*<ul><li>Weekly Release<ul><li><a href="/ej2-vue/release-notes/25.2.7">25.2.7</a></li><li><a href="/ej2-vue/release-notes/25.2.6">25.2.6</a></li><li><a href="/ej2-vue/release-notes/25.2.5">25.2.5</a></li><li><a href="/ej2-vue/release-notes/25.2.4">25.2.4</a></li><li><a href="/ej2-vue/release-notes/25.1.42">25.1.42</a></li><li><a href="/ej2-vue/release-notes/25.1.41">25.1.41</a></li><li><a href="/ej2-vue/release-notes/25.1.40">25.1.40</a></li><li><a href="/ej2-vue/release-notes/25.1.39">25.1.39</a></li><li><a href="/ej2-vue/release-notes/25.1.38">25.1.38</a></li><li><a href="/ej2-vue/release-notes/25.1.37">25.1.37</a></li></ul></li><li><a href="/ej2-vue/release-notes/25.2.3">25.2.3 Service Pack Release</a></li><li><a href="/ej2-vue/release-notes/25.1.35">25.1.35 Main Release</a></li></ul></li>
29482956
<li>2023 Volume 4 - 24.*<ul><li>Weekly Release<ul><li><a href="/ej2-vue/release-notes/24.2.9">24.2.9</a></li><li><a href="/ej2-vue/release-notes/24.2.8">24.2.8</a></li><li><a href="/ej2-vue/release-notes/24.2.7">24.2.7</a></li><li><a href="/ej2-vue/release-notes/24.2.6">24.2.6</a></li><li><a href="/ej2-vue/release-notes/24.2.5">24.2.5</a></li><li><a href="/ej2-vue/release-notes/24.2.4">24.2.4</a></li><li><a href="/ej2-vue/release-notes/24.1.47">24.1.47</a></li><li><a href="/ej2-vue/release-notes/24.1.46">24.1.46</a></li><li><a href="/ej2-vue/release-notes/24.1.45">24.1.45</a></li><li><a href="/ej2-vue/release-notes/24.1.44">24.1.44</a></li><li><a href="/ej2-vue/release-notes/24.1.43">24.1.43</a></li></ul></li><li><a href="/ej2-vue/release-notes/24.2.3">24.2.3 Service Pack Release</a></li><li><a href="/ej2-vue/release-notes/24.1.41">24.1.41 Main Release</a></li></ul></li>
29492957
<li>2023 Volume 3 - 23.*<ul><li> Weekly Release<ul><li><a href="/ej2-vue/release-notes/23.2.7">23.2.7</a></li><li><a href="/ej2-vue/release-notes/23.2.6">23.2.6</a></li><li><a href="/ej2-vue/release-notes/23.2.5">23.2.5</a></li><li><a href="/ej2-vue/release-notes/23.1.44">23.1.44</a></li><li><a href="/ej2-vue/release-notes/23.1.43">23.1.43</a></li><li><a href="/ej2-vue/release-notes/23.1.42">23.1.42</a></li><li><a href="/ej2-vue/release-notes/23.1.41">23.1.41</a></li><li><a href="/ej2-vue/release-notes/23.1.40">23.1.40</a></li><li><a href="/ej2-vue/release-notes/23.1.39">23.1.39</a></li><li><a href="/ej2-vue/release-notes/23.1.38">23.1.38</a></li></ul></li><li><a href="/ej2-vue/release-notes/23.2.4">23.2.4 Service Pack Release</a></li><li><a href="/ej2-vue/release-notes/23.1.36">23.1.36 Main Release</a></li></ul></li>
29502958
<li>2023 Volume 2 - 22.*

ej2-vue/Release-notes/26.1.42.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Essential Studio for Vue Weekly Release Release Notes
3+
description: Essential Studio for Vue Weekly Release Release Notes
4+
platform: ej2-vue
5+
documentation: ug
6+
---
7+
8+
# Essential Studio for Vue Release Notes
9+
10+
{% include release-info.html date="July 16, 2024" version="v26.1.42" %}
11+
12+
{% directory path: _includes/release-notes/v26.1.42 %}
13+
14+
{% include {{file.url}} %}
15+
16+
{% enddirectory %}

ej2-vue/code-snippet/grid/aggregates/default-cs7/app-composition.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ const grid = ref(null);
2626
const app = createApp();
2727
2828
let selectedRecord = {};
29-
const numericParams = { params: { change: this.changeFn } };
29+
const changeFn = function(args){
30+
selectedRecord['Freight'] = args.value;
31+
grid.value.ej2Instances.aggregateModule.refresh(selectedRecord);
32+
}
33+
const numericParams = { params: { change: changeFn } };
3034
const toolbarOptions = ['Delete', 'Update', 'Cancel'];
3135
const editSettings = { allowEditing: true, allowDeleting: true, mode: 'Inline' };
3236
const footerSum = function () {
@@ -42,11 +46,7 @@ let selectedRecord = {};
4246
selectedRecord = args.rowData;
4347
};
4448
}
45-
const changeFn = function(args){
46-
selectedRecord['Freight'] = args.value;
47-
let gridObj = grid.value;
48-
gridObj.aggregateModule.refresh(selectedRecord);
49-
}
49+
5050
5151
provide('grid', [Page, Aggregate, Edit, Toolbar]);
5252
</script>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: post
3+
title: Unsupported file in Vue Document editor component | Syncfusion
4+
description: Learn here all about Unsupported file in Syncfusion Vue Document editor component of Syncfusion Essential JS 2 and more.
5+
control: Unsupported file
6+
platform: ej2-vue
7+
documentation: ug
8+
domainurl: ##DomainURL##
9+
---
10+
11+
# Why Do I Get the Unsupported Warning Message When Opening a Document?
12+
13+
If you receive an "The file format you have selected isn't supported. Please choose valid format." message when opening a document in the Document Editor, it typically indicates that the document format is not supported by the current version of the Document Editor. Here are some common reasons for this warning:
14+
1. Unsupported File Format: The document you are trying to open might be in a format that the Document Editor does not support. Ensure you are using a supported format, such as SFDT.
15+
2. Corrupted Document: The document file might be corrupted or improperly formatted. Try opening a different document to see if the issue persists.
16+
To avoid this warning, always use the recommended document formats and features supported by the Document Editor.
17+
18+
Document Editor supports the following file formats:
19+
• Word Document (*.docx)
20+
• Syncfusion Document Text (*.sfdt)
21+
• Plain Text (*.txt)
22+
• Word Template (*.dotx)
23+
• HyperText Markup Language (*.html)
24+
• Rich Text Format (*.rtf)
25+
• Word XML Document(*.xml)
26+
• Word 97-2003 Template (*.dot)
27+
• Word 97-2003 Document (*.doc)
28+
29+
By using these supported formats, you can ensure compatibility and avoid unsupported warning messages when opening documents in the Document Editor.

ej2-vue/document-editor/getting-started.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ yarn run serve
7474

7575
When creating a new project, choose the option `Default ([Vue 2] babel, eslint)` from the menu.
7676

77-
![Vue 2 project](../appearance/images/vue2-terminal.png)
77+
![Reference](./images/vue2-terminal.png)
7878

7979
Once the `quickstart` project is set up with default settings, proceed to add Syncfusion components to the project.
8080

@@ -262,3 +262,4 @@ DocumentEditorContainer output will be displayed as follows.
262262
* [How to load the document by default](../document-editor/how-to/open-default-document).
263263
* [How to customize tool bar](../document-editor/how-to/customize-tool-bar).
264264
* [How to resize Document editor component](../document-editor/how-to/resize-document-editor).
265+
* [How to add a save button to the DocumentEditorContainer component toolbar](../document-editor/how-to/add-save-button-in-toolbar)
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
---
2+
layout: post
3+
title: Add save button in Vue Document editor toolbar | Syncfusion
4+
description: Learn here to add save button in Syncfusion Vue Document editor component of Syncfusion Essential JS 2 and more.
5+
control: Add save button tool bar
6+
platform: ej2-vue
7+
documentation: ug
8+
domainurl: ##DomainURL##
9+
---
10+
11+
# Add save button in Vue Document editor toolbar
12+
13+
## To add a save button to the existing toolbar in DocumentEditorContainer
14+
15+
DocumentEditorContainer allows you to add a new button to the existing items in a toolbar using [`CustomToolbarItemModel`](https://ej2.syncfusion.com/vue/documentation/api/document-editor/customToolbarItemModel/) and with existing items in [`toolbarItems`](https://ej2.syncfusion.com/vue/documentation/api/document-editor-container/#toolbaritems) property. Newly added item click action can be defined in [`toolbarclick`](https://ej2.syncfusion.com/vue/documentation/api/toolbar/clickEventArgs/).
16+
17+
{% tabs %}
18+
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
19+
20+
<template>
21+
<div id="app">
22+
<ejs-documenteditorcontainer ref="container" :toolbarItems='items' v-bind:toolbarClick='onToolbarClick'
23+
:enableToolbar='true'> </ejs-documenteditorcontainer>
24+
</div>
25+
</template>
26+
27+
<script setup>
28+
import { DocumentEditorContainerComponent as EjsDocumenteditorcontainer, Toolbar } from '@syncfusion/ej2-vue-documenteditor';
29+
import { provide, ref } from 'vue';
30+
31+
const container = ref(null);
32+
const items = [
33+
'New', 'Open', 'Separator',
34+
{
35+
prefixIcon: "e-save icon",
36+
tooltipText: "Save the Document",
37+
text: "Save",
38+
id: "save"
39+
},
40+
'Undo', 'Redo', 'Separator', 'Image', 'Table', 'Hyperlink', 'Bookmark', 'TableOfContents', 'Separator', 'Header', 'Footer', 'PageSetup', 'PageNumber', 'Break', 'InsertFootnote', 'InsertEndnote', 'Separator', 'Find', 'Separator', 'Comments', 'TrackChanges', 'Separator', 'LocalClipboard', 'RestrictEditing', 'Separator', 'FormFields', 'UpdateFields','ContentControl']
41+
42+
provide('DocumentEditorContainer', [Toolbar]);
43+
44+
const onToolbarClick = function (args) {
45+
switch (args.item.id) {
46+
case 'save':
47+
//Disable image toolbar item.
48+
container.value.ej2Instances.documentEditor.save('sample', 'Docx');
49+
break;
50+
}
51+
}
52+
</script>
53+
54+
{% endhighlight %}
55+
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
56+
57+
<template>
58+
<div id="app">
59+
<ejs-documenteditorcontainer ref="container" :toolbarItems='items' v-bind:toolbarClick='onToolbarClick'
60+
:enableToolbar='true'> </ejs-documenteditorcontainer>
61+
</div>
62+
</template>
63+
64+
<script>
65+
import { DocumentEditorContainerComponent, Toolbar } from '@syncfusion/ej2-vue-documenteditor';
66+
67+
export default {
68+
components: {
69+
'ejs-documenteditorcontainer': DocumentEditorContainerComponent
70+
},
71+
data() {
72+
return {
73+
items: [
74+
'New','Open','Separator',
75+
{
76+
prefixIcon: "e-save icon",
77+
tooltipText: "Save the Document",
78+
text: "Save",
79+
id: "save"
80+
},
81+
'Undo', 'Redo', 'Separator', 'Image', 'Table', 'Hyperlink', 'Bookmark', 'TableOfContents', 'Separator', 'Header', 'Footer', 'PageSetup', 'PageNumber', 'Break', 'InsertFootnote', 'InsertEndnote', 'Separator', 'Find', 'Separator', 'Comments', 'TrackChanges', 'Separator', 'LocalClipboard', 'RestrictEditing', 'Separator', 'FormFields', 'UpdateFields','ContentControl']
82+
}
83+
},
84+
provide: {
85+
DocumentEditorContainer: [Toolbar]
86+
},
87+
methods: {
88+
onToolbarClick: function (args) {
89+
switch (args.item.id) {
90+
case 'save':
91+
//Save the document(Download the document)
92+
this.$refs.container.ej2Instances.documentEditor.save('sample', 'Docx');
93+
break;
94+
}
95+
}
96+
}
97+
}
98+
</script>
99+
100+
{% endhighlight %}
101+
{% endtabs %}
102+
103+
>Note: Default value of `toolbarItems` is `['New', 'Open', 'Separator', 'Undo', 'Redo', 'Separator', 'Image', 'Table', 'Hyperlink', 'Bookmark', 'TableOfContents', 'Separator', 'Header', 'Footer', 'PageSetup', 'PageNumber', 'Break', 'InsertFootnote', 'InsertEndnote', 'Separator', 'Find', 'Separator', 'Comments', 'TrackChanges', 'Separator', 'LocalClipboard', 'RestrictEditing', 'Separator', 'FormFields', 'UpdateFields','ContentControl']`.

0 commit comments

Comments
 (0)