Skip to content
Related Articles

Related Articles

jQWidgets jqxEditor localisation Property

View Discussion
Improve Article
Save Article
  • Last Updated : 12 Oct, 2021
View Discussion
Improve Article
Save Article

jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely supported framework. The jqxEditor is used to represent a jQuery HTML text editor that can be used to simplify web content creation and can also be used as a replacement for HTML Text Areas.

The localisation property is used to set or return the localisation property. i.e. this property determines the localization of the jqxEditor. It accepts an object value and Default value is “{ “bold”: “Bold”, “italic”: “Italic”, “underline”: “Underline”, “format”: “Format Block”, “font”: “Font Name”, “size”: “Font Size”, “color”: “Text Color”, “background”: “Fill Color”, “left”: “Align Left”, “center”: “Align Center”, “right”: “Align Right”, “outdent”: “Indent Less”, “indent”: “Indent More”, “ul”: “Insert unordered list”, “ol”: “Insert ordered list”, “image”: “Insert image”, “link”: “Insert link”, “html”: “View source”, “clean”: “Remove Formatting” }”.

Syntax:

Set the localisation property.

$('Selector').jqxEditor({ localisation : object });  

Return the localisation property.

var localisation = $('Selector').jqxEditor('localisation');

 

Linked Files: Download jQWidgets from the link. In the HTML file, locate the script files in the downloaded folder:

<link rel=”stylesheet” href=”jqwidgets/styles/jqx.base.css” type=”text/css” />
<script type=”text/javascript” src=”scripts/jquery-1.11.1.min.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxcore.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxbuttons.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxscrollbar.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxlistbox.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxdropdownlist.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxdropdownbutton.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxcolorpicker.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxwindow.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxeditor.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxtooltip.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxcheckbox.js”></script>

The below example illustrates the jqxEditor localisation property in jQWidgets:

Example:

HTML




<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" 
          href="jqwidgets/styles/jqx.base.css"
          type="text/css" />
    <script type="text/javascript" 
            src="scripts/jquery-1.11.1.min.js">
      </script>
    <script type="text/javascript" 
            src="jqwidgets/jqxcore.js">
      </script>
    <script type="text/javascript" 
            src="jqwidgets/jqxbuttons.js">
      </script>
    <script type="text/javascript" 
            src="jqwidgets/jqxscrollbar.js">
      </script>
    <script type="text/javascript" 
            src="jqwidgets/jqxlistbox.js">
      </script>
    <script type="text/javascript" 
            src="jqwidgets/jqxdropdownlist.js">
      </script>
    <script type="text/javascript" 
            src="jqwidgets/jqxdropdownbutton.js">
      </script>
    <script type="text/javascript" 
            src="jqwidgets/jqxcolorpicker.js">
      </script>
    <script type="text/javascript" 
            src="jqwidgets/jqxwindow.js">
      </script>
    <script type="text/javascript" 
            src="jqwidgets/jqxeditor.js">
      </script>
    <script type="text/javascript" 
            src="jqwidgets/jqxtooltip.js">
      </script>
    <script type="text/javascript" 
            src="jqwidgets/jqxcheckbox.js">
      </script>
</head>
    
<body>
    <center>
        <h1 style="color: green;">
              GeeksforGeeks
          </h1>
        
        <h3>jQWidgets jqxEditor localization Property</h3>
        <textarea id="editor">
        </textarea>
    </center>
  
    <script type="text/javascript">
        $(document).ready(function () {
            $('#editor').jqxEditor({
                height: "400px",
                width: '700px',
                localization: {
                    "bold": "Fett",
                    "italic": "Kursiv",
                    "underline": "Unterstreichen",
                }
            });
        });
    </script>
      
</body>
</html>


Output:

Reference: https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxeditor/jquery-editor-api.htm


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!