diff --git a/apps/documenteditor/mobile/src/controller/settings/Settings.jsx b/apps/documenteditor/mobile/src/controller/settings/Settings.jsx index aecd11e22..d0b1fe751 100644 --- a/apps/documenteditor/mobile/src/controller/settings/Settings.jsx +++ b/apps/documenteditor/mobile/src/controller/settings/Settings.jsx @@ -71,7 +71,19 @@ const Settings = props => { window.open(url, "_blank"); }; - return + const onOrthographyCheck = () => { + closeModal(); + Common.EditorApi.get().asc_pluginRun("asc.{B631E142-E40B-4B4C-90B9-2D00222A286E}", 0); + }; + + return }; export default inject("storeAppOptions")(observer(Settings)); \ No newline at end of file diff --git a/apps/documenteditor/mobile/src/less/icons-ios.less b/apps/documenteditor/mobile/src/less/icons-ios.less index fef0d3c13..05960f7e5 100644 --- a/apps/documenteditor/mobile/src/less/icons-ios.less +++ b/apps/documenteditor/mobile/src/less/icons-ios.less @@ -31,6 +31,11 @@ .encoded-svg-background(''); } //Settings + &.icon-spellcheck { + width: 22px; + height: 22px; + .encoded-svg-background(''); + } &.icon-search { width: 22px; height: 22px; diff --git a/apps/documenteditor/mobile/src/less/icons-material.less b/apps/documenteditor/mobile/src/less/icons-material.less index 79eaa86d6..71c229de1 100644 --- a/apps/documenteditor/mobile/src/less/icons-material.less +++ b/apps/documenteditor/mobile/src/less/icons-material.less @@ -76,6 +76,11 @@ .encoded-svg-background(''); } //Settings + &.icon-spellcheck { + width: 22px; + height: 22px; + .encoded-svg-background(''); + } &.icon-search { width: 22px; height: 22px; diff --git a/apps/documenteditor/mobile/src/view/settings/Settings.jsx b/apps/documenteditor/mobile/src/view/settings/Settings.jsx index 6f7578b8c..93f40c4aa 100644 --- a/apps/documenteditor/mobile/src/view/settings/Settings.jsx +++ b/apps/documenteditor/mobile/src/view/settings/Settings.jsx @@ -133,7 +133,11 @@ const SettingsList = inject("storeAppOptions")(observer(props => { {props.onReaderMode()}}/> } - {/*ToDo: settings-orthography*/} + {Device.sailfish && _isEdit && + {props.onOrthographyCheck()}} className='no-indicator' link="#"> + + + } {_isEdit && @@ -192,10 +196,10 @@ class SettingsView extends Component { return ( show_popover ? this.props.onclosed()}> - + : this.props.onclosed()}> - + ) }