REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 833 B
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@tiptap/extension-table/src/utilities/deleteTableWhenAllCellsSelected.ts
Text
Base64
import { findParentNodeClosestToPos, KeyboardShortcutCommand } from '@tiptap/core' import { isCellSelection } from './isCellSelection.js' export const deleteTableWhenAllCellsSelected: KeyboardShortcutCommand = ({ editor }) => { const { selection } = editor.state if (!isCellSelection(selection)) { return false } let cellCount = 0 const table = findParentNodeClosestToPos(selection.ranges[0].$from, node => { return node.type.name === 'table' }) table?.node.descendants(node => { if (node.type.name === 'table') { return false } if (['tableCell', 'tableHeader'].includes(node.type.name)) { cellCount += 1 } }) const allCellsSelected = cellCount === selection.ranges.length if (!allCellsSelected) { return false } editor.commands.deleteTable() return true }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
createCell.ts
354 B
lrw-r--r--
2026-02-28 00:28:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
createTable.ts
1.06 KB
lrw-r--r--
2026-02-28 00:28:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
deleteTableWhenAllCellsSelected.ts
833 B
lrw-r--r--
2026-02-28 00:28:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
getTableNodeTypes.ts
505 B
lrw-r--r--
2026-02-28 00:28:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
isCellSelection.ts
167 B
lrw-r--r--
2026-02-28 00:28:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).