- Home
- Forum
- ASP.NET MVC
- How to use RichTextEditor
How to use RichTextEditor
Attachment: RTE_e830f05b.rar
Thanks for contacting Syncfusion Support.
We have analyzed the shared images. To render the control in MVC 6, we should call rendermethod from corresponding widget. We suggest you to call render method in RTE in your application. Please have a look on code snippet.
<code>
#view
@{Html.EJ().RTE("rteSample").Width("800px").Render();}
</code>
Regards,
Karthikeyan V.
Thanks for your update.
Currently we haven’t provided with in-built support for syntax highlighter in RTE and it is already a known feature in our feature request list. However this can be achieved using some third party tools/plugins that will allow you to highlight the code blocks. In the online demo sample link below, we have used CodeMirror plugins to highlight HTML, Javascript and CSS using custom tool. Please check on the demo link and let us know what kind of syntax highlighter do you need, so that we can help you out with an alternative solution.
http://js.syncfusion.com/demos/web/#!/azure/rte/customtool
Regards,
Karthikeyan V.
Thanks for your update.
Query:” as i am developing for uwp, it would be great to support c# & xaml”
As said earlier, we have highlighted code syntax using some third party tools/plugins like CodeMirror plugins for HTML, Javascript and CSS using custom tool. Same CodeMirror plugins can also be used to highlight the C# and xaml too . Hence we have prepared a sample using this CodeMirror for C# and xaml. Please find it below for your reference.
http://www.syncfusion.com/downloads/support/forum/122152/ze/RTE-2140453182
If you have any further questions, feel free to contact us.
Regards,
Arun P
Hi Ding,
Thanks for contacting Syncfusion Support.
We have analyzed the shared images. To render the control in MVC 6, we should call rendermethod from corresponding widget. We suggest you to call render method in RTE in your application. Please have a look on code snippet.
<code>
#view
@{Html.EJ().RTE("rteSample").Width("800px").Render();}
</code>
Regards,
Karthikeyan V.
hi
- 6 Replies
- 4 Participants
-
YD Yuanpeng Ding
- Feb 21, 2016 04:39 AM UTC
- Apr 1, 2018 07:52 PM UTC