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
close icon

Localization ejRTE

Hi,

can I localize ejRTE in italian?

Thanks
Stefano

1 Reply

AP Arun Palaniyandi Syncfusion Team November 4, 2015 04:19 PM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon