Commit 9b2f8519 authored by Bernardo Anderson's avatar Bernardo Anderson

Add spellchecker with updated simplemde

parent f5289902
......@@ -243,6 +243,10 @@ span.highlight-search {
color: #45596d !important;
.CodeMirror-sided {
width: 48%!important;
/* Let's get this party started */
::-webkit-scrollbar {
width: 8px;
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -37,6 +37,7 @@
<li class="mdl-menu__item" id="save_as">Save As <i class="material-icons">fiber_new</i></li>
<li class="mdl-menu__item" id="get_html">Get HTML <i class="material-icons">code</i></li>
<li class="mdl-menu__item" id="spellcheck">Spellcheck <i class="material-icons">check</i></li>
<li class="mdl-menu__item" id="load_sample">Load Sample Page</li>
<li class="mdl-menu__item" id="restore">Restore <i class="material-icons">backup</i></li>
......@@ -61,7 +62,7 @@
<!--Javascript Calls-->
<script src="/js/cash.min.js"></script>
<script src="/js/simplemde.min.js"></script>
<script src="/js/simplemde2.js"></script>
<script src="/js/material.min.js"></script>
<script src="/main.min.js"></script>
......@@ -5,12 +5,12 @@ var localImage = false;
var onlineImage = false;
var localURL;
var onlineURL;
var spellcheck = true;
var sampleText = "### Welcome to Material Markdown!\n**Shortcuts**\n- Load Sample Page: Ctrl+P\n- Open File: Ctrl+O\n- Save File: Ctrl+S\n- Toggle Blockquote: Ctrl+'\n- Toggle Bold: Ctrl+B\n- Toggle Italic: Ctrl+I\n- Draw Link: Ctrl+K\n- Toggle Unordered List: Ctrl+L\n-----\n```\nvar test = 'hello from material markdown'\n```\n[Gitlab Repository](\n> This app uses the open source SimpleMDE markdown editor";
var simplemde = new SimpleMDE({
element: document.getElementById("my-content"),
spellChecker: false,
spellChecker: spellcheck,
toolbar: ["bold", "italic", "strikethrough", "|", "quote", "unordered-list", "ordered-list", "clean-block", "table", "|", "heading-1", "heading-2", "heading-3", "heading-smaller", "heading-bigger", "|", "code", "link",
name: "image",
......@@ -68,11 +68,19 @@ $('.mdl-menu li').on('click', function(){
case $('#restore')[0]: // DOWNLOAD HTML
case $('#spellcheck')[0]: // TOGGLE SPELLCHECK
console.log('Nothing selected');
// Spellcheck
function toggleSpellcheck() {
spellcheck = !spellcheck;
var chosenFileEntry = null;
function openFile() {
This diff is collapsed.
......@@ -3,7 +3,7 @@
"name": "Material Markdown",
"short_name": "Material Markdown",
"description": "A simple and clean Material Design markdown editor with side by side preview",
"version": "1.3.6",
"version": "1.4.0",
"minimum_chrome_version": "41",
"icons": {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment