Krajee

Theming: Font Awesome 5 BS4

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

Using the Font Awesome 5 theme with Bootstrap version 4.1.1 (you need to load the Bootstrap version 4.1.1 CSS and JS assets on your page. You need to set the bsVersion property to 4.1.1. For this example, the toolbarHeaderR has been set to an empty array to hide the full screen toggle mode button.

Next, set the theme property to fa5. You need to then load the respective theme assets (JS/CSS) for the theme file after your markdown-editor CSS/JS scripts. You also need the Font Awesome icons for fa5 loaded on your page. For example:

<-- load your font awesome icons for Font Awesome 5 -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<-- load the theme js script after markdown-editor.min.js -->
<script src="https://cdn.jsdelivr.net/gh/kartik-v/krajee-markdown-editor@1.0.0/js/themes/fa5/theme.js"></script>

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-fa5-bs4' name='editor-fa5-bs4' class='form-control' rows='15'>
{RAW MARKDOWN DATA}
</textarea>

<script type="text/javascript">
$('#editor-fa5-bs4').markdownEditor({
    theme: 'fa5',
    bsVersion: '4.1.1',
    toolbarHeaderR: []
});
</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