@seafile/sdoc-editor 1.0.172 → 1.0.173

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.
@@ -21,7 +21,7 @@ const isMenuDisabled = (editor, readonly) => {
21
21
  type
22
22
  } = elem;
23
23
  if (editor.isVoid(elem)) return true;
24
- if ([_constants.CODE_BLOCK, _constants.CODE_LINE, _constants.LINK, ..._constants.HEADERS].includes(type)) return true;
24
+ if ([_constants.CODE_BLOCK, _constants.CODE_LINE, _constants.LINK, _constants.TITLE, _constants.SUBTITLE, ..._constants.HEADERS].includes(type)) return true;
25
25
  return false;
26
26
  });
27
27
  if (notMatch) return true; // disabled
@@ -22,7 +22,7 @@ const isMenuDisabled = (editor, readonly) => {
22
22
  type
23
23
  } = elem;
24
24
  if (editor.isVoid(elem)) return true;
25
- if ([_constants.CODE_BLOCK, _constants.CODE_LINE, _constants.LINK, ..._constants.HEADERS].includes(type)) return true;
25
+ if ([_constants.CODE_BLOCK, _constants.CODE_LINE, _constants.LINK, _constants.TITLE, _constants.SUBTITLE, ..._constants.HEADERS].includes(type)) return true;
26
26
  return false;
27
27
  });
28
28
  if (notMatch) return true; // disabled
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.172",
3
+ "version": "1.0.173",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",