UNPKG

@atlaskit/editor-plugin-expand

Version:

Expand plugin for @atlaskit/editor-core

6 lines 300 B
import { hasParentNode } from '@atlaskit/editor-prosemirror/utils'; export var isNestedInExpand = function isNestedInExpand(state) { return hasParentNode(function (node) { return node.type === state.schema.nodes.expand || node.type === state.schema.nodes.nestedExpand; })(state.selection); };