UNPKG

@atlaskit/editor-plugin-expand

Version:

Expand plugin for @atlaskit/editor-core

12 lines (11 loc) 439 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isNestedInExpand = void 0; var _utils = require("@atlaskit/editor-prosemirror/utils"); var isNestedInExpand = exports.isNestedInExpand = function isNestedInExpand(state) { return (0, _utils.hasParentNode)(function (node) { return node.type === state.schema.nodes.expand || node.type === state.schema.nodes.nestedExpand; })(state.selection); };