commit 63d091362c7cdd9c11041c89cb4326289798922b
parent 952074855c717310ba59ba8767c73962f82f4637
Author: Henry Unite <unitehenry@gmail.com>
Date: Mon, 7 Sep 2020 14:18:55 -0400
remove format
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/striveneditor.js b/src/striveneditor.js
@@ -286,6 +286,8 @@ export default class StrivenEditor {
}
break;
case 'removeFormat':
+ this.executeCommand('formatBlock', 'p');
+
// Remove the format of content
this.executeCommand(command);
@@ -1850,6 +1852,7 @@ export default class StrivenEditor {
};
}
});
+
}
function setResponsive() {
@@ -1904,6 +1907,7 @@ export default class StrivenEditor {
textDecorationMenu.style.display = 'none';
textDecorationGroup.classList.remove('se-popup');
}
+
}
function hideOption(option) {