UNPKG

@atlaskit/editor-plugin-paste-options-toolbar

Version:

Paste options toolbar for @atlaskit/editor-core

20 lines (19 loc) 414 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasTableNode = void 0; var hasTableNode = exports.hasTableNode = function hasTableNode(slice) { if (!slice) { return false; } var found = false; slice.content.descendants(function (node) { if (node.type.name === 'table') { found = true; return false; } return true; }); return found; };