Krajee

Multi Language: Russian Input

Thankful to Krajee! BUY A COFFEEor to get more out of us.

Example of setting up the markdown editor for your own locale / language. This example shows how to configure the Russian Input. You need to set the language property of the plugin to your language code (ru in this case). In addition, you need to load the locale JS script for your plugin after the markdown-editor.min.js script on your page (as shown below).

<-- load the locale js script after markdown-editor.min.js -->
<script src="https://cdn.jsdelivr.net/gh/kartik-v/krajee-markdown-editor@1.0.0/js/locales/ru.js"></script>

If your locale file does not exist, you can create a locale file for your language by copying the lang.js template file and renaming it to your language code. Then you can submit a pull request on the repo to get this translation included.

Note, the demo example(s) uses:

  • this as the raw input source for the markdown textarea.

  • these assets loaded on the page in the order mentioned.

Tip

Not seeing the updated content on this page! Hard refresh your browser to clean cache for this page (e.g. SHIFT-F5 on Windows Chrome)


Example
Code
<textarea id='editor-ru' name='editor-ru' class='form-control' rows='15'>
{RAW MARKDOWN DATA}
</textarea>

<script type="text/javascript">
$('#editor-ru').markdownEditor({
    language: 'ru'
});
</script>

Note

You can now visit the Krajee Webtips Q & A forum for searching OR asking questions OR helping programmers with answers on these extensions and plugins. For asking a question click here. Select the appropriate question category (i.e. Krajee Plugins) and choose this current page plugin in the question related to field.

The comments and discussion section below are intended for generic discussions or feedback for this plugin. Developers may not be able to search or lookup here specific questions or tips on usage for this plugin.

 
visitors to Krajee Jquery Plugins since 22-May-2017