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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use RichTextEditor

Thread ID:

Created:

Updated:

Platform:

Replies:

122152 Feb 21,2016 04:39 AM UTC Apr 1,2018 07:52 PM UTC ASP.NET MVC 6
loading
Tags: RichTextEditor
Yuanpeng Ding
Asked On February 21, 2016 04:39 AM UTC

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 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.


Yuanpeng Ding
Replied On 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?

Karthikeyan Viswanathan [Syncfusion]
Replied On 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.

Yuanpeng Ding
Replied On February 29, 2016 12:10 PM UTC

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

Arun Palaniyandi [Syncfusion]
Replied On 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

Swapnil
Replied On 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

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.

Warning Icon 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.Close Icon

;