@@ -24,7 +24,9 @@ You can use `text` API to get the selected content as plain text from React Docu
24
24
{% include code-snippet/document-editor-container/get-text/tagHelper %}
25
25
{% endhighlight %}
26
26
{% highlight c# tabtitle="Get-text.cs" %}
27
- {% endhighlight %}{% endtabs %}
27
+ {% code-snippet/document-editor-container/get-text/document-editor.cs %}
28
+ {% endhighlight %}
29
+ {% endtabs %}
28
30
29
31
{% elsif page.publishingplatform == "aspnet-mvc" %}
30
32
@@ -33,7 +35,9 @@ You can use `text` API to get the selected content as plain text from React Docu
33
35
{% include code-snippet/document-editor-container/get-text/razor %}
34
36
{% endhighlight %}
35
37
{% highlight c# tabtitle="Get-text.cs" %}
36
- {% endhighlight %}{% endtabs %}
38
+ {% code-snippet/document-editor-container/get-text/document-editor.cs %}
39
+ {% endhighlight %}
40
+ {% endtabs %}
37
41
{% endif %}
38
42
39
43
@@ -55,7 +59,9 @@ You can use `sfdt` API to get the selected content as rich text from React Docum
55
59
{% include code-snippet/document-editor-container/get-sfdt/tagHelper %}
56
60
{% endhighlight %}
57
61
{% highlight c# tabtitle="Get-sfdt.cs" %}
58
- {% endhighlight %}{% endtabs %}
62
+ {% code-snippet/document-editor-container/get-sfdt/document-editor.cs %}
63
+ {% endhighlight %}
64
+ {% endtabs %}
59
65
60
66
{% elsif page.publishingplatform == "aspnet-mvc" %}
61
67
@@ -64,7 +70,9 @@ You can use `sfdt` API to get the selected content as rich text from React Docum
64
70
{% include code-snippet/document-editor-container/get-sfdt/razor %}
65
71
{% endhighlight %}
66
72
{% highlight c# tabtitle="Get-sfdt.cs" %}
67
- {% endhighlight %}{% endtabs %}
73
+ {% code-snippet/document-editor-container/get-sfdt/document-editor.cs %}
74
+ {% endhighlight %}
75
+ {% endtabs %}
68
76
{% endif %}
69
77
70
78
0 commit comments