Feature rich WYSIWYG Markdown Editor Plugin with jQuery MKEditor - Download Feature-rich WYSIWYG Markdown Editor Plugin with jQuery - MKEditor

Download Feature-rich WYSIWYG Markdown Editor Plugin with jQuery – MKEditor

Posted on

This time I will share jQuery Plugin and tutorial about Feature-rich WYSIWYG Markdown Editor Plugin with jQuery – MKEditor, hope it will help you in programming stack.

Feature rich WYSIWYG Markdown Editor Plugin with jQuery MKEditor - Download Feature-rich WYSIWYG Markdown Editor Plugin with jQuery - MKEditor
File Size: 34.2 KB
Views Total: 2228
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   



MKEditor is a simple yet robust jQuery plugin that helps you generates a WYSIWYG markdown editor from a textarea element.

Features:

  • Uses Font Awesome 4 for editor icons.
  • Word / character / line counters.
  • Instant preview.
  • Fullscreen mode.
  • Smooth scrolling effect.
  • i18n. Currently supports ‘en’ and ‘fr’.

How to use it:

1. Insert the following snippets into your document. Note that the mkeditor.js should be placed after jQuery JavaScript library but before the closing body tag.

1 <link rel="stylesheet" href="css/mkeditor.css">
2 <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
3 <script src="js/mkeditor.js"></script>

2. Load the required Font Awesome 4 for editor buttons.

1 <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">

3. Create a textarea with predefined markdown syntax on the webpage.

1 <textarea cols="100" placeholder="Placeholder" rows="10">
2   An h1 header
3   ============
4 </textarea>

4. Call the plugin to turn the textarea into a WYSIWYG markdown editor.

1 $('textarea').MKEditor();

5. Default configuration options.

01 $('textarea').MKEditor({
02  
03   // placeholder
04   placeholder: '',
05  
06   // fullscreen mode
07   fullscreen: false,
08  
09   // 'en' or 'fr'
10   language: 'en',
11  
12   // resizable
13   resize: false,
14  
15   // fixed size
16   fixed: true,
17  
18   // character limit
19   limit: 0,
20  
21   // hide specific editor buttons
22   hideBtn: []
23    
24 });

This awesome jQuery plugin is developed by christopherfouquier. For more Advanced Usages, please check the demo page or visit the official website.




source : jqueryscript.net