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.

Localization ejRTE

Thread ID:

Created:

Updated:

Platform:

Replies:

121027 Nov 3,2015 08:59 AM Nov 4,2015 11:19 AM ASP.NET MVC 1
loading
Tags: RichTextEditor
Stefano Enrico
Asked On November 3, 2015 08:59 AM

Hi,

can I localize ejRTE in italian?

Thanks
Stefano

Arun Palaniyandi [Syncfusion]
Replied On November 4, 2015 11:19 AM

Hi Stefano,


Thanks for contacting Syncfusion Support.

Query: can I localize ejRTE in italian?

Yes, it is possible in RTE by setting the “Locale” property and can achieve the localization for RichTextEditor. If the locale property is set as (it-IT) ,then the control will load with the Italian language.Also we have to manually set the locale language in the script section by giving ej.RTE.Locale["it-IT"] for the hover text for the tools in it. Then define the client side Create event to invoke the format for the dropdownlist’s contents.

Please refer the below code for the RTE Localization,

<code>

[CSHTML]

@{

Html.EJ().RTE("rteSample").Width("600").Locale("it-IT").ClientSideEvents(e => e.Create("Create")).Height("300").Render();

}

[Script]

<script> 

  ej.RTE.Locale["it-IT"] = {

        bold: "grassetto",

        italic: "corsivo",

        underline: "sottolineare"

}

function Create(args) {

        var format = [

             { text: "paragrafo", value: "<p> ", spriteCSS: "e-paragraph" },

             { text: "quotazione", value: "<blockquote>", spriteCSS: "e-quotation" } ];


        $("#rteSample").ejRTE("model.format", format);

        var obj = $("#rteSample").data("ejRTE");

        obj._formatDDL.data("ejDropDownList").setModel({ selectedIndex: 0 });

        }

</script>
</code>
Learn more about Localization in the below link:
http://help.syncfusion.com/aspnetmvc/richtexteditor/localization

Download the sample from the link below:
http://www.syncfusion.com/downloads/support/forum/120995/ze/RTEsample909023821

Please let us know if you have any other queries.

Regards,
Arun P


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.

;