@@ -153,7 +153,9 @@ Document editor provides an option to protect and unprotect document using `enfo
153
153
{% include code-snippet/document-editor-container/comment-only-protect/tagHelper %}
154
154
{% endhighlight %}
155
155
{% highlight c# tabtitle="Comment-only.cs" %}
156
- {% endhighlight %}{% endtabs %}
156
+ {% include code-snippet/document-editor-container/comment-only-protect/document-editor.cs %}
157
+ {% endhighlight %}
158
+ {% endtabs %}
157
159
158
160
{% elsif page.publishingplatform == "aspnet-mvc" %}
159
161
@@ -162,7 +164,9 @@ Document editor provides an option to protect and unprotect document using `enfo
162
164
{% include code-snippet/document-editor-container/comment-only-protect/razor %}
163
165
{% endhighlight %}
164
166
{% highlight c# tabtitle="Comment-only.cs" %}
165
- {% endhighlight %}{% endtabs %}
167
+ {% include code-snippet/document-editor-container/comment-only-protect/document-editor.cs %}
168
+ {% endhighlight %}
169
+ {% endtabs %}
166
170
{% endif %}
167
171
168
172
@@ -185,7 +189,9 @@ The following example illustrates how to enable mention support in Document Edit
185
189
{% include code-snippet/document-editor-container/comments-mention/tagHelper %}
186
190
{% endhighlight %}
187
191
{% highlight c# tabtitle="comments-mention.cs" %}
188
- {% endhighlight %}{% endtabs %}
192
+ {% include code-snippet/document-editor-container/comments-mention/document-editor.cs %}
193
+ {% endhighlight %}
194
+ {% endtabs %}
189
195
190
196
{% elsif page.publishingplatform == "aspnet-mvc" %}
191
197
@@ -194,7 +200,9 @@ The following example illustrates how to enable mention support in Document Edit
194
200
{% include code-snippet/document-editor-container/comments-mention/razor %}
195
201
{% endhighlight %}
196
202
{% highlight c# tabtitle="comments-mention.cs" %}
197
- {% endhighlight %}{% endtabs %}
203
+ {% include code-snippet/document-editor-container/comments-mention/document-editor.cs %}
204
+ {% endhighlight %}
205
+ {% endtabs %}
198
206
{% endif %}
199
207
200
208
## Events
@@ -210,7 +218,9 @@ To demonstrate a specific use case, let’s consider an example where we want to
210
218
{% include code-snippet/document-editor-container/comments-event/tagHelper %}
211
219
{% endhighlight %}
212
220
{% highlight c# tabtitle="comments-event.cs" %}
213
- {% endhighlight %}{% endtabs %}
221
+ {% include code-snippet/document-editor-container/comments-event/document-editor.cs %}
222
+ {% endhighlight %}
223
+ {% endtabs %}
214
224
215
225
{% elsif page.publishingplatform == "aspnet-mvc" %}
216
226
@@ -219,5 +229,7 @@ To demonstrate a specific use case, let’s consider an example where we want to
219
229
{% include code-snippet/document-editor-container/comments-event/razor %}
220
230
{% endhighlight %}
221
231
{% highlight c# tabtitle="comments-event.cs" %}
222
- {% endhighlight %}{% endtabs %}
223
- {% endif %}
232
+ {% include code-snippet/document-editor-container/comments-event/document-editor.cs %}
233
+ {% endhighlight %}
234
+ {% endtabs %}
235
+ {% endif %}
0 commit comments