diff --git a/app/components/SimpleEditor/ContainerEditor.js b/app/components/SimpleEditor/ContainerEditor.js index 993295429d56fdb532df65563109e65002f98b63..f3f7c6db7cc303bdb22ae52c5059558ddf42a636 100644 --- a/app/components/SimpleEditor/ContainerEditor.js +++ b/app/components/SimpleEditor/ContainerEditor.js @@ -10,7 +10,8 @@ import { class ContainerEditor extends SubstanceContainerEditor { render ($$) { let el = super.render($$) - + // native spellcheck + el.attr('spellcheck', this.props.spellcheck === 'native') // var doc = this.getDocument() // var containerId = this.getContainerId() // var containerNode = doc.get(containerId) diff --git a/app/components/SimpleEditor/Editor.js b/app/components/SimpleEditor/Editor.js index c928a5b1fb51f566e57dc7951f6178b446666ffe..a4dd0d0fe445c2820c48ed8f4b707d95bd25f99c 100644 --- a/app/components/SimpleEditor/Editor.js +++ b/app/components/SimpleEditor/Editor.js @@ -136,6 +136,7 @@ class Editor extends ProseEditor { editorSession: this.editorSession, commands: configurator.getSurfaceCommandNames(), containerId: 'body', + spellcheck: 'native', textTypes: configurator.getTextTypes(), trackChanges: this.props.trackChanges, updateTrackChangesStatus: this.props.updateTrackChangesStatus diff --git a/app/components/SimpleEditor/config.js b/app/components/SimpleEditor/config.js index 63daa97ff795df6a47e8b1e9ecf5147760d544ac..e7c1bc993feb67da362bfec2c4d0f0aa72c77b0f 100644 --- a/app/components/SimpleEditor/config.js +++ b/app/components/SimpleEditor/config.js @@ -12,7 +12,8 @@ import { StrongPackage, SubscriptPackage, SuperscriptPackage, - SwitchTextTypePackage + SwitchTextTypePackage, + SpellCheckPackage } from 'substance' // My Elements @@ -54,6 +55,7 @@ let config = { config.import(PersistencePackage) config.import(LinkPackage) + config.import(SpellCheckPackage) // config.import(CodeblockPackage) // // config.import(DialoguePackage) // config.import(ExtractPackage)