We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to use RichTextEditor

I followed the document, and the schedule controller shows correctly, but the RichTextEditor fails

please take a look at the screen shots in the attatched file

THX!!!

Attachment: RTE_e830f05b.rar

6 Replies

KV Karthikeyan Viswanathan Syncfusion Team February 22, 2016 12:46 PM UTC

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.



YD Yuanpeng Ding February 29, 2016 02:33 AM UTC

well, it works now,  thx a lot

by the way, is there any chance that the editor will be able to highlight code syntax later?


KV Karthikeyan Viswanathan Syncfusion Team February 29, 2016 12:04 PM UTC

Hi Ding,

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.


YD Yuanpeng Ding February 29, 2016 12:10 PM UTC

as i am developing for uwp,  it would be great to support c# & xaml


AP Arun Palaniyandi Syncfusion Team March 1, 2016 12:18 PM UTC

Hi Ding,

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


SW Swapnil replied to Karthikeyan Viswanathan April 1, 2018 07:52 PM UTC

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

Loader.
Up arrow icon