Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
set spellchecker to "off" by default
Browse files Browse the repository at this point in the history
closes TryGhost/Ghost#8566
- sets codemirror into "markdown" mode during initialisation
  • Loading branch information
kevinansfield committed Jun 15, 2017
1 parent 25bfa20 commit 79fa137
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/components/gh-markdown-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ export default Component.extend({
// in the parent gh-editor component
this._editor.codemirror.setOption('dragDrop', false);

// default to spellchecker being off
this._editor.codemirror.setOption('mode', 'markdown');

// HACK: move the toolbar & status bar elements outside of the
// editor container so that they can be aligned in fixed positions
let container = this.$().closest('.gh-editor').find('.gh-editor-footer');
Expand Down

0 comments on commit 79fa137

Please sign in to comment.