UNPKG

@atlaskit/editor-plugin-block-controls

Version:

Block controls plugin for @atlaskit/editor-core

10 lines • 291 B
// Nested layout columns use the full block handle; other non-top-level nodes use the nested icon. export const shouldUseNestedDragHandleIcon = (isTopLevelNode, isLayoutColumn) => { if (isTopLevelNode) { return false; } if (isLayoutColumn) { return false; } return true; };