@worktile/theia 2.2.0 → 2.2.1

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.
@@ -2505,12 +2505,14 @@
2505
2505
  var align = 'align';
2506
2506
  var hasTextIndent = block[textIndent];
2507
2507
  var hasAlign = block[align];
2508
+ var hasIndent = block[exports.ElementKinds.indent];
2508
2509
  if (slate.Node.string(block) === '' &&
2509
2510
  slate.Element.isElement(block) &&
2510
2511
  block.type === exports.ElementKinds.paragraph &&
2511
2512
  block.children.length === 1 &&
2512
2513
  slate.Text.isText(block.children[0]) &&
2513
2514
  !slate.Editor.isVoid(editor, block) &&
2515
+ !hasIndent &&
2514
2516
  !hasTextIndent &&
2515
2517
  !hasAlign) {
2516
2518
  return true;
@@ -12284,13 +12286,13 @@
12284
12286
  {
12285
12287
  key: exports.Indents.indentRight,
12286
12288
  name: '增加缩进',
12287
- icon: 'indent',
12289
+ icon: 'float-left',
12288
12290
  execute: function (editor) { return IndentEditor.setIndent(editor); }
12289
12291
  },
12290
12292
  {
12291
12293
  key: exports.Indents.indentLeft,
12292
12294
  name: '减少缩进',
12293
- icon: 'outdent',
12295
+ icon: 'float-right',
12294
12296
  type: exports.ToolbarItemType.toolDropdown,
12295
12297
  execute: function (editor) { return IndentEditor.cancelIndent(editor); }
12296
12298
  }