Skip to content

Commit 9e99e59

Browse files
817044: Resolved Tag issue
1 parent 56d4920 commit 9e99e59

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

ej2-asp-core-mvc/document-editor/how-to/get-current-word.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ The following example code illustrates how to select and get the current word as
2525
{% include code-snippet/document-editor-container/get-word/tagHelper %}
2626
{% endhighlight %}
2727
{% highlight c# tabtitle="Get-word.cs" %}
28-
{% endhighlight %}{% endtabs %}
28+
{% endhighlight %}
29+
{% code-snippet/document-editor-container/get-word/document-editor.cs %}
30+
{% endtabs %}
2931

3032
{% elsif page.publishingplatform == "aspnet-mvc" %}
3133

@@ -34,12 +36,12 @@ The following example code illustrates how to select and get the current word as
3436
{% include code-snippet/document-editor-container/get-word/razor %}
3537
{% endhighlight %}
3638
{% highlight c# tabtitle="Get-word.cs" %}
37-
{% endhighlight %}{% endtabs %}
39+
{% code-snippet/document-editor-container/get-word/document-editor.cs %}
40+
{% endhighlight %}
41+
{% endtabs %}
3842
{% endif %}
3943

4044

41-
To get the bookmark content as SFDT (rich text), check this [`link`](../../document-editor/how-to/get-the-selected-content/#get-the-selected-content-as-sfdt-rich-text)
42-
4345
## Select and get the paragraph in current cursor position
4446

4547
You can use [`selectParagraph`] API in selection module to select the current paragraph at cursor position and use [`text`] API or [`sfdt`] API to get the selected content as plain text or SFDT from Document Editor component.
@@ -53,7 +55,9 @@ The following example code illustrates how to select and get the current paragra
5355
{% include code-snippet/document-editor-container/get-paragraph/tagHelper %}
5456
{% endhighlight %}
5557
{% highlight c# tabtitle="Get-paragraph.cs" %}
56-
{% endhighlight %}{% endtabs %}
58+
{% code-snippet/document-editor-container/get-paragraph/document-editor.cs %}
59+
{% endhighlight %}
60+
{% endtabs %}
5761

5862
{% elsif page.publishingplatform == "aspnet-mvc" %}
5963

@@ -62,5 +66,7 @@ The following example code illustrates how to select and get the current paragra
6266
{% include code-snippet/document-editor-container/get-paragraph/razor %}
6367
{% endhighlight %}
6468
{% highlight c# tabtitle="Get-paragraph.cs" %}
65-
{% endhighlight %}{% endtabs %}
69+
{% code-snippet/document-editor-container/get-paragraph/document-editor.cs %}
70+
{% endhighlight %}
71+
{% endtabs %}
6672
{% endif %}

0 commit comments

Comments
 (0)