@tiptap/extension-table-row
Advanced tools
Comparing version 2.3.2 to 2.4.0
import { Node, mergeAttributes } from '@tiptap/core'; | ||
/** | ||
* This extension allows you to create table rows. | ||
* @see https://www.tiptap.dev/api/nodes/table-row | ||
*/ | ||
const TableRow = Node.create({ | ||
@@ -4,0 +8,0 @@ name: 'tableRow', |
@@ -7,2 +7,6 @@ (function (global, factory) { | ||
/** | ||
* This extension allows you to create table rows. | ||
* @see https://www.tiptap.dev/api/nodes/table-row | ||
*/ | ||
const TableRow = core.Node.create({ | ||
@@ -9,0 +13,0 @@ name: 'tableRow', |
import { Node } from '@tiptap/core'; | ||
export interface TableRowOptions { | ||
/** | ||
* The HTML attributes for a table row node. | ||
* @default {} | ||
* @example { class: 'foo' } | ||
*/ | ||
HTMLAttributes: Record<string, any>; | ||
} | ||
/** | ||
* This extension allows you to create table rows. | ||
* @see https://www.tiptap.dev/api/nodes/table-row | ||
*/ | ||
export declare const TableRow: Node<TableRowOptions, any>; |
{ | ||
"name": "@tiptap/extension-table-row", | ||
"description": "table row 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 TableRowOptions { | ||
/** | ||
* The HTML attributes for a table row node. | ||
* @default {} | ||
* @example { class: 'foo' } | ||
*/ | ||
HTMLAttributes: Record<string, any>, | ||
} | ||
/** | ||
* This extension allows you to create table rows. | ||
* @see https://www.tiptap.dev/api/nodes/table-row | ||
*/ | ||
export const TableRow = Node.create<TableRowOptions>({ | ||
@@ -8,0 +17,0 @@ name: 'tableRow', |
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
10182
136