diff options
author | Cheng-Han, Wu | 2016-06-21 21:44:26 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-06-21 21:44:26 +0800 |
commit | 6577313925d8e6a546414470166095d81c3987a2 (patch) | |
tree | ce2f1c41737fcfcaf0a434bb153bee1309f3e7bd /public | |
parent | 3424cdd7713421d3fc88a501c1cd7606c943a05e (diff) |
Remove metadata spellcheck support
Diffstat (limited to 'public')
-rw-r--r-- | public/docs/yaml-metadata.md | 12 | ||||
-rw-r--r-- | public/js/extra.js | 14 |
2 files changed, 0 insertions, 26 deletions
diff --git a/public/docs/yaml-metadata.md b/public/docs/yaml-metadata.md index 539410c8..d3abdcea 100644 --- a/public/docs/yaml-metadata.md +++ b/public/docs/yaml-metadata.md @@ -115,16 +115,4 @@ This option let you to choose to parse mathjax syntax or not. **Example** ```xml mathjax: false -``` - -spellcheck ---- -**Warning: Experimental feature!** -This option let you to choose to enable spell checking feature or not. - -> default: not set (which will be false) - -**Example** -```xml -spellcheck: true ```
\ No newline at end of file diff --git a/public/js/extra.js b/public/js/extra.js index b30a8cb0..9c21939f 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -102,13 +102,11 @@ function parseMeta(md, edit, view, toc, tocAffix) { var lang = null; var dir = null; var breaks = true; - var spellcheck = false; if (md && md.meta) { var meta = md.meta; lang = meta.lang; dir = meta.dir; breaks = meta.breaks; - spellcheck = meta.spellcheck; } //text language if (lang && typeof lang == "string") { @@ -140,18 +138,6 @@ function parseMeta(md, edit, view, toc, tocAffix) { } else { md.options.breaks = true; } - // spell check - if (typeof editor === 'object') { - var mode = null; - if (typeof spellcheck === 'boolean' && spellcheck) { - mode = 'spell-checker'; - } else { - mode = 'gfm'; - } - if (mode && mode !== editor.getOption('mode')) { - editor.setOption('mode', mode); - } - } } var viewAjaxCallback = null; |