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 (#747)
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 authored and cobbspur committed Jun 19, 2017
1 parent c297359 commit 6ed32c0
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 6ed32c0

Please sign in to comment.