@tiptap/extension-table-cell
Advanced tools
Comparing version 2.3.2 to 2.4.0
import { Node, mergeAttributes } from '@tiptap/core'; | ||
/** | ||
* This extension allows you to create table cells. | ||
* @see https://www.tiptap.dev/api/nodes/table-cell | ||
*/ | ||
const TableCell = Node.create({ | ||
@@ -4,0 +8,0 @@ name: 'tableCell', |
@@ -7,2 +7,6 @@ (function (global, factory) { | ||
/** | ||
* This extension allows you to create table cells. | ||
* @see https://www.tiptap.dev/api/nodes/table-cell | ||
*/ | ||
const TableCell = core.Node.create({ | ||
@@ -9,0 +13,0 @@ name: 'tableCell', |
import { Node } from '@tiptap/core'; | ||
export interface TableCellOptions { | ||
/** | ||
* The HTML attributes for a table cell node. | ||
* @default {} | ||
* @example { class: 'foo' } | ||
*/ | ||
HTMLAttributes: Record<string, any>; | ||
} | ||
/** | ||
* This extension allows you to create table cells. | ||
* @see https://www.tiptap.dev/api/nodes/table-cell | ||
*/ | ||
export declare const TableCell: Node<TableCellOptions, any>; |
{ | ||
"name": "@tiptap/extension-table-cell", | ||
"description": "table cell extension for tiptap", | ||
"version": "2.3.2", | ||
"version": "2.4.0", | ||
"homepage": "https://tiptap.dev", | ||
@@ -32,3 +32,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@tiptap/core": "^2.3.2" | ||
"@tiptap/core": "^2.4.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "peerDependencies": { |
import { mergeAttributes, Node } from '@tiptap/core' | ||
export interface TableCellOptions { | ||
/** | ||
* The HTML attributes for a table cell node. | ||
* @default {} | ||
* @example { class: 'foo' } | ||
*/ | ||
HTMLAttributes: Record<string, any>, | ||
} | ||
/** | ||
* This extension allows you to create table cells. | ||
* @see https://www.tiptap.dev/api/nodes/table-cell | ||
*/ | ||
export const TableCell = Node.create<TableCellOptions>({ | ||
@@ -8,0 +17,0 @@ name: 'tableCell', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15031
220