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.
Unfortunately, activation email could not send to your email. Please try again.

How to use RichTextEditor

Thread ID:

Created:

Updated:

Platform:

Replies:

122152 Feb 20,2016 11:39 PM Apr 1,2018 03:52 PM ASP.NET MVC 6
loading
Tags: RichTextEditor
Yuanpeng Ding
Asked On February 20, 2016 11:39 PM

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

Karthikeyan Viswanathan [Syncfusion]
Replied On February 22, 2016 07:46 AM

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.


Yuanpeng Ding
Replied On February 28, 2016 09:33 PM

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?

Karthikeyan Viswanathan [Syncfusion]
Replied On February 29, 2016 07:04 AM

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.

Yuanpeng Ding
Replied On February 29, 2016 07:10 AM

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

Arun Palaniyandi [Syncfusion]
Replied On March 1, 2016 07:18 AM

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

Swapnil
Replied On April 1, 2018 03:52 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;