@worktile/theia 2.1.10 → 2.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12039,7 +12039,8 @@
12039
12039
  return;
12040
12040
  }
12041
12041
  // unset fontSize
12042
- if (FontSizeEditor.unsetFontSize(editor, size, fontSizeMark, isDefaultFontSize)) {
12042
+ if (isDefaultFontSize && Number(defaultFontSize) === fontSizeMark) {
12043
+ FontSizeEditor.unsetFontSize(editor, size);
12043
12044
  return;
12044
12045
  }
12045
12046
  FontSizeEditor.setFontSizeMark(editor, size);
@@ -12052,21 +12053,17 @@
12052
12053
  // set paragraph text fontSize
12053
12054
  slate.Editor.addMark(editor, exports.MarkTypes.fontSize, Number(size));
12054
12055
  },
12055
- unsetFontSize: function (editor, size, fontSizeMark, isDefaultFontSize) {
12056
+ unsetFontSize: function (editor, size) {
12056
12057
  var _a;
12057
12058
  var isTable = TableEditor.isActive(editor);
12058
- if (fontSizeMark && isDefaultFontSize) {
12059
- // unset Table selectedCells fontSize
12060
- if (isTable && TableEditor.toggleMark(editor, true, exports.MarkTypes.fontSize, Number(size))) {
12061
- return true;
12062
- }
12063
- // unset paragraph text fontSize
12064
- setMarks(editor, (_a = {},
12065
- _a[exports.MarkTypes.fontSize] = null,
12066
- _a), editor.selection);
12067
- return true;
12059
+ // unset Table selectedCells fontSize
12060
+ if (isTable && TableEditor.toggleMark(editor, true, exports.MarkTypes.fontSize, Number(size))) {
12061
+ return;
12068
12062
  }
12069
- return false;
12063
+ // unset paragraph text fontSize
12064
+ setMarks(editor, (_a = {},
12065
+ _a[exports.MarkTypes.fontSize] = null,
12066
+ _a), editor.selection);
12070
12067
  },
12071
12068
  isFontSizeActive: function (editor, size) {
12072
12069
  if (editor.selection) {