@worktile/theia 14.2.0 → 14.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.
@@ -9779,9 +9779,9 @@ class ThePluginMenuComponent extends mixinUnsubscribe(MixinBase) {
9779
9779
  }
9780
9780
  ngOnInit() {
9781
9781
  this.editorElement = AngularEditor.toDOMNode(this.editor, this.editor);
9782
- let currentMenu = DefaultPluginMenu;
9782
+ let currentMenu = this.editor.options.menu ? this.editor.options.menu : DefaultPluginMenu;
9783
9783
  const menuItemsMap = buildPluginMenuItemMap(this.editor);
9784
- this.pluginMenu = this.editor.options.menu ? this.editor.options.menu : buildPluginMenu(menuItemsMap, currentMenu);
9784
+ this.pluginMenu = buildPluginMenu(menuItemsMap, currentMenu);
9785
9785
  this.buildMenus();
9786
9786
  }
9787
9787
  buildMenus() {
@@ -13671,6 +13671,19 @@ const createTodoItemPlugin = createPluginFactory({
13671
13671
  active: editor => TodoItemEditor.isActive(editor)
13672
13672
  }
13673
13673
  ],
13674
+ menuItems: [
13675
+ {
13676
+ key: ElementKinds.checkItem,
13677
+ keywords: 'dbsx,daibanshixiang,todolist,待办事项',
13678
+ execute: editor => TodoItemEditor.insertTodoItem(editor),
13679
+ active: editor => TodoItemEditor.isActive(editor),
13680
+ type: ThePluginMenuItemType.icon,
13681
+ name: '待办事项',
13682
+ displayKey: '/dbsx',
13683
+ icon: 'list-check',
13684
+ menuIcon: PluginMenuIcons.numberedList
13685
+ }
13686
+ ],
13674
13687
  options: {
13675
13688
  allowParentTypes: [ElementKinds.tableCell, ElementKinds.blockquote],
13676
13689
  editableWithReadonly: false