Skip to content

Commit 290d043

Browse files
Merge pull request #1321 from syncfusion-content/980280-ResIssHot
980280: Resolved Issues in UG
2 parents 15e42cb + 9626021 commit 290d043

File tree

5 files changed

+31
-11
lines changed

5 files changed

+31
-11
lines changed

Document-Processing/Word/Word-Processor/asp-net-core/how-to/override-the-keyboard-shortcuts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The following code shows how to prevent the `CTRL + C` keyboard shortcut for cop
2020

2121
{% tabs %}
2222
{% highlight cshtml tabtitle="CSHTML" %}
23-
{% include code-snippet/document-editor/asp-net-core/document-editor/asp-net-core/document-editor/asp-net-core/document-editor/prevent-default/tagHelper %}
23+
{% include code-snippet/document-editor/asp-net-core/document-editor/prevent-default/tagHelper %}
2424
{% endhighlight %}
2525
{% highlight c# tabtitle="Prevent-default.cs" %}
2626
{% endhighlight %}{% endtabs %}

Document-Processing/Word/Word-Processor/javascript-es5/how-to/override-the-keyboard-shortcuts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The following code shows how to prevent the `CTRL + C` keyboard shortcut for cop
1919

2020
{% tabs %}
2121
{% highlight js tabtitle="index.ts" %}
22-
{% include code-snippet/document-editor/javascript-es5/document-editor/prevent-keyboard-cs2/index.ts %}
22+
{% include code-snippet/document-editor/javascript-es5/document-editor/prevent-keyboard-cs2/index.js %}
2323
{% endhighlight %}
2424
{% highlight html tabtitle="index.html" %}
2525
{% include code-snippet/document-editor/javascript-es5/document-editor/prevent-keyboard-cs2/index.html %}

Document-Processing/Word/Word-Processor/javascript-es5/table-of-contents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ editor.editorModule.insertTableOfContents(tocSettings);
3939

4040
{% tabs %}
4141
{% highlight js tabtitle="index.ts" %}
42-
{% include code-snippet/document-editor/javascript-es5/document-editor/table-of-contents-cs1/index.ts %}
42+
{% include code-snippet/document-editor/javascript-es5/document-editor/table-of-contents-cs1/index.js %}
4343
{% endhighlight %}
4444
{% highlight html tabtitle="index.html" %}
4545
{% include code-snippet/document-editor/javascript-es5/document-editor/table-of-contents-cs1/index.html %}

Document-Processing/code-snippet/document-editor/javascript-es6/document-editor/dialog-cs8/index.js

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
3+
4+
import { DocumentEditor, Editor, Selection, StyleDialog, SfdtExport, StylesDialog, EditorHistory } from '@syncfusion/ej2-documenteditor';
5+
6+
DocumentEditor.Inject(Editor, Selection, SfdtExport, StyleDialog, StylesDialog, EditorHistory);
7+
8+
let documenteditor: DocumentEditor = new DocumentEditor({
9+
isReadOnly: false,
10+
enableSelection: true,
11+
enableEditor: true,
12+
enableStyleDialog: true,
13+
enableSfdtExport: true,
14+
enableEditorHistory: true,
15+
height: '370px'
16+
});
17+
18+
let button: HTMLElement = document.getElementById('dialog');
19+
button.addEventListener('click', function () {
20+
21+
//To open style dialog
22+
documenteditor.showDialog('Styles');
23+
});
24+
25+
documenteditor.appendTo('#DocumentEditor');
26+
27+
28+

0 commit comments

Comments
 (0)