diff --git a/apps/spreadsheeteditor/mobile/src/controller/edit/EditText.jsx b/apps/spreadsheeteditor/mobile/src/controller/edit/EditText.jsx
index d0c1588298..25d148f066 100644
--- a/apps/spreadsheeteditor/mobile/src/controller/edit/EditText.jsx
+++ b/apps/spreadsheeteditor/mobile/src/controller/edit/EditText.jsx
@@ -24,6 +24,11 @@ class EditTextController extends Component {
api.asc_setCellUnderline(value);
};
+ toggleStrikethrough(value) {
+ const api = Common.EditorApi.get();
+ api.asc_setCellStrikeout(value);
+ }
+
onParagraphAlign(type) {
const api = Common.EditorApi.get();
let value = AscCommon.align_Left;
@@ -103,6 +108,7 @@ class EditTextController extends Component {
toggleBold={this.toggleBold}
toggleItalic={this.toggleItalic}
toggleUnderline={this.toggleUnderline}
+ toggleStrikethrough={this.toggleStrikethrough}
onParagraphAlign={this.onParagraphAlign}
onParagraphValign={this.onParagraphValign}
changeFontSize={this.changeFontSize}
diff --git a/apps/spreadsheeteditor/mobile/src/store/textSettings.js b/apps/spreadsheeteditor/mobile/src/store/textSettings.js
index 942d1b571c..a24eb5de31 100644
--- a/apps/spreadsheeteditor/mobile/src/store/textSettings.js
+++ b/apps/spreadsheeteditor/mobile/src/store/textSettings.js
@@ -12,6 +12,7 @@ export class storeTextSettings {
isBold: observable,
isItalic: observable,
isUnderline: observable,
+ isStrikethrough: observable,
textColor: observable,
customTextColors: observable,
paragraphAlign: observable,
@@ -53,6 +54,7 @@ export class storeTextSettings {
isBold = false;
isItalic = false;
isUnderline = false;
+ isStrikethrough = false;
textColor = undefined;
customTextColors = [];
paragraphAlign = undefined;
@@ -79,6 +81,7 @@ export class storeTextSettings {
this.isBold = xfs.asc_getFontBold();
this.isItalic = xfs.asc_getFontItalic();
this.isUnderline = xfs.asc_getFontUnderline();
+ this.isStrikethrough = xfs.asc_getFontStrikeout();
let color = xfs.asc_getFontColor();
// console.log(color);
diff --git a/apps/spreadsheeteditor/mobile/src/view/edit/EditText.jsx b/apps/spreadsheeteditor/mobile/src/view/edit/EditText.jsx
index 312b11aae6..c10a3e8701 100644
--- a/apps/spreadsheeteditor/mobile/src/view/edit/EditText.jsx
+++ b/apps/spreadsheeteditor/mobile/src/view/edit/EditText.jsx
@@ -39,6 +39,7 @@ const EditText = props => {
const isBold = storeTextSettings.isBold;
const isItalic = storeTextSettings.isItalic;
const isUnderline = storeTextSettings.isUnderline;
+ const isStrikethrough = storeTextSettings.isStrikethrough;
const paragraphAlign = storeTextSettings.paragraphAlign;
const paragraphValign = storeTextSettings.paragraphValign;
@@ -58,6 +59,7 @@ const EditText = props => {
{props.toggleBold(!isBold)}}>B
{props.toggleItalic(!isItalic)}}>I
{props.toggleUnderline(!isUnderline)}} style={{textDecoration: "underline"}}>U
+ {props.toggleStrikethrough(!isStrikethrough)}} style={{textDecoration: "line-through"}}>S