@atlaskit/editor-plugin-block-controls
Version:
Block controls plugin for @atlaskit/editor-core
10 lines • 324 B
JavaScript
// Nested layout columns use the full block handle; other non-top-level nodes use the nested icon.
export var shouldUseNestedDragHandleIcon = function shouldUseNestedDragHandleIcon(isTopLevelNode, isLayoutColumn) {
if (isTopLevelNode) {
return false;
}
if (isLayoutColumn) {
return false;
}
return true;
};