Skip to content
Snippets Groups Projects
Commit 775dcdad authored by chris's avatar chris Committed by Yannis Barlas
Browse files

enable spellchecker

parent 6e26b71a
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,8 @@ import { ...@@ -10,7 +10,8 @@ import {
class ContainerEditor extends SubstanceContainerEditor { class ContainerEditor extends SubstanceContainerEditor {
render ($$) { render ($$) {
let el = super.render($$) let el = super.render($$)
// native spellcheck
el.attr('spellcheck', this.props.spellcheck === 'native')
// var doc = this.getDocument() // var doc = this.getDocument()
// var containerId = this.getContainerId() // var containerId = this.getContainerId()
// var containerNode = doc.get(containerId) // var containerNode = doc.get(containerId)
......
...@@ -136,6 +136,7 @@ class Editor extends ProseEditor { ...@@ -136,6 +136,7 @@ class Editor extends ProseEditor {
editorSession: this.editorSession, editorSession: this.editorSession,
commands: configurator.getSurfaceCommandNames(), commands: configurator.getSurfaceCommandNames(),
containerId: 'body', containerId: 'body',
spellcheck: 'native',
textTypes: configurator.getTextTypes(), textTypes: configurator.getTextTypes(),
trackChanges: this.props.trackChanges, trackChanges: this.props.trackChanges,
updateTrackChangesStatus: this.props.updateTrackChangesStatus updateTrackChangesStatus: this.props.updateTrackChangesStatus
......
...@@ -12,7 +12,8 @@ import { ...@@ -12,7 +12,8 @@ import {
StrongPackage, StrongPackage,
SubscriptPackage, SubscriptPackage,
SuperscriptPackage, SuperscriptPackage,
SwitchTextTypePackage SwitchTextTypePackage,
SpellCheckPackage
} from 'substance' } from 'substance'
// My Elements // My Elements
...@@ -54,6 +55,7 @@ let config = { ...@@ -54,6 +55,7 @@ let config = {
config.import(PersistencePackage) config.import(PersistencePackage)
config.import(LinkPackage) config.import(LinkPackage)
config.import(SpellCheckPackage)
// config.import(CodeblockPackage) // config.import(CodeblockPackage)
// // config.import(DialoguePackage) // // config.import(DialoguePackage)
// config.import(ExtractPackage) // config.import(ExtractPackage)
......
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