diff --git a/bl-plugins/simplemde/languages/en_US.json b/bl-plugins/simplemde/languages/en_US.json index 2044527d..46d8cf5a 100644 --- a/bl-plugins/simplemde/languages/en_US.json +++ b/bl-plugins/simplemde/languages/en_US.json @@ -6,5 +6,6 @@ }, "toolbar": "Toolbar", "tab-size": "Tab size", - "autosave": "Autosave" + "autosave": "Autosave", + "spell-checker": "Spell Checker" } \ No newline at end of file diff --git a/bl-plugins/simplemde/plugin.php b/bl-plugins/simplemde/plugin.php index 5b976cfc..0ca85fd5 100644 --- a/bl-plugins/simplemde/plugin.php +++ b/bl-plugins/simplemde/plugin.php @@ -14,7 +14,8 @@ class pluginsimpleMDE extends Plugin { $this->dbFields = array( 'tabSize'=>'2', 'toolbar'=>'"bold", "italic", "heading", "|", "quote", "unordered-list", "|", "link", "image", "code", "horizontal-rule", "|", "preview", "side-by-side", "fullscreen", "guide"', - 'autosave'=>0 + 'autosave'=>0, + 'spellChecker'=>0 ); } @@ -37,6 +38,12 @@ class pluginsimpleMDE extends Plugin { $html .= 'getDbField('autosave')?'checked':'').'>'; $html .= ''; $html .= ''; + + $html .= '
'; + $html .= ''; + $html .= 'getDbField('spellChecker')?'checked':'').'>'; + $html .= ''; + $html .= '
'; return $html; } @@ -96,6 +103,9 @@ class pluginsimpleMDE extends Plugin { $autosaveID = $_Post->key(); } + // Spell Checker + $spellCheckerEnable = $this->getDbField('spellChecker')?'true':'false'; + $pluginPath = $this->htmlPath(); $html = '